Dear all,
I would like to know if it’s possible to run tests only for a specific module? I don’t want to run all of them just for a single one…
Thanks,
Rémi
You can run tests whose name matches a regex with -R
, or whose label matches a regex with -L
, for example:
ctest -R Hyperspectral
1 Like
Thanks,
I don’t know very well ctest
, is it equivalent to make test
?
I usually run tests in the following way: cd build
then make test
Hi Remi,
yes it is! But you can do more specific thing with ctest!
https://cmake.org/cmake/help/v3.0/manual/ctest.1.html
The basic I am using is :
-VV : verbose output
-L : label , with this if you want to test a module just type : ctest -L OTBModuleName
-R : regex
And without argument it launches all the tests available!
1 Like