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:
@@ -31,8 +31,8 @@ endif (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|||||||
configure_file (run_all.in run_all)
|
configure_file (run_all.in run_all)
|
||||||
|
|
||||||
add_custom_target (test ./run_all --verbose
|
add_custom_target (test ./run_all --verbose
|
||||||
DEPENDS ${test_SRCS} task_executable
|
DEPENDS ${test_SRCS} task_executable
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test)
|
||||||
|
|
||||||
add_custom_target (build_tests DEPENDS ${test_SRCS}
|
add_custom_target (build_tests DEPENDS ${test_SRCS}
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ then
|
|||||||
$i > test.log 2>&1
|
$i > test.log 2>&1
|
||||||
while read LINE
|
while read LINE
|
||||||
do
|
do
|
||||||
echo $LINE
|
echo "$LINE"
|
||||||
done < test.log
|
done < test.log
|
||||||
rm test.log
|
rm test.log
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user