Commit 77bc361
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 9725492 commit 77bc361
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 | | |
| |||
545 | 549 | | |
546 | 550 | | |
547 | 551 | | |
| 552 | + | |
| 553 | + | |
548 | 554 | | |
549 | | - | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
554 | 560 | | |
555 | 561 | | |
556 | | - | |
| 562 | + | |
| 563 | + | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
| |||
656 | 663 | | |
657 | 664 | | |
658 | 665 | | |
659 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
660 | 669 | | |
661 | 670 | | |
662 | 671 | | |
| |||
769 | 778 | | |
770 | 779 | | |
771 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
772 | 785 | | |
773 | 786 | | |
774 | 787 | | |
| |||
| 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 | | |
| |||
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
0 commit comments