Files
mepicsca/run_test.sh
T
2026-04-23 08:46:42 +02:00

8 lines
431 B
Bash
Executable File

#!/bin/bash
# This wrapper script is necessary to actually run the test with ctest because
# EPICS apparently calls grep and then terminates it with SIGTERM. When running
# the binary directly as a ctest target, the entire process group gets killed,
# meaning that the test gets terminated prematurly. With setsid, the test runs
# in its own process group, which means that SIGTERM does not propagate to ctest.
exec setsid -w "$1"