aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-05-21 19:42:03 +0200
committerTristan Gingold <tgingold@free.fr>2021-05-21 19:42:03 +0200
commit088a75fe30063ac20151ce05eb7842cde789d15d (patch)
tree8fd0cab4f5da85faca9637d0b9be636aac48b02e /testsuite
parent3807826b22872b329d62bf93fe27c492e983ebd2 (diff)
downloadghdl-088a75fe30063ac20151ce05eb7842cde789d15d.tar.gz
ghdl-088a75fe30063ac20151ce05eb7842cde789d15d.tar.bz2
ghdl-088a75fe30063ac20151ce05eb7842cde789d15d.zip
testenv.sh: allow additional package files for synth_tb. For #1675
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/testenv.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh
index 4c3a3c33a..aa3735fe1 100644
--- a/testsuite/testenv.sh
+++ b/testsuite/testenv.sh
@@ -166,13 +166,14 @@ synth_analyze()
synth_tb()
{
t=$1
+ shift
- analyze $t.vhdl tb_$t.vhdl
+ analyze $* $t.vhdl tb_$t.vhdl
elab_simulate tb_$t
clean
- synth $t.vhdl -e $t > syn_$t.vhdl
- analyze syn_$t.vhdl tb_$t.vhdl
+ synth $* $t.vhdl -e $t > syn_$t.vhdl
+ analyze $* syn_$t.vhdl tb_$t.vhdl
elab_simulate tb_$t --ieee-asserts=disable-at-0 --assert-level=error
clean
}