aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-08-18 04:41:00 +0200
committerTristan Gingold <tgingold@free.fr>2017-08-18 04:41:00 +0200
commit5fe560e5d6eb6bd967b0db3fa280deb29ad5d0d6 (patch)
tree704ad7bbbf98cec40947482323376f8177d9612f /testsuite/testsuite.sh
parent4c80a688380e961ae08a05dbc30acb44cf58e8c5 (diff)
downloadghdl-5fe560e5d6eb6bd967b0db3fa280deb29ad5d0d6.tar.gz
ghdl-5fe560e5d6eb6bd967b0db3fa280deb29ad5d0d6.tar.bz2
ghdl-5fe560e5d6eb6bd967b0db3fa280deb29ad5d0d6.zip
travis-ci: move tests driver to buildtest.sh, clean cache before setting it.
Diffstat (limited to 'testsuite/testsuite.sh')
-rwxr-xr-xtestsuite/testsuite.sh25
1 files changed, 8 insertions, 17 deletions
diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh
index 6cad0e2d7..43f6d369a 100755
--- a/testsuite/testsuite.sh
+++ b/testsuite/testsuite.sh
@@ -5,12 +5,10 @@ set -e
. ./testenv.sh
-flag_log=yes
tests=
for opt; do
case "$opt" in
- --nolog) flag_log=no ;;
[a-z]*) tests="$tests $opt" ;;
*) echo "$0: unknown option $opt"; exit 2 ;;
esac
@@ -23,41 +21,34 @@ printf "$ANSI_BLUE[$TASK| GHDL - test] Sourced the testsuite environment $ANSI_N
# The GNA testsuite: regression testsuite using reports/issues from gna.org
do_gna() {
cd gna
- if [ $flag_log = yes ]; then
- ./testsuite.sh 1>> ../../log.log 2>&1
- else
- ./testsuite.sh
- fi
+ ./testsuite.sh
cd ..
}
# The VESTS testsuite: compliance testsuite, from: https://github.com/nickg/vests.git 388250486a
do_vests() {
cd vests
- if [ $flag_log = yes ]; then
- ./testsuite.sh 1>> ../../log.log 2>&1
- else
- ./testsuite.sh
- fi
+ ./testsuite.sh
cd ..
}
# Run a testsuite
do_test() {
- printf "$ANSI_BLUE[$TASK| GHDL - test] $1 $ANSI_NOCOLOR\n"
case $1 in
gna) do_gna;;
vests) do_vests;;
*)
- printf *e "$ANSI_RED$0: test name '$1' is unknown $ANSI_NOCOLOR"
+ echo "$0: test name '$1' is unknown"
exit 1;;
esac
}
-printf "$ANSI_BLUE[$TASK| GHDL - test] GHDL is: $GHDL $ANSI_NOCOLOR\n"
for t in $tests; do do_test $t; done
-printf "$ANSI_BLUE[$TASK| GHDL - test] $0: $cGREENSuccess$ANSI_BLUE [$GHDL] $ANSI_NOCOLOR\n"
-$GHDL --version 1>> ../log.log 2>&1
+echo "$0: Success"
+
+echo "GHDL is: $GHDL"
+$GHDL --version
+
exit 0