From 277ca7463070d1250a3168ce01762149bd0fb445 Mon Sep 17 00:00:00 2001 From: Lukas Vik <2767848-LukasVik@users.noreply.gitlab.com> Date: Tue, 17 Nov 2020 11:26:54 +0100 Subject: Skip some test if gcc is not installed --- testsuite/gna/issue1326/testsuite.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testsuite/gna/issue1326/testsuite.sh') 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 -- cgit v1.2.3