From: fennecdjay Date: Thu, 11 Jul 2019 12:44:45 +0000 (+0200) Subject: :white_check_mark: Use -m in builtin test X-Git-Tag: nightly~2348^2~7 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=254111cbdb13e57b5b51676dc8476c67d587ce94;p=gwion.git :white_check_mark: Use -m in builtin test --- diff --git a/tests/sh/plugin.sh b/tests/sh/plugin.sh index b074f849..b1cd9ac6 100644 --- a/tests/sh/plugin.sh +++ b/tests/sh/plugin.sh @@ -42,7 +42,7 @@ do test_plugin "$(basename $test_file .c)" done DRIVER="driver_test:arg" test_plugin driver -GWOPT+="-mdummy_module=with,some,argument" test_plugin module +MODULE="dummy_module=with,some,argument" test_plugin module # clean rm -f ./*.gcda ./*.gcno vgcore.* ./*.o ./*.so diff --git a/tests/sh/test.sh b/tests/sh/test.sh index 93ded7d5..69545c0a 100644 --- a/tests/sh/test.sh +++ b/tests/sh/test.sh @@ -14,6 +14,7 @@ : "${ANSI_BOLD:=\033[33;1m}" : "${DRIVER:=dummy}" +: "${MODULE:=dummy}" : "${SUPP:=help/supp}" : "${ASYNC:=4}" @@ -183,10 +184,10 @@ test_gw(){ vlog=${GWION_TEST_DIR}/${GWION_TEST_PREFIX}$(printf "%04i" "$n").valgrind.log rlog=${GWION_TEST_DIR}/${GWION_TEST_PREFIX}$(printf "%04i" "$n").log if [ "$VALGRIND" == "NO_VALGRIND" ] - then LANG=C ./"$PRG" "$GWOPT" -d "$DRIVER" "$file" > "$slog" 2>"$elog" |: + then LANG=C ./"$PRG" "$GWOPT" -m "$MODULE" -d "$DRIVER" "$file" > "$slog" 2>"$elog" |: else LANG=C "$VALGRIND" --suppressions="$SUPP" --log-file="$vlog" \ - ./"$PRG" "$GWOPT" -d "$DRIVER" "$file" > "$slog" 2>"$elog" |: + ./"$PRG" "$GWOPT" -m "$MODULE" -d "$DRIVER" "$file" > "$slog" 2>"$elog" |: fi ret=$? #enable skip