Package: ghdl / 5.0.1+dfsg-1

testsuite-pass-parameters Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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() {
@@ -171,7 +172,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