aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/testsuite.sh
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-01-18 01:44:49 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-18 07:27:44 +0100
commite5e4f82e065abcfbfb466ca65f0adfff0c1080e4 (patch)
treedcf0169097b5088d65bd593a531a42400d64496b /testsuite/gna/testsuite.sh
parenteeb25ef2b348b672948ffdee6b9569f819c1886c (diff)
downloadghdl-e5e4f82e065abcfbfb466ca65f0adfff0c1080e4.tar.gz
ghdl-e5e4f82e065abcfbfb466ca65f0adfff0c1080e4.tar.bz2
ghdl-e5e4f82e065abcfbfb466ca65f0adfff0c1080e4.zip
testsuite: add suite_driver.sh
Diffstat (limited to 'testsuite/gna/testsuite.sh')
-rw-r--r--[-rwxr-xr-x]testsuite/gna/testsuite.sh50
1 files changed, 1 insertions, 49 deletions
diff --git a/testsuite/gna/testsuite.sh b/testsuite/gna/testsuite.sh
index 12b367f2c..ebf84842b 100755..100644
--- a/testsuite/gna/testsuite.sh
+++ b/testsuite/gna/testsuite.sh
@@ -1,53 +1,5 @@
#! /bin/sh
-# Driver for a testsuite.
-
set -e
-# This is the only place where test dirs are specified. Do not duplicate this
-# line
-dirs="*[0-9]"
-
-failures=""
-full=n
-
-for opt; do
- case "$opt" in
- -k | --keep-going) full=y ;;
- --dir=*) dirs=`echo $opt | sed -e 's/--dir=//'` ;;
- --skip=*) d=`echo $opt | sed -e 's/--skip=//'`
- dirs=`echo "" $dirs | sed -e "s/ $d//"` ;;
- --start-at=*) d=`echo $opt | sed -e 's/--start-at=//'`
- dirs=`echo "" $dirs | sed -e "s/^.* $d//"`
- dirs="$d $dirs" ;;
- --list-tests) echo $dirs; exit 0;;
- *) echo "Unknown option $opt"
- exit 2
- ;;
- esac
-done
-
-singlerun() {
- echo ""
- echo "dir $1:"
- cd $1
- if ! ./testsuite.sh; then
- echo "#################################################################"
- echo "######### FAILURE: $1"
- echo "#################################################################"
- if [ $2 = "y" ]; then
- failures="$failures $1"
- else
- exit 1;
- fi
- fi
- cd ..
-}
-
-for i in $dirs; do singlerun $i $full; done
-
-if [ x"$failures" = x"" ]; then
- echo "tests are successful" && exit 0
-else
- echo "test failed ($failures)" && exit 1
-fi
+`dirname $0`/../suite_driver.sh gna $@