Unit Tests

- Finally fixed an age-old bug in unit tests.  The bug was that whenever a test
  output contained '*', shell globbing expanded that to a list of all test
  files.  Even though it was simply diagnostic output text.
This commit is contained in:
Paul Beckingham 2013-11-18 17:11:19 -05:00
parent 6bc352f713
commit f18390ee79
2 changed files with 3 additions and 3 deletions

View file

@ -31,8 +31,8 @@ endif (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
configure_file (run_all.in run_all)
add_custom_target (test ./run_all --verbose
DEPENDS ${test_SRCS} task_executable
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
DEPENDS ${test_SRCS} task_executable
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
add_custom_target (build_tests DEPENDS ${test_SRCS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)

View file

@ -8,7 +8,7 @@ then
$i > test.log 2>&1
while read LINE
do
echo $LINE
echo "$LINE"
done < test.log
rm test.log
done