Compare commits

..

No commits in common. "3800c62827235582d21e879ac809bc135d85e0eb" and "5de1037e9390ebc0cbe001970571bb11dc53e33c" have entirely different histories.

4 changed files with 53 additions and 56 deletions

View file

@ -5,31 +5,22 @@ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export CXX=$(which clang++)
export CC=$(which clang)
export DISPLAY=:99 export DISPLAY=:99
cmake .. \ conan build . \
-G Ninja \ -c tools.system.package_manager:mode=install \
-DCMAKE_LINKER_TYPE=MOLD \ -c tools.cmake.cmaketoolchain:generator=Ninja \
-DENABLE_UNIT_TESTS=ON \ -c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_msan/include/c++/v1/", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
-DCMAKE_BUILD_TYPE=Release \ -c tools.build:sharedlinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
-DCMAKE_CXX_FLAGS=" \ -c tools.build:exelinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
-fsanitize=memory \ -c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \
-fsanitize-memory-track-origins \ -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
-g \ -s build_type=Release \
-fno-omit-frame-pointer \ -s compiler=clang \
-std=c++23 \ -s compiler.version=20 \
-nostdinc++ \ -s compiler.libcxx=libc++ \
-isystem /libcxx_msan/include/c++/v1/" \ -o use_mold=True \
-DCMAKE_EXE_LINKER_FLAGS=" \ --build=missing
-fsanitize=memory \
-fsanitize-memory-track-origins \
-L/libcxx_msan/lib \
-lc++ \
-lc++abi \
-Wl,-rpath,/libcxx_msan/lib" \
&& cmake --build . -j`nproc`
for test in $(find ./build -type f -name '*_tests' -executable); do for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test" echo "Running $test"

View file

@ -5,18 +5,25 @@ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
export CXX=$(which g++) export CXX=$(which g++)
export CC=$(which gcc) export CC=$(which gcc)
export DISPLAY=:99
cmake .. \ conan build . \
-G Ninja \ -c tools.system.package_manager:mode=install \
-DCMAKE_LINKER_TYPE=MOLD \ -c tools.cmake.cmaketoolchain:generator=Ninja \
-DENABLE_UNIT_TESTS=ON \ -c tools.build:compiler_executables='{"c": "gcc", "cpp": "g++"}' \
-DENABLE_LLVM_COVERAGE=ON \ -s build_type=Release \
-DCMAKE_BUILD_TYPE=Release \ -s compiler=gcc \
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \ -s compiler.version=15 \
&& cmake --build . -j `nproc` -s compiler.libcxx=libstdc++ \
-o enable_unit_tests=True \
-o enable_fuzz_tests=False \
-o enable_llvm_coverage=False \
-o enable_static_analysis=False \
-o use_mold=True \
-o export_compile_commands=False \
--build=missing
for test in $(find ./build -type f -name '*_tests' -executable); do for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test" echo "Running $test"

View file

@ -7,26 +7,25 @@ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export CXX=$(which g++)
export CC=$(which gcc)
export DISPLAY=:99 export DISPLAY=:99
cmake .. \ conan build . \
-G Ninja \ -c tools.system.package_manager:mode=install \
-DCMAKE_LINKER_TYPE=MOLD \ -c tools.cmake.cmaketoolchain:generator=Ninja \
-DENABLE_UNIT_TESTS=ON \ -s build_type=Release \
-DENABLE_LLVM_COVERAGE=ON \ -o enable_unit_tests=True \
-DCMAKE_BUILD_TYPE=Release \ -o use_mold=True \
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \ --build=missing
&& cmake --build . -j `nproc`
for test in $(find ./build -type f -name '*_tests' -executable); do for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test" echo "Running $test"
valgrind \ valgrind \
--leak-check=full \ --leak-check=full \
--show-leak-kinds=all \ --show-leak-kinds=all \
--track-origins=yes \ --track-origins=yes \
--verbose \ --verbose \
--error-exitcode=255 ${test} || exit 1 --error-exitcode=255 \
${test} || exit 1
done done

View file

@ -9,12 +9,12 @@ echo 'Runng this would be a waste of CPU cycles and electricty'
echo 'Fix the checks before removing these lines' echo 'Fix the checks before removing these lines'
exit 0 exit 0
cmake .. \ conan build . \
-G Ninja \ -c tools.system.package_manager:mode=install \
-DCMAKE_LINKER_TYPE=MOLD \ -c tools.cmake.cmaketoolchain:generator=Ninja \
-DENABLE_UNIT_TESTS=ON \ -s build_type=Release \
-DENABLE_FUZZ_TESTS=ON \ -o enable_static_analysis=True \
-CMAKE_CXX_CLANG_TIDY=ON \ -o enable_unit_tests=True \
-DCMAKE_BUILD_TYPE=Release \ -o enable_fuzz_tests=True \
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++ -g -fno-omit-frame-pointer" \ -o use_mold=True \
&& cmake --build . -j `nproc` --build=missing