Description: Pass testsuite.sh command line parameters to suite_driver.sh
Author: Andreas Bombe <aeb@debian.org>
Last-Update: 2023-07-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/testsuite/testsuite.sh
+++ b/testsuite/testsuite.sh
@@ -109,11 +109,12 @@
       *) echo "$0: unknown option $opt"; exit 2 ;;
   esac
 done
+args=$@
 
 if [ "x$tests" = "x" ]; then tests="sanity pyunit gna vests synth vpi vhpi"; fi
 
 echo "> tests: $tests"
-echo "> args: $@"
+echo "> args: $args"
 
 # Run a testsuite
 do_test() {
@@ -153,7 +154,7 @@
 $GHDL help
 gend
 
-for t in $tests; do do_test "$t"; done
+for t in $tests; do do_test "$t" "$args"; done
 
 printf "${ANSI_GREEN}[GHDL - test] SUCCESSFUL${ANSI_NOCOLOR}\n"
 touch test_ok
