diff options
-rw-r--r-- | testsuite/gna/issue103/hello.vhdl | 2 | ||||
-rwxr-xr-x | testsuite/gna/issue103/testsuite.sh | 20 |
2 files changed, 22 insertions, 0 deletions
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" |