diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-12-17 18:19:07 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-12-17 18:19:07 +0100 |
commit | dc5c224c6a4ffcddcd84780440875457d1e9b7b8 (patch) | |
tree | f39191c13021c5334fe5ad2746d314d9818240a3 /mtests.sh | |
parent | 7be33c252db295021cfba24d9a800fc05fafae28 (diff) | |
download | bin-dc5c224c6a4ffcddcd84780440875457d1e9b7b8.zip bin-dc5c224c6a4ffcddcd84780440875457d1e9b7b8.tar.gz |
mtests: tmp file prefix is /tmp/__mtest, fix argument parsing
Diffstat (limited to 'mtests.sh')
-rwxr-xr-x | mtests.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |