diff options
author | 1138-4EB <1138-4EB@users.noreply.github.com> | 2017-02-26 22:59:38 +0100 |
---|---|---|
committer | 1138-4EB <1138-4EB@users.noreply.github.com> | 2017-03-01 06:57:27 +0100 |
commit | 08264571869e92cb7e6dcee5facfedbf0bedce68 (patch) | |
tree | b9e8a587027b2359bbd8c3e59b7d12d4b1098a0d /testsuite/testenv.sh | |
parent | 439664c7e1cc7c9d3587cb72d8f395538aed36bc (diff) | |
download | ghdl-08264571869e92cb7e6dcee5facfedbf0bedce68.tar.gz ghdl-08264571869e92cb7e6dcee5facfedbf0bedce68.tar.bz2 ghdl-08264571869e92cb7e6dcee5facfedbf0bedce68.zip |
Use single VM in .travis.yml to speed-up launching builds. Container are launched in parallel threads.
The output of each thread is saved to a log. All of them are printed in order, after all the threads have finished.
Shared ANSI color codes between libraries/vendors and dist/linux. The common file to be sourced is dist/ansi_color.sh
Diffstat (limited to 'testsuite/testenv.sh')
-rw-r--r-- | testsuite/testenv.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh index 9af5f115d..e77fbc4bd 100644 --- a/testsuite/testenv.sh +++ b/testsuite/testenv.sh @@ -1,6 +1,6 @@ # Testsuite environment # -# This file defines the shell functions to analyse a file, elaborat or run +# This file defines the shell functions to analyse a file, elaborate or run # a design. There are version for expected success and expected failure. # # Every test should source and use this file. @@ -22,6 +22,14 @@ GET_ENTITIES=../get_entities # Exit in case of failure in shell scripts. set -e +# Define colors +ANSI_NOCOLOR="\033[0m" +ANSI_RED="\033[31m" +ANSI_BLUE="\033[34m" +ANSI_GREEN="\033[32m" +# Optionally disable colors +if [ -z "$ENABLECOLOR" ]; then unset ANSI_NOCOLOR ANSI_RED ANSI_BLUE ANSI_GREEN; fi + if [ x"$GHDL" = x ]; then echo "error: GHDL environment variable is not defined" exit 4 |