dncurrency/ci/tests/run-flamegraph-tests.sh
clemahieu 812b53bda7
Add flamegraph generation in CI build (#4638)
Flamegraphs are attached to the build as artifacts.

New tests can be added by creating a new gtest in slow_test.
Tests like TEST (flamegraph, testname_x) will be executed if testname_x is added to the flamegraph.yaml file test matrix.
2024-05-23 16:32:11 +01:00

14 lines
297 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
# Ensure that an argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <argument>"
exit 1
fi
# Capture the argument
ARGUMENT="$1"
# Run the command with the argument
$(dirname "$BASH_SOURCE")/run-tests.sh slow_test --gtest_filter=flamegraph.${ARGUMENT}