Skip to content

Commit 787b784

Browse files
committed
Adding debug flag for traceing crash in CI
1 parent 0938cea commit 787b784

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
# Run OpenVX Conformance tests
6161
- name: OpenVX Conformance Tests
62-
run: ./test_vx_conformance.sh
62+
run: DEBUG=1 ./test_vx_conformance.sh
6363

6464
# (Optional) Linting or Formatting
6565
# - name: Run Linter

test_vx_conformance.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ cmake \
4848
cmake --build .
4949

5050
# Run the conformance test suite
51-
./bin/vx_test_conformance
51+
if [[ "$DEBUG" == "1" ]]; then
52+
echo "Running under GDB since CI is set"
53+
gdb -batch -ex "run" -ex "bt" --args ./bin/vx_test_conformance
54+
else
55+
./bin/vx_test_conformance
56+
fi
5257

5358
# Clean up
5459
cd $TARGET_DIR

0 commit comments

Comments
 (0)