diff options
author | tgingold <tgingold@users.noreply.github.com> | 2017-03-01 08:01:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 08:01:00 +0100 |
commit | 31f8e7a53aa3db126c6a7e69e50794d18f88863e (patch) | |
tree | b9e8a587027b2359bbd8c3e59b7d12d4b1098a0d /testsuite/testenv.sh | |
parent | 439664c7e1cc7c9d3587cb72d8f395538aed36bc (diff) | |
parent | 08264571869e92cb7e6dcee5facfedbf0bedce68 (diff) | |
download | ghdl-31f8e7a53aa3db126c6a7e69e50794d18f88863e.tar.gz ghdl-31f8e7a53aa3db126c6a7e69e50794d18f88863e.tar.bz2 ghdl-31f8e7a53aa3db126c6a7e69e50794d18f88863e.zip |
Merge pull request #297 from 1138-4EB/singletravisvm
Improve Travis-CI/Docker scripts
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 |