File: testsuite-pass-parameters

package info (click to toggle)
ghdl 2.0.0%2Bdfsg-6.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 72,852 kB
  • sloc: ada: 238,924; vhdl: 196,551; ansic: 24,457; python: 17,483; sh: 11,399; cpp: 2,283; makefile: 1,440; pascal: 516; exp: 40; asm: 25
file content (30 lines) | stat: -rw-r--r-- 756 bytes parent folder | 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-01-02
---
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