Trying to run tests for the stan-dev/stan library, as a test. stan-dev/math builds fine.
In C++, usually this means there’s no include in the header (math library we have prim.hpp, whatever) stan-dev/stan, no headers (header files, but you see what I’m saying). What am I missing?
make src/test/unit/services/experimental/advi/defaults_tes t g++ src/test/unit/services/experimental/advi/defaults_test.cpp -o src/test/unit/services/experimental/advi/defaults_test src/test/unit/services/experimental/advi/defaults_test.cpp:1:10: fatal error: stan/services/experimental/advi/defaults.hpp: No such file or directory 1 | #include <stan/services/experimental/advi/defaults.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [<builtin>: src/test/unit/services/experimental/advi/defaults_test] Error 1
Makes me look stupid, but asking a stupid question after an hour or two makes everything run faster.
I’ve downloaded and built stanc3, but this is only for parsing the language, and then generating the C++ executable, I think.
Figured it out, just cd to stan and type make, and all of the instructions are there. sweet.
alright… so I’m just compiling tests so I can get set up.
I’m running make src/test/unit/services/optimize/lbfgs_test
And it’s missing some of the includes, but they exist. In the math library, and what’s usually done in C++/C is there’s a header file, which includes all of the files, so you have one higher level include (i.e. prim.hpp), is there a reason we’re not doing this?
This is after I’ve run test-headers successfully.
And then I’m running this, without error: ‘make src/stan/optimization/bfgs.hpp-test’. Usually in stan/math it generates an executable which you can run with ./runTests.py, but it’s not happening here.