Commit 45eab1e
committed
selftests/bpf: Skip building arena tests if unsupported
BPF selftests always try building with arena tests, but since kernel arena
support is not built-in on unsupported archs, this leads to failures trying
to build or run (e.g. seen with test_progs on 32-bit), and can complicate
overall testing.
Past arena test code has been mainly added as separate source files, making
it simpler to selectively build the tests. Update Makefile to filter out
arena test sources from build rules and the tests.h header, and pass macro
ENABLE_ARENA_TESTS via CFLAGS (e.g. for prog_tests/verifier.c).
Signed-off-by: Tony Ambardar <[email protected]>1 parent 47e6f8b commit 45eab1e
2 files changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
544 | 548 | | |
545 | 549 | | |
546 | 550 | | |
| 551 | + | |
| 552 | + | |
547 | 553 | | |
548 | | - | |
| 554 | + | |
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
554 | 560 | | |
555 | | - | |
| 561 | + | |
| 562 | + | |
556 | 563 | | |
557 | 564 | | |
558 | 565 | | |
| |||
655 | 662 | | |
656 | 663 | | |
657 | 664 | | |
658 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
659 | 668 | | |
660 | 669 | | |
661 | 670 | | |
| |||
768 | 777 | | |
769 | 778 | | |
770 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
771 | 784 | | |
772 | 785 | | |
773 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| 152 | + | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| 156 | + | |
151 | 157 | | |
152 | 158 | | |
153 | 159 | | |
| |||
0 commit comments