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/vpi/vpi001/testsuite.sh | 2 +- testsuite/vpi/vpi002/testsuite.sh | 2 +- testsuite/vpi/vpi003/testsuite.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/vpi') diff --git a/testsuite/vpi/vpi001/testsuite.sh b/testsuite/vpi/vpi001/testsuite.sh index a3edac791..4bbded6b4 100755 --- a/testsuite/vpi/vpi001/testsuite.sh +++ b/testsuite/vpi/vpi001/testsuite.sh @@ -5,7 +5,7 @@ analyze mydesign.vhdl elab myentity -if ghdl_has_feature myentity vpi; then +if c_compiler_is_available && ghdl_has_feature myentity vpi; then $GHDL --vpi-compile -v gcc -c vpi1.c $GHDL --vpi-link -v gcc -o vpi1.vpi vpi1.o diff --git a/testsuite/vpi/vpi002/testsuite.sh b/testsuite/vpi/vpi002/testsuite.sh index 508ad6b65..d97b3fb21 100755 --- a/testsuite/vpi/vpi002/testsuite.sh +++ b/testsuite/vpi/vpi002/testsuite.sh @@ -5,7 +5,7 @@ analyze mydesign.vhdl elab myentity -if ghdl_has_feature myentity vpi; then +if c_compiler_is_available && ghdl_has_feature myentity vpi; then $GHDL --vpi-compile -v gcc -c vpi1.c $GHDL --vpi-link -v gcc -o vpi1.vpi vpi1.o diff --git a/testsuite/vpi/vpi003/testsuite.sh b/testsuite/vpi/vpi003/testsuite.sh index 508ad6b65..d97b3fb21 100755 --- a/testsuite/vpi/vpi003/testsuite.sh +++ b/testsuite/vpi/vpi003/testsuite.sh @@ -5,7 +5,7 @@ analyze mydesign.vhdl elab myentity -if ghdl_has_feature myentity vpi; then +if c_compiler_is_available && ghdl_has_feature myentity vpi; then $GHDL --vpi-compile -v gcc -c vpi1.c $GHDL --vpi-link -v gcc -o vpi1.vpi vpi1.o -- cgit v1.2.3