aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/block01/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-05 08:05:26 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-05 08:05:26 +0200
commit5c72f37c3eaf69d59f0f9a22473d68ce70858450 (patch)
tree280d1c32e362368808a31c62f3e90c9b4327fb09 /testsuite/synth/block01/testsuite.sh
parentb574ebd8a8e74b45d2680366e2a3c478ee388a9c (diff)
downloadghdl-5c72f37c3eaf69d59f0f9a22473d68ce70858450.tar.gz
ghdl-5c72f37c3eaf69d59f0f9a22473d68ce70858450.tar.bz2
ghdl-5c72f37c3eaf69d59f0f9a22473d68ce70858450.zip
testsuite/synth: add a test for block declarations.
Diffstat (limited to 'testsuite/synth/block01/testsuite.sh')
-rwxr-xr-xtestsuite/synth/block01/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/block01/testsuite.sh b/testsuite/synth/block01/testsuite.sh
new file mode 100755
index 000000000..8729220fc
--- /dev/null
+++ b/testsuite/synth/block01/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in block01 block02; 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"