Skip to content

Added BUILD_UNIT_TESTS option to cmake

Eric Chang requested to merge pkerichang/armadillo-code:cmake-tests into 10.1.x

Added a BUILD_UNIT_TESTS option to cmake so one can compile and run unit tests using cmake without installing armadillo in the system first, which makes it much easier to debug and test new features and/or bug fixes.

Also FYI, one of the tests is currently failing, output reproduced below:

1: -------------------------------------------------------------------------------
1: eigs_gen_odd_complex_sm_test
1: -------------------------------------------------------------------------------
1: /home/erichang/projects/armadillo-code/tests/fn_eigs_gen.cpp:1902
1: ...............................................................................
1: 
1: /home/erichang/projects/armadillo-code/tests/fn_eigs_gen.cpp:1943: FAILED:
1:   REQUIRE( dense_eval != n_rows + 1 )
1: with expansion:
1:   11 != 11

Merge request reports