From ba36f5702ccd592aa6ce72a607ca3dfb6e54a5f7 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 16 Nov 2021 13:55:36 +0100 Subject: [PATCH] Fix the test driver --- test/CMakeLists.txt | 4 +++- test/driver.sh | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6fb75aa..e826419 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,7 +14,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set(OVNI_TEST_DIR "${CMAKE_SOURCE_DIR}/test") + add_executable(flush flush.c) target_link_libraries(flush ovni) -add_test(NAME flush COMMAND ./driver.sh flush) +add_test(NAME flush COMMAND "${OVNI_TEST_DIR}/driver.sh" flush) diff --git a/test/driver.sh b/test/driver.sh index b77d2ae..0f0842b 100755 --- a/test/driver.sh +++ b/test/driver.sh @@ -19,14 +19,14 @@ set -e testname="$1" tracedir="ovni" -emubin=../emu +emubin=../ovniemu -rm -rf $tracedir +rm -rf "$tracedir" # Run the test -./$testname +"./$testname" # Then launch the emulator in lint mode -$emubin $tracedir +"$emubin" -l "$tracedir" #rm -rf $tracedir