diff mbox series

[B,SRU,2/4] selftests: net: use TEST_PROGS_EXTENDED

Message ID 20210707114730.40375-3-po-hsu.lin@canonical.com
State New
Headers show
Series Enable fib-onlink-tests.sh and msg_zerocopy.sh in kselftests/net | expand

Commit Message

Po-Hsu Lin July 7, 2021, 11:47 a.m. UTC
From: Anders Roxell <anders.roxell@linaro.org>

BugLink: https://bugs.launchpad.net/bugs/1934759

When a script file that isn't generated uses the variable
TEST_GEN_PROGS_EXTENDED and a 'make -C tools/testing/selftests clean' is
performed the script file gets removed and git shows the file as
deleted. For script files that isn't generated TEST_PROGS_EXTENDED
should be used.

Fixes: 9faedd643fd9 ("selftests: net: add in_netns.sh TEST_GEN_PROGS_EXTENDED")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(backported from commit 1751eb42ddb56b1e0a28ade5c5f19b7961a6f0c2)
[PHLin: ignore fib_tests.sh and pmtu.sh]
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
---
 tools/testing/selftests/net/Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile
index 92c3b41..66e48dd 100644
--- a/tools/testing/selftests/net/Makefile
+++ b/tools/testing/selftests/net/Makefile
@@ -6,6 +6,7 @@  CFLAGS += -I../../../../usr/include/
 
 TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh
 TEST_PROGS += fib-onlink-tests.sh
+TEST_PROGS_EXTENDED := in_netns.sh
 TEST_GEN_FILES =  socket
 TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy
 TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa