diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-07-20 07:38:35 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-07-20 07:38:35 +0200 |
commit | d10b226f3d1dc302d7a95b9c2d77beaece3d3634 (patch) | |
tree | d7a4bf612cec0f6f89a30cf0c0eb6786620f9941 /testsuite/gna/issue1817/testsuite.sh | |
parent | 088b423572257c3bbe191f6a2eab10b16f214e6c (diff) | |
download | ghdl-d10b226f3d1dc302d7a95b9c2d77beaece3d3634.tar.gz ghdl-d10b226f3d1dc302d7a95b9c2d77beaece3d3634.tar.bz2 ghdl-d10b226f3d1dc302d7a95b9c2d77beaece3d3634.zip |
testsuite/gna: add a test for #1817
Diffstat (limited to 'testsuite/gna/issue1817/testsuite.sh')
-rwxr-xr-x | testsuite/gna/issue1817/testsuite.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/issue1817/testsuite.sh b/testsuite/gna/issue1817/testsuite.sh new file mode 100755 index 000000000..5c20675ca --- /dev/null +++ b/testsuite/gna/issue1817/testsuite.sh @@ -0,0 +1,29 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 + +if $GHDL --version | grep -q "GCC back-end code"; then + is_gcc=true +else + is_gcc=false +fi + +if [ "$is_gcc" = true ]; then + GHDL_FLAGS="-fprofile-arcs -ftest-coverage -Wl,--coverage" +fi + +analyze full_adder.vhdl +analyze full_adder_tb.vhdl + +# Do not try to elaborate, libgcov may not be available + +if [ "$is_gcc" = true ]; then + test -f full_adder.gcno + test -f full_adder_tb.gcno +fi + +clean + +echo "Test successful" |