mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Added new test script for light weight assert
This commit is contained in:
parent
91a345bb17
commit
aa0f292cce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user