Skip to content

Commit

Permalink
* updated testall.sh for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooolrik committed Nov 25, 2023
1 parent 240dab0 commit 286ba57
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions testall.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,51 @@
#!/bin/bash

set -e

echo "Building & testing C++11"
mkdir build_c++11
mkdir -p build_c++11
cd build_c++11
cmake .. -DCMAKE_CXX_STANDARD=11 -DCTLE_BUILD_TESTS=ON
cmake --build .
./unit_tests > ../results_c++11
if [ "$os" = "GNU/Linux" ]; then
./unit_tests > ../results_c++11
else
./Debug/unit_tests > ../results_c++11
fi
cd ..

echo "Building & testing C++14"
mkdir build_c++14
mkdir -p build_c++14
cd build_c++14
cmake .. -DCMAKE_CXX_STANDARD=14 -DCTLE_BUILD_TESTS=ON
cmake --build .
./unit_tests > ../results_c++14
if [ "$os" = "GNU/Linux" ]; then
./unit_tests > ../results_c++14
else
./Debug/unit_tests > ../results_c++14
fi
cd ..

echo "Building & testing C++17"
mkdir build_c++17
mkdir -p build_c++17
cd build_c++17
cmake .. -DCMAKE_CXX_STANDARD=17 -DCTLE_BUILD_TESTS=ON
cmake --build .
./unit_tests > ../results_c++17
if [ "$os" = "GNU/Linux" ]; then
./unit_tests > ../results_c++17
else
./Debug/unit_tests > ../results_c++17
fi
cd ..

echo "Building & testing C++20"
mkdir build_c++20
mkdir -p build_c++20
cd build_c++20
cmake .. -DCMAKE_CXX_STANDARD=20 -DCTLE_BUILD_TESTS=ON
cmake --build .
./unit_tests > ../results_c++20
if [ "$os" = "GNU/Linux" ]; then
./unit_tests > ../results_c++20
else
./Debug/unit_tests > ../results_c++20
fi
cd ..

0 comments on commit 286ba57

Please sign in to comment.