I am testing against reference data in the source directory.<br>However, I would like to perform out of source builds.<br><br><br>With <br>add_test(SpoofTest ${BinOut}/SpoofTest )<br>the test dont find's the data, because the data path is hard coded in the tests and the build directory location is arbitrary.<br>
<br><br>My Idea is to use the WORKING_DIRECTORY option to execute the tests in the Source directory.<br>
<br>add_test(NAME SpoofTest <br>WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}<br>COMMAND ${BinOut}/SpoofTest)<br><br>However, I do not understand the COMMAND parameter.<br><br>This is what I am getting when I run ctest:<br>Checking test dependency graph end<br>
test 1<br> Start 1: SpoofTest<br><br>1: Test command: NOT_AVAILABLE<br>Test not available without configuration. (Missing "-C <config>"?)<br>1/1 Test #1: SpoofTest ........................***Not Run 0.00 sec<br>
<br>0% tests passed, 1 tests failed out of 1<br><br>Total Test time (real) = 2.29 sec<br><br>The following tests FAILED:<br> 1 - SpoofTest (Not Run)<br>Errors while running CTest<br><br>Can anyone please explain the COMMAND parameter to me!<br>
<br>Regards<br>Eryk<br><br><br><br><br><br><br clear="all"><br>-- <br>Witold Eryk Wolski<br><br>Heidmark str 5<br>D-28329 Bremen<br>tel.: 04215261837<br>