aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/pragma01/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-07-24 07:30:33 +0200
committerTristan Gingold <tgingold@free.fr>2019-07-24 07:30:33 +0200
commita679e4d670f2dfea33753e03fdbff1d223f3034b (patch)
treecdce00286748b4823e2c32d4293b8e2ccd747586 /testsuite/synth/pragma01/testsuite.sh
parentad603ca5e806e14f200a508da9d79620b45e22f0 (diff)
downloadghdl-a679e4d670f2dfea33753e03fdbff1d223f3034b.tar.gz
ghdl-a679e4d670f2dfea33753e03fdbff1d223f3034b.tar.bz2
ghdl-a679e4d670f2dfea33753e03fdbff1d223f3034b.zip
synth: add testcase for pragma translate_off.
Diffstat (limited to 'testsuite/synth/pragma01/testsuite.sh')
-rwxr-xr-xtestsuite/synth/pragma01/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/pragma01/testsuite.sh b/testsuite/synth/pragma01/testsuite.sh
new file mode 100755
index 000000000..2123f3e39
--- /dev/null
+++ b/testsuite/synth/pragma01/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in pragma01; do
+ analyze $t.vhdl tb_${t}_sim.vhdl
+ elab_simulate tb_${t}_sim
+ clean
+
+ synth $t.vhdl -e $t > syn_$t.vhdl
+ analyze syn_$t.vhdl tb_${t}_syn.vhdl
+ elab_simulate tb_${t}_syn
+ clean
+done
+
+echo "Test successful"