diff --git a/test/.gitignore b/test/.gitignore index dc405b6c7..b4b29c42e 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -26,3 +26,4 @@ view.t json_test +run_all diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 108dab0dd..ca38fbbab 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,6 +10,15 @@ set (test_SRCS autocomplete.t color.t config.t date.t directory.t dom.t duration.t file.t i18n.t json.t list.t nibbler.t path.t rx.t t.t t2.t taskmod.t tdb2.t text.t uri.t util.t view.t json_test) +message ("-- Configuring run_all") +set (TESTBLOB "*.t") +if (CYGWIN) +set (TESTBLOB "*.t *.t.exe") +endif (CYGWIN) +configure_file ( + ${CMAKE_SOURCE_DIR}/test/run_all.in + ${CMAKE_SOURCE_DIR}/test/run_all) + add_custom_target (test ./run_all --verbose DEPENDS ${test_SRCS} task_executable WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) diff --git a/test/run_all b/test/run_all.in similarity index 92% rename from test/run_all rename to test/run_all.in index ed45cb488..20d178427 100755 --- a/test/run_all +++ b/test/run_all.in @@ -2,7 +2,7 @@ if [ x"$1" = x"--verbose" ]; then - for i in *.t *.t.exe + for i in ${TESTBLOB} do echo '#' $i ./$i > test.log 2>&1 @@ -24,11 +24,11 @@ else if [ -x "$VRAMSTEG" ]; then BAR=1 COUNT=0 - TOTAL=`ls *.t | wc -l` + TOTAL=`ls ${TESTBLOB} | wc -l` START=`$VRAMSTEG --now` fi - for i in *.t *.t.exe + for i in ${TESTBLOB} do echo '#' $i >>all.log