aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testenv.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-09-16 05:59:42 +0200
committerTristan Gingold <tgingold@free.fr>2015-09-16 05:59:42 +0200
commit6e118c1d32b9a8ad674e765a52f861b2db5b34f5 (patch)
tree802e4dccfbc3b27f358dcf65ac71a279d7e4f127 /testsuite/testenv.sh
parent0b97af64e0cee61513ffedbe180391d94bb7cf69 (diff)
downloadghdl-6e118c1d32b9a8ad674e765a52f861b2db5b34f5.tar.gz
ghdl-6e118c1d32b9a8ad674e765a52f861b2db5b34f5.tar.bz2
ghdl-6e118c1d32b9a8ad674e765a52f861b2db5b34f5.zip
testsuite: run fst tests only if fst feature is present.
Diffstat (limited to 'testsuite/testenv.sh')
-rw-r--r--testsuite/testenv.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh
index e42d7fd97..ccce922b2 100644
--- a/testsuite/testenv.sh
+++ b/testsuite/testenv.sh
@@ -94,6 +94,12 @@ elab_simulate_failure ()
$@ --expect-failure
}
+# Check if a feature is present
+ghdl_has_feature ()
+{
+ $GHDL -r $GHDL_STD_FLAGS $GHDL_FLAGS $1 --has-feature=$2
+}
+
# Run a program
run ()
{