From dc5c224c6a4ffcddcd84780440875457d1e9b7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 17 Dec 2016 18:19:07 +0100 Subject: mtests: tmp file prefix is /tmp/__mtest, fix argument parsing --- mtests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mtests.sh b/mtests.sh index 128419d..d598bf0 100755 --- a/mtests.sh +++ b/mtests.sh @@ -33,10 +33,10 @@ INIT_C="init.c" SHUTDOWN_C="shutdown.c" # output files -TMP="/tmp" -TEST_C="$TMP/__efl_test.c" -TEST_O="$TMP/__efl_test.o" -FAILED_F="$TMP/__efl_tests_failed" +TMP="/tmp/__mtest" +TEST_C="${TMP}.c" +TEST_O="${TMP}.o" +FAILED_F="${TMP}_failed" # local vars LD="" @@ -72,13 +72,13 @@ function say_anyway while [ $# -ge 1 ]; do case "$1" in - -s*|--src*) + -s|--src) shift [ $# -lt 1 ] && fatal "option -s is missing directory argument" SRC_D=$1 shift ;; - -b*|--build*) + -b|--build) shift [ $# -lt 1 ] && fatal "option -b is missing directory argument" BUILD_D=$1 -- cgit v1.1-2-g2b99