aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vpi/vpi001
diff options
context:
space:
mode:
authorLukas Vik <2767848-LukasVik@users.noreply.gitlab.com>2020-11-17 11:26:54 +0100
committertgingold <tgingold@users.noreply.github.com>2020-11-21 08:35:18 +0100
commit277ca7463070d1250a3168ce01762149bd0fb445 (patch)
treec47cf21e2aafffe68a2d10eeed5c7d68ee762c5b /testsuite/vpi/vpi001
parent59113550786db33cde37db76c916b9fbdd88e009 (diff)
downloadghdl-277ca7463070d1250a3168ce01762149bd0fb445.tar.gz
ghdl-277ca7463070d1250a3168ce01762149bd0fb445.tar.bz2
ghdl-277ca7463070d1250a3168ce01762149bd0fb445.zip
Skip some test if gcc is not installed
Diffstat (limited to 'testsuite/vpi/vpi001')
-rwxr-xr-xtestsuite/vpi/vpi001/testsuite.sh2
1 files changed, 1 insertions, 1 deletions
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