Skip to content

Commit

Permalink
Add a prepare target for tests, to help with debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Aug 15, 2016
1 parent dff12e6 commit 23200d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ foreach(module_dep
execute_process(COMMAND appveyor AddTest -Name ${test_name}
-Framework Custom -FileName "")
endif()

# It helps with debugging if the test depends on another step which
# prepares the target directory, and is always out of date.
add_custom_target(${module_name}-prepare
COMMAND ${PERL_EXECUTABLE} ${base_dir}/runtest.pl
-n -c ${test_name}
$<CONFIG> "$<TARGET_FILE:${module_name}>" "${test_executable}"
WORKING_DIRECTORY ${base_dir})
elseif(module_name MATCHES "^(lib_.*|qdbm)$")
if(DEBUG)
message(STATUS "add library '${module_name}': '${module_files}'")
Expand Down

0 comments on commit 23200d3

Please sign in to comment.