summaryrefslogtreecommitdiff
path: root/testsuite/gna/ticket26/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold2014-12-13 13:35:52 +0100
committerTristan Gingold2014-12-13 13:35:52 +0100
commit0c655ec98435f5d9bdfb51cab215002d794c263f (patch)
tree2bff5a580c0ec85a1537b70274bea0eeaf828c3c /testsuite/gna/ticket26/testsuite.sh
parent6b0e4e8d1e42ac329e12fafa3758f3ccd106b436 (diff)
downloadghdl-0c655ec98435f5d9bdfb51cab215002d794c263f.tar.gz
ghdl-0c655ec98435f5d9bdfb51cab215002d794c263f.tar.bz2
ghdl-0c655ec98435f5d9bdfb51cab215002d794c263f.zip
Add ticket26 testcase.
Diffstat (limited to 'testsuite/gna/ticket26/testsuite.sh')
-rwxr-xr-xtestsuite/gna/ticket26/testsuite.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/ticket26/testsuite.sh b/testsuite/gna/ticket26/testsuite.sh
new file mode 100755
index 0000000..4d1d395
--- /dev/null
+++ b/testsuite/gna/ticket26/testsuite.sh
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS="--std=02 -fpsl"
+analyze psl_test_named_statement.vhd
+elab_simulate psl_test_named_statement --stop-time=200ns 2>&1 | tee psl.out
+
+if ! grep -q "psl assertion error" psl.out; then
+ echo "missing psl error"
+ exit 1
+fi
+
+clean
+rm -f psl.out
+
+echo "Test successful"