]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: Use -m in builtin test
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 11 Jul 2019 12:44:45 +0000 (14:44 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 11 Jul 2019 12:44:50 +0000 (14:44 +0200)
tests/sh/plugin.sh
tests/sh/test.sh

index b074f8498c78389c9edbb06867786e661afaa9e1..b1cd9ac683e6152e50cbb7f795bd493d7efebaf5 100644 (file)
@@ -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
index 93ded7d51b8031b8d6390e53863a6564d59a97f8..69545c0ab0ab34fdd0f3f0b540efac2445bbf074 100644 (file)
@@ -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