ci(amd64/gcc/valgrind): replace conan commands with cmake
This commit is contained in:
parent
6537b456f9
commit
6d301ec510
1 changed files with 15 additions and 14 deletions
|
|
@ -7,25 +7,26 @@ 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
|
||||||
|
|
||||||
conan build . \
|
cmake .. \
|
||||||
-c tools.system.package_manager:mode=install \
|
-G Ninja \
|
||||||
-c tools.cmake.cmaketoolchain:generator=Ninja \
|
-DCMAKE_LINKER_TYPE=MOLD \
|
||||||
-s build_type=Release \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-o enable_unit_tests=True \
|
-DENABLE_LLVM_COVERAGE=ON \
|
||||||
-o use_mold=True \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
--build=missing
|
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \
|
||||||
|
&& 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 \
|
--error-exitcode=255 ${test} || exit 1
|
||||||
${test} || exit 1
|
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue