All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 1/5] Skip loading bpf_testmod when using -l to list tests.
@ 2021-08-09 23:36 Yucong Sun
  2021-08-09 23:36 ` [PATCH bpf-next 2/5] Support glob matching for test selector Yucong Sun
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Yucong Sun @ 2021-08-09 23:36 UTC (permalink / raw)
  To: bpf; +Cc: andrii, sunyucong, Yucong Sun

Signed-off-by: Yucong Sun <fallentree@fb.com>
---
 tools/testing/selftests/bpf/test_progs.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c
index 6f103106a39b..74dde0af1592 100644
--- a/tools/testing/selftests/bpf/test_progs.c
+++ b/tools/testing/selftests/bpf/test_progs.c
@@ -754,10 +754,12 @@ int main(int argc, char **argv)
 
 	save_netns();
 	stdio_hijack();
-	env.has_testmod = true;
-	if (load_bpf_testmod()) {
-		fprintf(env.stderr, "WARNING! Selftests relying on bpf_testmod.ko will be skipped.\n");
-		env.has_testmod = false;
+	if (!env.list_test_names) {
+		env.has_testmod = true;
+		if (load_bpf_testmod()) {
+			fprintf(env.stderr, "WARNING! Selftests relying on bpf_testmod.ko will be skipped.\n");
+			env.has_testmod = false;
+		}
 	}
 	for (i = 0; i < prog_test_cnt; i++) {
 		struct prog_test_def *test = &prog_test_defs[i];
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-10  0:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 23:36 [PATCH bpf-next 1/5] Skip loading bpf_testmod when using -l to list tests Yucong Sun
2021-08-09 23:36 ` [PATCH bpf-next 2/5] Support glob matching for test selector Yucong Sun
2021-08-09 23:36 ` [PATCH bpf-next 3/5] Correctly display subtest skip status Yucong Sun
2021-08-09 23:36 ` [PATCH bpf-next 4/5] Display test number when listing test names Yucong Sun
2021-08-09 23:55   ` Daniel Borkmann
2021-08-10  0:16     ` Yucong Sun
2021-08-09 23:36 ` [PATCH bpf-next 5/5] Record all failed tests and output after the summary line Yucong Sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.