Skip to content

Commit 0f309f7

Browse files
DEBUG: show real llc stderr on failure
1 parent 6cc1d10 commit 0f309f7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ jobs:
6565
- name: Run test suite
6666
run: make test
6767

68+
- name: DEBUG - show real llc stderr
69+
if: failure()
70+
run: |
71+
python3 -c "
72+
from pythonbpf.codegen import compile_to_ir
73+
compile_to_ir('tests/passing_tests/if.py', '/tmp/debug.ll')
74+
"
75+
cat /tmp/debug.ll
76+
llc -march=bpf -filetype=obj -O2 /tmp/debug.ll -o /tmp/debug.o
77+
6878
- name: Check whether sudo is usable
6979
id: sudo-check
7080
run: |

0 commit comments

Comments
 (0)