Skip to content
Snippets Groups Projects
Commit a528aabd authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ftest now running under cmake/ctest

parent d2032f36
No related branches found
No related tags found
No related merge requests found
...@@ -14,5 +14,5 @@ foreach(test_src ${test_sources}) ...@@ -14,5 +14,5 @@ foreach(test_src ${test_sources})
# remove directory path and suffix, to retain just the name of the test # remove directory path and suffix, to retain just the name of the test
string(REGEX REPLACE ".*/" "" test_name "${test_src}") string(REGEX REPLACE ".*/" "" test_name "${test_src}")
string(REGEX REPLACE ".f2t$" "" test_name "${test_name}") string(REGEX REPLACE ".f2t$" "" test_name "${test_name}")
add_test(${test_name} "${test_src}") add_test(NAME ${test_name} COMMAND "${test_src}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(test_src) endforeach(test_src)
#!/bin/bash
COUNTER=0
rm -f log.tmp
for I in *.f2t; do
./$I >> log.tmp
if [ $? = 0 ]; then
echo "passed $I"
else
echo "FAILED $I"
let COUNTER=COUNTER+1
fi
done
echo "=> $COUNTER failures. See log.tmp for full dialogs."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment