From 9b0acc1cc30d368ace307cbc8e93cb79c52cad5d Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 10 Sep 2025 15:18:26 +0330 Subject: [PATCH] ci: modify amd64/gcc/valgrind script --- tools/ci/amd64/gcc/valgrind.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/ci/amd64/gcc/valgrind.sh b/tools/ci/amd64/gcc/valgrind.sh index 48beaf5..b60680b 100755 --- a/tools/ci/amd64/gcc/valgrind.sh +++ b/tools/ci/amd64/gcc/valgrind.sh @@ -14,4 +14,15 @@ conan build . \ -o use_mold=True \ --build=missing -find ./build -type f -name "*_tests" -executable | xargs -I {} bash -c 'valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=255 {}' || exit 1 + +for test in $(find ./build -type f -name '*_tests' -executable); do + echo "Running $test" + + valgrind \ + --leak-check=full \ + --show-leak-kinds=all \ + --track-origins=yes \ + --verbose \ + --error-exitcode=255 \ + ${test} || exit 1 +done