rotgen/ci-cd/test-wrapper.sh
Jules Pénuchot 991967761d Added Ubuntu 24.04 tests
Co-authored-by: Jules Pénuchot <jules@penuchot.com>

See merge request oss/rotgen!33
2025-10-06 17:03:54 +02:00

14 lines
264 B
Bash
Executable file

#!/bin/bash
cd build/$CMAKE_PRESET
ctest --output-on-failure
CTEST_EXIT_CODE=$?
# If the program fails, show the backtracs
if [ $CTEST_EXIT_CODE -ne '0' ]; then
gdb -ex run -ex bt --args ctest --output-on-failure
fi
# Forward exit code
exit $CTEST_EXIT_CODE