diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-08-19 05:05:31 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-08-19 05:05:31 +0200 |
commit | 0d72d5def31ba701bfce8750820bcd9bb9f4ad5c (patch) | |
tree | fdfe313b17f7110e987198beba3df25add3c0ced /testsuite/sanity/001hello87 | |
parent | e879d9691ac85c5334b2bf27e5fb35c755e2b879 (diff) | |
download | ghdl-0d72d5def31ba701bfce8750820bcd9bb9f4ad5c.tar.gz ghdl-0d72d5def31ba701bfce8750820bcd9bb9f4ad5c.tar.bz2 ghdl-0d72d5def31ba701bfce8750820bcd9bb9f4ad5c.zip |
Add sanity/ testsuite.
Diffstat (limited to 'testsuite/sanity/001hello87')
-rw-r--r-- | testsuite/sanity/001hello87/err87.vhdl | 11 | ||||
-rw-r--r-- | testsuite/sanity/001hello87/hello.vhdl | 7 | ||||
-rwxr-xr-x | testsuite/sanity/001hello87/testsuite.sh | 20 |
3 files changed, 38 insertions, 0 deletions
diff --git a/testsuite/sanity/001hello87/err87.vhdl b/testsuite/sanity/001hello87/err87.vhdl new file mode 100644 index 000000000..e918352ce --- /dev/null +++ b/testsuite/sanity/001hello87/err87.vhdl @@ -0,0 +1,11 @@ +entity err87 is +end err87; + +architecture behav of err87 is +begin + process + begin + report "not valid in vhdl-87" severity note; + wait; + end process; +end behav; diff --git a/testsuite/sanity/001hello87/hello.vhdl b/testsuite/sanity/001hello87/hello.vhdl new file mode 100644 index 000000000..792aae2bd --- /dev/null +++ b/testsuite/sanity/001hello87/hello.vhdl @@ -0,0 +1,7 @@ +entity hello is +end hello; + +architecture behav of hello is +begin + assert false report "Hello VHDL world" severity note; +end behav; diff --git a/testsuite/sanity/001hello87/testsuite.sh b/testsuite/sanity/001hello87/testsuite.sh new file mode 100755 index 000000000..a02c6a1b4 --- /dev/null +++ b/testsuite/sanity/001hello87/testsuite.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=87 +analyze hello.vhdl +elab_simulate hello + +# Check that vhdl-87 is used +analyze_failure err87.vhdl + +clean + +# Check that err87 is a valid vhdl-93 source file +GHDL_STD_FLAGS= +analyze err87.vhdl + +clean + +echo "test successful" |