summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-12-17 18:19:07 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-12-17 18:19:07 +0100
commitdc5c224c6a4ffcddcd84780440875457d1e9b7b8 (patch)
treef39191c13021c5334fe5ad2746d314d9818240a3
parent7be33c252db295021cfba24d9a800fc05fafae28 (diff)
downloadbin-dc5c224c6a4ffcddcd84780440875457d1e9b7b8.zip
bin-dc5c224c6a4ffcddcd84780440875457d1e9b7b8.tar.gz
mtests: tmp file prefix is /tmp/__mtest, fix argument parsing
-rwxr-xr-xmtests.sh12
1 files 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