aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests
diff options
context:
space:
mode:
authorBrian Drummond <brian@shapes.demon.co.uk>2013-12-29 23:26:52 +0000
committerBrian Drummond <brian@shapes.demon.co.uk>2013-12-29 23:26:52 +0000
commit88b807bbf26b2335db8929b1b5202f9cce83704a (patch)
tree33dffcb6786e73e352824403aaf449315bf6c99a /testsuite/vests
parent5f8c9462de0347b816cb015ff31772d3e06e9cf2 (diff)
downloadghdl-88b807bbf26b2335db8929b1b5202f9cce83704a.tar.gz
ghdl-88b807bbf26b2335db8929b1b5202f9cce83704a.tar.bz2
ghdl-88b807bbf26b2335db8929b1b5202f9cce83704a.zip
Fix bug in get_entities, add STOP <time> to testsuite script
Diffstat (limited to 'testsuite/vests')
-rw-r--r--[-rwxr-xr-x]testsuite/vests/testsuite.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/vests/testsuite.sh b/testsuite/vests/testsuite.sh
index c5abd5225..4cd6e97a4 100755..100644
--- a/testsuite/vests/testsuite.sh
+++ b/testsuite/vests/testsuite.sh
@@ -42,6 +42,7 @@ handle_test ()
file=$1
shift
args="$common_args"
+ stop=""
entity=""
# handle options.
for arg; do
@@ -56,6 +57,9 @@ handle_test ()
OUTPUT=*)
output=$arg;
;;
+ STOP=*)
+ stop=`echo $arg | sed -e s/STOP=/--stop-time=/`;
+ ;;
ENTITY=*)
entity=`echo $arg | sed -e s/ENTITY=//`
;;
@@ -82,7 +86,7 @@ handle_test ()
if [ "x$entity" = "x" ]; then
echo "Cannot elaborate or run : no top level entity";
else
- cmd="$GHDL --elab-run $entity --assert-level=error";
+ cmd="$GHDL --elab-run $entity $stop --assert-level=error";
echo "$cmd";
eval $cmd;
fi
@@ -107,7 +111,7 @@ handle_test ()
cmd="$GHDL -e $entity";
echo "$cmd";
eval $cmd;
- cmd="$GHDL -r $entity --expect-failure --assert-level=error";
+ cmd="$GHDL -r $entity $stop --expect-failure --assert-level=error";
echo "$cmd";
eval $cmd;
fi