BPF selftests have ALLOWLIST and DENYLIST files, used to control which tests are run in CI. These files are currently parsed by a shell script. [1] This patchset allows those files to be specified directly on the test_progs command line (eg, as -a @ALLOWLIST). This also fixes a bug in the existing test filter code causing unnecessary duplicate top-level test filter entries to be created. [1] https://github.com/kernel-patches/vmtest/blob/57feb460047b69f891cf4afe3cc860794a2ced17/ci/vmtest/run_selftests.sh#L21-L27 --- v2: - error handling style changes per reviewer comments - fdopen return value checking in test_parse_test_list_file v1: https://lore.kernel.org/bpf/20230425225401.1075796-1-sveiss@xxxxxxxx/ Stephen Veiss (2): selftests/bpf: extract insert_test from parse_test_list selftests/bpf: test_progs can read test lists from file .../selftests/bpf/prog_tests/arg_parsing.c | 68 ++++++ tools/testing/selftests/bpf/test_progs.c | 37 ++- tools/testing/selftests/bpf/testing_helpers.c | 225 ++++++++++++------ tools/testing/selftests/bpf/testing_helpers.h | 3 + 4 files changed, 249 insertions(+), 84 deletions(-) base-commit: b580dac290822cfcbe741c0aa59c41c3fda398a8 -- 2.34.1