summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/config
diff options
context:
space:
mode:
authorPo-Hsu Lin2019-07-01 06:40:31 +0200
committerDavid S. Miller2019-07-03 02:17:49 +0200
commitff95bf28c23490584b9d75913a520bb7bb1f2ecb (patch)
tree40a20c15edb4c8feb8ec85d05439d4b891761ba6 /tools/testing/selftests/net/config
parentrxrpc: Fix oops in tracepoint (diff)
downloadkernel-qcow2-linux-ff95bf28c23490584b9d75913a520bb7bb1f2ecb.tar.gz
kernel-qcow2-linux-ff95bf28c23490584b9d75913a520bb7bb1f2ecb.tar.xz
kernel-qcow2-linux-ff95bf28c23490584b9d75913a520bb7bb1f2ecb.zip
selftests/net: skip psock_tpacket test if KALLSYMS was not enabled
The psock_tpacket test will need to access /proc/kallsyms, this would require the kernel config CONFIG_KALLSYMS to be enabled first. Apart from adding CONFIG_KALLSYMS to the net/config file here, check the file existence to determine if we can run this test will be helpful to avoid a false-positive test result when testing it directly with the following commad against a kernel that have CONFIG_KALLSYMS disabled: make -C tools/testing/selftests TARGETS=net run_tests Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/config')
-rw-r--r--tools/testing/selftests/net/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index 474040448601..3dea2cba2325 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -25,3 +25,4 @@ CONFIG_NF_TABLES_IPV6=y
CONFIG_NF_TABLES_IPV4=y
CONFIG_NFT_CHAIN_NAT_IPV6=m
CONFIG_NFT_CHAIN_NAT_IPV4=m
+CONFIG_KALLSYMS=y