From a528aabdb892b321cb6d5efe06a20acda5cc2301 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Tue, 20 Oct 2015 11:05:22 +0200
Subject: [PATCH] ftest now running under cmake/ctest

---
 pub/ftest/CMakeLists.txt |  2 +-
 pub/ftest/run            | 14 --------------
 2 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100755 pub/ftest/run

diff --git a/pub/ftest/CMakeLists.txt b/pub/ftest/CMakeLists.txt
index 1541e939..524405cb 100644
--- a/pub/ftest/CMakeLists.txt
+++ b/pub/ftest/CMakeLists.txt
@@ -14,5 +14,5 @@ foreach(test_src ${test_sources})
     # remove directory path and suffix, to retain just the name of the test
     string(REGEX REPLACE ".*/" "" test_name "${test_src}")
     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)
diff --git a/pub/ftest/run b/pub/ftest/run
deleted file mode 100755
index a7347674..00000000
--- a/pub/ftest/run
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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."
-- 
GitLab