From 254111cbdb13e57b5b51676dc8476c67d587ce94 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 11 Jul 2019 14:44:45 +0200 Subject: [PATCH] :white_check_mark: Use -m in builtin test --- tests/sh/plugin.sh | 2 +- tests/sh/test.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.43.0