diff --git a/test/runtests-O1.sh b/test/runtests-O1.sh deleted file mode 100644 index 59bc4062..00000000 --- a/test/runtests-O1.sh +++ /dev/null @@ -1,238 +0,0 @@ -#!/bin/sh -clear - -mkdir -p build-make || exit 1 -cd build-make || exit 1 - -echo "ETL Tests" > log.txt - -opt="-O1" - -#****************************************************************************** -# GCC -#****************************************************************************** -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - STL" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03_IMPLEMENTATION=OFF -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Compilation >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../etl_initializer_list/ -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -cd ../.. - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " All Tests Completed OK" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt diff --git a/test/runtests-O2.sh b/test/runtests-O2.sh deleted file mode 100644 index 93f5e8c9..00000000 --- a/test/runtests-O2.sh +++ /dev/null @@ -1,238 +0,0 @@ -#!/bin/sh -clear - -mkdir -p build-make || exit 1 -cd build-make || exit 1 - -echo "ETL Tests" > log.txt - -opt="-O2" - -#****************************************************************************** -# GCC -#****************************************************************************** -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - STL" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03_IMPLEMENTATION=OFF -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Compilation >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../etl_initializer_list/ -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -cd ../.. - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " All Tests Completed OK" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt diff --git a/test/runtests-O3.sh b/test/runtests-O3.sh deleted file mode 100644 index 4550ca10..00000000 --- a/test/runtests-O3.sh +++ /dev/null @@ -1,238 +0,0 @@ -#!/bin/sh -clear - -mkdir -p build-make || exit 1 -cd build-make || exit 1 - -echo "ETL Tests" > log.txt - -opt="-O3" - -#****************************************************************************** -# GCC -#****************************************************************************** -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - STL" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03_IMPLEMENTATION=OFF -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Compilation >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../etl_initializer_list/ -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Initializer list test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed initializer_list Compilation >>>>" -else - echo "****************\n**** Failed initializer_list ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " GCC - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -gcc --version | grep gcc | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " Clang - Error macros 'log_errors and exceptions' test" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt -cd ../../../etl_error_handler/log_errors_and_exceptions -mkdir -p build-make || exit 1 -cd build-make || exit 1 -rm * -rf -clang --version | grep clang | tee -a log.txt -cmake -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt .. -make -j4 -if [ $? -eq 0 ]; then - echo "<<<< Passed Error macros 'log_errors and exceptions' Compilation >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi -./etl_tests -if [ $? -eq 0 ]; then - echo "<<<< Passed Tests >>>>" -else - echo "****************\n**** Failed Error macros 'log_errors and exceptions' ****\n****************" | tee -a ../log.txt - exit $? -fi - -cd ../.. - -echo "" -echo "-----------------------------------------------" | tee -a log.txt -echo " All Tests Completed OK" | tee -a log.txt -echo "-----------------------------------------------" | tee -a log.txt