cmake - Replace ctest command with "ctest --output-on-failure" permanently for a specific project in CMakeLists.txt -


i have found generic ctest command doesn't give information tests, add ctest --output-on-failure not have users worry flag. want them cmake, make project , run ctest , should run ctest with --output-on-failure flag. possible in cmakelists.txt?

edit:

output of env ctest_output_on_failure=1 make test

 4/13 test  #4: test_sssp ........................***failed  required regular expression not found.regex=[correct ]  0.00 sec loading matrix-market coordinate-formatted graph ... input graph file /home/muhammad/gunrock/dataset/small/chesapeake.mtx not exis 

output of set_property(test testname property environment "ctest_output_on_failure=1")

 4/13 test  #4: test_sssp ........................***failed  required regular expression not found.regex=[correct ]  0.00 sec 

the flag in set_property not working.

i went make check per solution: cmake: setting environmental variable ctest (or otherwise getting failed test output ctest/make test automatically)

add_custom_target(check ${cmake_command} -e env ctest_output_on_failure=1                   ${cmake_ctest_command} -c $<config> --verbose                   working_directory ${cmake_binary_dir}) 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -