Files
soci/scripts/ci/test_valgrind.sh
Vadim Zeitlin 578531df45 Disable debuginfod use in Valgrind CI job
This is extremely slow in GitHub Actions environment, resulting in the
"empty" backend test execution taking 814 seconds instead of 2 without
it, and all the other, non trivial, tests simply timing out.

We don't really need it anyhow an it got apparently enabled accidentally
due to DEBUGINFOD_URLS being set to https://debuginfod.ubuntu.com in the
latest GitHub runner Ubuntu images.
2026-08-11 22:44:40 +02:00

13 lines
601 B
Bash
Executable File

#!/usr/bin/env bash
# Builds SOCI for use with Valgrind in CI builds
#
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
# Copyright (c) 2015 Sergei Nikulov <sergey.nikulov@gmail.com>
# Copyright (c) 2021 Vadim Zeitlin <vz-soci@zeitlins.org>
#
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
# Using debuginfod is extremely slow in GitHub Actions environment, so disable
# it to prevent tests time outs.
valgrind --leak-check=full --enable-debuginfod=no --suppressions=${SOCI_SOURCE_DIR}/scripts/suppressions/valgrind --error-exitcode=1 --trace-children=yes ctest -V --output-on-failure "$@" .