aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeara Leibovitz <kleib@mojatatu.com>2018-08-10 10:09:41 -0400
committerDavid S. Miller <davem@davemloft.net>2018-08-11 15:20:59 -0400
commitb70f1f3af47f4a21a25678f9ee587ed7986d62f8 (patch)
treed95622b85372ec99fafaf58b4ee3325e9b904dd2 /tools
parent3305f9a90524c8e9e59f29a62312c10ab00a7364 (diff)
tc: Update README and add config
Updated README. Added config file that contains the minimum required features enabled to run the tests currently present in the kernel. This must be updated when new unittests are created and require their own modules. Signed-off-by: Keara Leibovitz <kleib@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/tc-testing/README16
-rw-r--r--tools/testing/selftests/tc-testing/config48
2 files changed, 59 insertions, 5 deletions
diff --git a/tools/testing/selftests/tc-testing/README b/tools/testing/selftests/tc-testing/README
index 3a0336782d2d..49a6f8c3fdae 100644
--- a/tools/testing/selftests/tc-testing/README
+++ b/tools/testing/selftests/tc-testing/README
@@ -17,6 +17,10 @@ REQUIREMENTS
17* The kernel must have veth support available, as a veth pair is created 17* The kernel must have veth support available, as a veth pair is created
18 prior to running the tests. 18 prior to running the tests.
19 19
20* The kernel must have the appropriate infrastructure enabled to run all tdc
21 unit tests. See the config file in this directory for minimum required
22 features. As new tests will be added, config options list will be updated.
23
20* All tc-related features being tested must be built in or available as 24* All tc-related features being tested must be built in or available as
21 modules. To check what is required in current setup run: 25 modules. To check what is required in current setup run:
22 ./tdc.py -c 26 ./tdc.py -c
@@ -109,8 +113,8 @@ COMMAND LINE ARGUMENTS
109Run tdc.py -h to see the full list of available arguments. 113Run tdc.py -h to see the full list of available arguments.
110 114
111usage: tdc.py [-h] [-p PATH] [-D DIR [DIR ...]] [-f FILE [FILE ...]] 115usage: tdc.py [-h] [-p PATH] [-D DIR [DIR ...]] [-f FILE [FILE ...]]
112 [-c [CATG [CATG ...]]] [-e ID [ID ...]] [-l] [-s] [-i] [-v] 116 [-c [CATG [CATG ...]]] [-e ID [ID ...]] [-l] [-s] [-i] [-v] [-N]
113 [-d DEVICE] [-n NS] [-V] 117 [-d DEVICE] [-P] [-n] [-V]
114 118
115Linux TC unit tests 119Linux TC unit tests
116 120
@@ -118,8 +122,10 @@ optional arguments:
118 -h, --help show this help message and exit 122 -h, --help show this help message and exit
119 -p PATH, --path PATH The full path to the tc executable to use 123 -p PATH, --path PATH The full path to the tc executable to use
120 -v, --verbose Show the commands that are being run 124 -v, --verbose Show the commands that are being run
125 -N, --notap Suppress tap results for command under test
121 -d DEVICE, --device DEVICE 126 -d DEVICE, --device DEVICE
122 Execute the test case in flower category 127 Execute the test case in flower category
128 -P, --pause Pause execution just before post-suite stage
123 129
124selection: 130selection:
125 select which test cases: files plus directories; filtered by categories 131 select which test cases: files plus directories; filtered by categories
@@ -146,10 +152,10 @@ action:
146 -i, --id Generate ID numbers for new test cases 152 -i, --id Generate ID numbers for new test cases
147 153
148netns: 154netns:
149 options for nsPlugin(run commands in net namespace) 155 options for nsPlugin (run commands in net namespace)
150 156
151 -n NS, --namespace NS 157 -n, --namespace
152 Run commands in namespace NS 158 Run commands in namespace as specified in tdc_config.py
153 159
154valgrind: 160valgrind:
155 options for valgrindPlugin (run command under test under Valgrind) 161 options for valgrindPlugin (run command under test under Valgrind)
diff --git a/tools/testing/selftests/tc-testing/config b/tools/testing/selftests/tc-testing/config
new file mode 100644
index 000000000000..203302065458
--- /dev/null
+++ b/tools/testing/selftests/tc-testing/config
@@ -0,0 +1,48 @@
1CONFIG_NET_SCHED=y
2
3#
4# Queueing/Scheduling
5#
6CONFIG_NET_SCH_PRIO=m
7CONFIG_NET_SCH_INGRESS=m
8
9#
10# Classification
11#
12CONFIG_NET_CLS=y
13CONFIG_NET_CLS_FW=m
14CONFIG_NET_CLS_U32=m
15CONFIG_CLS_U32_PERF=y
16CONFIG_CLS_U32_MARK=y
17CONFIG_NET_EMATCH=y
18CONFIG_NET_EMATCH_STACK=32
19CONFIG_NET_EMATCH_CMP=m
20CONFIG_NET_EMATCH_NBYTE=m
21CONFIG_NET_EMATCH_U32=m
22CONFIG_NET_EMATCH_META=m
23CONFIG_NET_EMATCH_TEXT=m
24CONFIG_NET_EMATCH_IPSET=m
25CONFIG_NET_EMATCH_IPT=m
26CONFIG_NET_CLS_ACT=y
27CONFIG_NET_ACT_POLICE=m
28CONFIG_NET_ACT_GACT=m
29CONFIG_GACT_PROB=y
30CONFIG_NET_ACT_MIRRED=m
31CONFIG_NET_ACT_SAMPLE=m
32CONFIG_NET_ACT_IPT=m
33CONFIG_NET_ACT_NAT=m
34CONFIG_NET_ACT_PEDIT=m
35CONFIG_NET_ACT_SIMP=m
36CONFIG_NET_ACT_SKBEDIT=m
37CONFIG_NET_ACT_CSUM=m
38CONFIG_NET_ACT_VLAN=m
39CONFIG_NET_ACT_BPF=m
40CONFIG_NET_ACT_CONNMARK=m
41CONFIG_NET_ACT_SKBMOD=m
42CONFIG_NET_ACT_IFE=m
43CONFIG_NET_ACT_TUNNEL_KEY=m
44CONFIG_NET_IFE_SKBMARK=m
45CONFIG_NET_IFE_SKBPRIO=m
46CONFIG_NET_IFE_SKBTCINDEX=m
47CONFIG_NET_CLS_IND=y
48CONFIG_NET_SCH_FIFO=y