You should be able to build all the tests inside a subtest directory in tools/testing/selftests from a kernel tree with command:
make TARGETS=net
But with our 4.15 kernel these binary files in the net directory cannot be built correctly:
* reuseport_bpf
* reuseport_bpf_cpu
* reuseport_dualstack
* reuseaddr_conflict
* reuseport_bpf_numa
You can only build them with:
make TARGETS=net run_tests
This will also trigger the test, which is not ideal for the granularity improvement.
You should be able to build all the tests inside a subtest directory in tools/testing/ selftests from a kernel tree with command:
make TARGETS=net
But with our 4.15 kernel these binary files in the net directory cannot be built correctly:
* reuseport_bpf
* reuseport_bpf_cpu
* reuseport_dualstack
* reuseaddr_conflict
* reuseport_bpf_numa
You can only build them with:
make TARGETS=net run_tests
This will also trigger the test, which is not ideal for the granularity improvement.