aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/forgen01.vhdl/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-20 12:23:06 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-20 12:23:06 +0200
commit1a74e633ddd7a8c517703201f90992c034dd76d7 (patch)
tree8706c97de6774445dcf805b8c151cc04997e03f9 /testsuite/synth/forgen01.vhdl/testsuite.sh
parentbb6efb5c4092131f46032c74f9fcc322b5db2b6a (diff)
downloadghdl-1a74e633ddd7a8c517703201f90992c034dd76d7.tar.gz
ghdl-1a74e633ddd7a8c517703201f90992c034dd76d7.tar.bz2
ghdl-1a74e633ddd7a8c517703201f90992c034dd76d7.zip
synth: add a test for for-generate statement.
Diffstat (limited to 'testsuite/synth/forgen01.vhdl/testsuite.sh')
-rwxr-xr-xtestsuite/synth/forgen01.vhdl/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/forgen01.vhdl/testsuite.sh b/testsuite/synth/forgen01.vhdl/testsuite.sh
new file mode 100755
index 000000000..70ee6bc2a
--- /dev/null
+++ b/testsuite/synth/forgen01.vhdl/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in forgen01; do
+ 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
+ elab_simulate tb_$t
+ clean
+done
+
+echo "Test successful"