Commit fac46d0
committed
selftests/bpf: Skip building arena tests if unsupported
BPF selftests always try building arena tests, but since kernel arena
support is not built-in on unsupported archs, this leads to failures trying
to build e.g. test_progs on 32-bit, and complicates 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 <tony.ambardar@gmail.com>1 parent bae6afc commit fac46d0
2 files changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
| 547 | + | |
| 548 | + | |
543 | 549 | | |
544 | | - | |
| 550 | + | |
545 | 551 | | |
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
549 | | - | |
| 555 | + | |
| 556 | + | |
550 | 557 | | |
551 | 558 | | |
552 | 559 | | |
| |||
649 | 656 | | |
650 | 657 | | |
651 | 658 | | |
652 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
653 | 662 | | |
654 | 663 | | |
655 | 664 | | |
| |||
756 | 765 | | |
757 | 766 | | |
758 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
759 | 772 | | |
760 | 773 | | |
761 | 774 | | |
| |||
| 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 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
0 commit comments