diff options
author | Lukas Vik <2767848-LukasVik@users.noreply.gitlab.com> | 2020-11-17 11:26:54 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2020-11-21 08:35:18 +0100 |
commit | 277ca7463070d1250a3168ce01762149bd0fb445 (patch) | |
tree | c47cf21e2aafffe68a2d10eeed5c7d68ee762c5b /testsuite/gna/issue1326/testsuite.sh | |
parent | 59113550786db33cde37db76c916b9fbdd88e009 (diff) | |
download | ghdl-277ca7463070d1250a3168ce01762149bd0fb445.tar.gz ghdl-277ca7463070d1250a3168ce01762149bd0fb445.tar.bz2 ghdl-277ca7463070d1250a3168ce01762149bd0fb445.zip |
Skip some test if gcc is not installed
Diffstat (limited to 'testsuite/gna/issue1326/testsuite.sh')
-rwxr-xr-x | testsuite/gna/issue1326/testsuite.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/gna/issue1326/testsuite.sh b/testsuite/gna/issue1326/testsuite.sh index e6b3262c8..b90269d4b 100755 --- a/testsuite/gna/issue1326/testsuite.sh +++ b/testsuite/gna/issue1326/testsuite.sh @@ -7,10 +7,13 @@ elab mytestbench simulate mytestbench --wave=dump.ghw | tee mytestbench.out -gcc ../../../src/grt/ghwdump.c ../../../src/grt/ghwlib.c -I../../../src/grt/ -o ghwdump +if c_compiler_is_available; then -# We're just checking that ghwdump doesn't crash on a zero length signal. -./ghwdump -ths dump.ghw > dump.txt + gcc ../../../src/grt/ghwdump.c ../../../src/grt/ghwlib.c -I../../../src/grt/ -o ghwdump + + # We're just checking that ghwdump doesn't crash on a zero length signal. + ./ghwdump -ths dump.ghw > dump.txt +fi rm -f mytestbench.out ghwdump dump.txt dump.ghw clean |