From a3d2ba1812a7b899d4e1f752ee49604bb9ff1f92 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 31 Jul 2016 08:55:31 +0200 Subject: Add testcase for issue #103 --- testsuite/gna/issue103/hello.vhdl | 2 ++ testsuite/gna/issue103/testsuite.sh | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 testsuite/gna/issue103/hello.vhdl create mode 100755 testsuite/gna/issue103/testsuite.sh diff --git a/testsuite/gna/issue103/hello.vhdl b/testsuite/gna/issue103/hello.vhdl new file mode 100644 index 000000000..5e8ea239d --- /dev/null +++ b/testsuite/gna/issue103/hello.vhdl @@ -0,0 +1,2 @@ +entity hello is +end hello; diff --git a/testsuite/gna/issue103/testsuite.sh b/testsuite/gna/issue103/testsuite.sh new file mode 100755 index 000000000..84e287fd5 --- /dev/null +++ b/testsuite/gna/issue103/testsuite.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze -P. hello.vhdl +analyze -P=. hello.vhdl + +# Cannot use analyze_failure for errors in options. +if analyze -P= hello.vhdl; then + echo "failure expected for -P=" + exit 1; +fi +if analyze -P hello.vhdl; then + echo "failure expected for -P" + exit 1; +fi + +clean + +echo "Test successful" -- cgit v1.2.3