aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket51
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-02-09 20:27:51 +0100
committerTristan Gingold <tgingold@free.fr>2016-02-09 20:27:51 +0100
commit45dba464bc2f69145753e4c9c9b1dde0868ec878 (patch)
tree84ec4ab7344a59c26a175e299d57f594373068d4 /testsuite/gna/ticket51
parentae3865c0cbf1f71f7b8576031a37ac855060677b (diff)
downloadghdl-45dba464bc2f69145753e4c9c9b1dde0868ec878.tar.gz
ghdl-45dba464bc2f69145753e4c9c9b1dde0868ec878.tar.bz2
ghdl-45dba464bc2f69145753e4c9c9b1dde0868ec878.zip
testsuite: check feature before testing it.
Diffstat (limited to 'testsuite/gna/ticket51')
-rwxr-xr-xtestsuite/gna/ticket51/testsuite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/gna/ticket51/testsuite.sh b/testsuite/gna/ticket51/testsuite.sh
index 2eb6c9d1c..407c27f80 100755
--- a/testsuite/gna/ticket51/testsuite.sh
+++ b/testsuite/gna/ticket51/testsuite.sh
@@ -5,8 +5,8 @@
analyze ent.vhdl
elab_simulate ent
-if "$GHDL" -v | grep -q mcode; then
- echo "-o not supported by mcode"
+if "$GHDL" -v | egrep -q 'mcode|interpret'; then
+ echo "Option -o not supported by mcode/interpretation"
else
"$GHDL" --elab-run -o ent1 ent
"$GHDL" --elab-run -o "$PWD/ent2" ent