Color output

This commit is contained in:
Jan Möbius
2015-12-03 10:58:00 +01:00
parent 601c93894d
commit bb6642a89f
2 changed files with 61 additions and 34 deletions

View File

@@ -28,12 +28,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then
BUILDPATH="$BUILDPATH-cpp11"
fi
#=====================================
# Color Settings:
#=====================================
NC='\033[0m'
OUTPUT='\033[0;32m'
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Release version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then
@@ -50,12 +57,12 @@ make
#build the unit tests
make unittests
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running unittests Release version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
cd Unittests
@@ -65,11 +72,12 @@ cd Unittests
cd ..
cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Release version with vectorchecks disabled for python tests"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release-$BUILDPATH
@@ -82,11 +90,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A
#build it
make
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running Python unittests Release version "
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
# Execute Python unittests
@@ -99,11 +108,12 @@ cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Debug version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then
@@ -120,11 +130,12 @@ make
#build the unit tests
make unittests
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running unittests Debug version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
cd Unittests
@@ -135,11 +146,12 @@ cd Unittests
cd ..
cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Debug version with vectorchecks disabled for python tests"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH ]; then
mkdir build-debug-$BUILDPATH
@@ -152,11 +164,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP
#build it
make
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running Python unittests Debug version "
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
# Execute Python unittests

View File

@@ -5,6 +5,7 @@ set -e
LANGUAGE=$1
PATH=$PATH:/opt/local/bin
export PATH
@@ -19,12 +20,19 @@ elif [ "$LANGUAGE" == "C++11" ]; then
BUILDPATH="$BUILDPATH-cpp11"
fi
#=====================================
# Color Settings:
#=====================================
NC='\033[0m'
OUTPUT='\033[0;32m'
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Release version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH-Vector-Checks ]; then
@@ -41,12 +49,12 @@ make
#build the unit tests
make unittests
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running unittests Release version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
cd Unittests
@@ -56,11 +64,12 @@ cd Unittests
cd ..
cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Release version with vectorchecks disabled for python tests"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release-$BUILDPATH
@@ -73,11 +82,12 @@ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_A
#build it
make
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running Python unittests Release version "
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
# Execute Python unittests
@@ -92,11 +102,12 @@ cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Debug version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH-Vector-Checks ]; then
@@ -113,11 +124,12 @@ make
#build the unit tests
make unittests
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running unittests Debug version with vectorchecks enabled"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
cd Unittests
@@ -128,11 +140,12 @@ cd Unittests
cd ..
cd ..
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Building Debug version with vectorchecks disabled for python tests"
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
if [ ! -d build-debug-$BUILDPATH ]; then
mkdir build-debug-$BUILDPATH
@@ -145,11 +158,12 @@ cmake -DCMAKE_BUILD_TYPE=DEBUG -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON -DBUILD_APP
#build it
make
echo ""
echo "${OUTPUT}"
echo ""
echo "======================================================================"
echo "Running Python unittests Debug version "
echo "====================================================================== \n"
echo "======================================================================"
echo "${NC}"
# Execute Python unittests