From aa0f292cce4d381855fc769685bfb9fc9a444335 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 22 Jan 2025 17:11:16 +0000 Subject: [PATCH] Added new test script for light weight assert --- test/run-tests.sh | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 4b45ba3b..dde9b12c 100644 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -481,6 +481,30 @@ else exit $? fi +#****************************************************************************** +compiler=$gcc_compiler +SetConfigurationName "Error macros 'assert function' test" +PrintHeader +cd ../../../etl_error_handler/assert_function +mkdir -p build-make || exit 1 +cd build-make || exit 1 +rm * -rf +cmake -DCMAKE_C_COMPILER="gcc" -DCMAKE_CXX_COMPILER="g++" -DETL_OPTIMISATION=$opt -DETL_CXX_STANDARD=$cxx_standard -DETL_ENABLE_SANITIZER=$sanitize .. +cmake --build . +if [ $? -eq 0 ]; then + PassedCompilation +else + FailedCompilation + exit $? +fi +./etl_tests +if [ $? -eq 0 ]; then + PassedTests +else + FailedTests + exit $? +fi + #****************************************************************************** compiler=$clang_compiler SetConfigurationName "Error macros 'log_errors' test" @@ -553,6 +577,30 @@ else exit $? fi +#****************************************************************************** +compiler=$clang_compiler +SetConfigurationName "Error macros 'assert function' test" +PrintHeader +cd ../../../etl_error_handler/assert_function +mkdir -p build-make || exit 1 +cd build-make || exit 1 +rm * -rf +cmake -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++" -DETL_OPTIMISATION=$opt -DETL_CXX_STANDARD=$cxx_standard -DETL_ENABLE_SANITIZER=$sanitize .. +cmake --build . +if [ $? -eq 0 ]; then + PassedCompilation +else + FailedCompilation + exit $? +fi +./etl_tests +if [ $? -eq 0 ]; then + PassedTests +else + FailedTests + exit $? +fi + cd ../.. TestsCompleted