summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/gna/bug16144/testsuite.sh2
-rwxr-xr-xtestsuite/gna/ticket30/testsuite.sh4
-rwxr-xr-xtestsuite/gna/ticket51/testsuite.sh6
-rwxr-xr-xtestsuite/gna/ticket77/testsuite.sh2
-rw-r--r--testsuite/testenv.sh24
5 files changed, 19 insertions, 19 deletions
diff --git a/testsuite/gna/bug16144/testsuite.sh b/testsuite/gna/bug16144/testsuite.sh
index 7a261ed..3175278 100755
--- a/testsuite/gna/bug16144/testsuite.sh
+++ b/testsuite/gna/bug16144/testsuite.sh
@@ -2,6 +2,6 @@
. ../../testenv.sh
-$GHDL --lines adder.vhdl
+"$GHDL" --lines adder.vhdl
echo "Test successful"
diff --git a/testsuite/gna/ticket30/testsuite.sh b/testsuite/gna/ticket30/testsuite.sh
index 47e2076..78d21cc 100755
--- a/testsuite/gna/ticket30/testsuite.sh
+++ b/testsuite/gna/ticket30/testsuite.sh
@@ -2,8 +2,8 @@
. ../../testenv.sh
-$GHDL -i lib_numeric_tb.vhd
-$GHDL -m numeric_tb
+"$GHDL" -i lib_numeric_tb.vhd
+"$GHDL" -m numeric_tb
simulate numeric_tb --stop-time=10ns --wave=numeric_tb.ghw \
--sdf=typ==lib_numeric_tb.sdf
diff --git a/testsuite/gna/ticket51/testsuite.sh b/testsuite/gna/ticket51/testsuite.sh
index ae261dc..2eb6c9d 100755
--- a/testsuite/gna/ticket51/testsuite.sh
+++ b/testsuite/gna/ticket51/testsuite.sh
@@ -5,11 +5,11 @@
analyze ent.vhdl
elab_simulate ent
-if $GHDL -v | grep -q mcode; then
+if "$GHDL" -v | grep -q mcode; then
echo "-o not supported by mcode"
else
- $GHDL --elab-run -o ent1 ent
- $GHDL --elab-run -o $PWD/ent2 ent
+ "$GHDL" --elab-run -o ent1 ent
+ "$GHDL" --elab-run -o "$PWD/ent2" ent
fi
rm -f ent1 ent2
diff --git a/testsuite/gna/ticket77/testsuite.sh b/testsuite/gna/ticket77/testsuite.sh
index cc5d754..7f71733 100755
--- a/testsuite/gna/ticket77/testsuite.sh
+++ b/testsuite/gna/ticket77/testsuite.sh
@@ -11,7 +11,7 @@ analyze_elab_simulate_status()
analyze $file
set +e
echo "elaborate and simulate $ent"
- $GHDL --elab-run $GHDL_STD_FLAGS $ent
+ "$GHDL" --elab-run $GHDL_STD_FLAGS $ent
if [ $? -ne $status ]; then
echo "Exit status $status expected"
exit 1
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh
index ccce922..60dc09e 100644
--- a/testsuite/testenv.sh
+++ b/testsuite/testenv.sh
@@ -22,7 +22,7 @@ GET_ENTITIES=../get_entities
# Exit in case of failure in shell scripts.
set -e
-if [ x$GHDL = x ]; then
+if [ x"$GHDL" = x ]; then
echo "error: GHDL environment variable is not defined"
exit 4
fi
@@ -31,7 +31,7 @@ fi
analyze ()
{
echo "analyze $@"
- $GHDL -a $GHDL_STD_FLAGS $GHDL_FLAGS $@
+ "$GHDL" -a $GHDL_STD_FLAGS $GHDL_FLAGS $@
}
# Analyze files (failure expected)
@@ -39,7 +39,7 @@ analyze_failure ()
{
echo "try to analyze $@"
# for arg in $@; do echo "arg: $arg"; done
- if ! $GHDL -a --expect-failure $GHDL_STD_FLAGS $GHDL_FLAGS $@ ; then
+ if ! "$GHDL" -a --expect-failure $GHDL_STD_FLAGS $GHDL_FLAGS $@ ; then
echo "Failure expected"
return 1
fi
@@ -50,7 +50,7 @@ analyze_failure ()
elab ()
{
echo "elaborate $@"
- $GHDL -e $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
+ "$GHDL" -e $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
}
# Elaborate a design (failure expected)
@@ -58,7 +58,7 @@ elab ()
elab_failure ()
{
echo "elaborate (failure expected) $@"
- $GHDL -e --expect-failure $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
+ "$GHDL" -e --expect-failure $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
}
# Simulate a design (no error expected)
@@ -66,7 +66,7 @@ elab_failure ()
simulate ()
{
echo "simulate $@ ($GHDL_FLAGS $@ $GHDL_SIMFLAGS)" >&2
- $GHDL -r $GHDL_STD_FLAGS $GHDL_FLAGS "$@" $GHDL_SIMFLAGS
+ "$GHDL" -r $GHDL_STD_FLAGS $GHDL_FLAGS "$@" $GHDL_SIMFLAGS
#./$@
}
@@ -75,7 +75,7 @@ simulate ()
simulate_failure ()
{
echo "simulate (failure expected) $@" >&2
- $GHDL -r $GHDL_STD_FLAGS $GHDL_FLAGS $@ --expect-failure
+ "$GHDL" -r $GHDL_STD_FLAGS $GHDL_FLAGS $@ --expect-failure
#./$@
}
@@ -83,21 +83,21 @@ simulate_failure ()
elab_simulate ()
{
echo "elaborate and simulate $@"
- $GHDL --elab-run $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
+ "$GHDL" --elab-run $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS $@
}
# Elaborate and simulate a design (failure expected)
elab_simulate_failure ()
{
echo "elaborate and simulate (failure expected) $@"
- $GHDL --elab-run $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS \
+ "$GHDL" --elab-run $GHDL_STD_FLAGS $GHDL_FLAGS $GHDL_ELABFLAGS \
$@ --expect-failure
}
# Check if a feature is present
ghdl_has_feature ()
{
- $GHDL -r $GHDL_STD_FLAGS $GHDL_FLAGS $1 --has-feature=$2
+ "$GHDL" -r $GHDL_STD_FLAGS $GHDL_FLAGS $1 --has-feature=$2
}
# Run a program
@@ -122,9 +122,9 @@ clean ()
{
if [ $# -eq 0 ]; then
echo "Remove work library"
- $GHDL --remove $GHDL_STD_FLAGS
+ "$GHDL" --remove $GHDL_STD_FLAGS
else
echo "Remove $1 library"
- $GHDL --remove $GHDL_STD_FLAGS --work=$1
+ "$GHDL" --remove $GHDL_STD_FLAGS --work=$1
fi
}