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
---
tools/testing/selftests/tc-testing
Initial set of nat action unit tests.
Signed-off-by: Keara Leibovitz
---
.../selftests/tc-testing/tc-tests/actions/nat.json | 593 +
1 file changed, 593 insertions(+)
create mode 100644 tools/testing/selftests/tc-testing/tc-tests/actions/nat.json
diff --git a/tools/testing
ot;:"ip",
"pref":5,
"kind":"flower",
"chain":0
},{
"protocol":"ip",
"pref":5,
"kind":"flower",
"chain":0,
"options": {
"handle&q
Create initial unit tests for the tc fw filter.
Signed-off-by: Keara Leibovitz
---
.../selftests/tc-testing/tc-tests/filters/fw.json | 1049
1 file changed, 1049 insertions(+)
create mode 100644 tools/testing/selftests/tc-testing/tc-tests/filters/fw.json
diff --git a
Create unittests for the tc tunnel_key action.
v2:
For the tests expecting failures, added non-zero exit codes in the
teardowns. This prevents those tests from failing if the act_tunnel_key
module is unloaded.
Signed-off-by: Keara Leibovitz
---
.../tc-testing/tc-tests/actions/tunnel_key.json
Please disregard - wrong patch.
Keara
Create unittests for the tc tunnel_key action.
Signed-off-by: Keara Leibovitz
---
.../tc-testing/tc-tests/actions/tunnel_key.json| 676 +
1 file changed, 676 insertions(+)
create mode 100644
tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json
diff
>> Until I'm able to submit everything, I'd be OK with having Keara add
>> the non-zero exit codes to the teardown on her tests. In the meantime
>> we'll get the README updated and config file added as well.
>>
>> How does this sound?
>
> it sounds good to me, but at this point we can also leave t
Added an extreme-case test for all 7 csum action headers.
Signed-off-by: Keara Leibovitz
---
.../tc-testing/tc-tests/actions/csum.json | 24 ++
1 file changed, 24 insertions(+)
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json
b/tools
Create unittests for the tc tunnel_key action.
Signed-off-by: Keara Leibovitz
---
.../tc-testing/tc-tests/actions/tunnel_key.json| 676 +
1 file changed, 676 insertions(+)
create mode 100644
tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json
diff
ot;order": 1,
"type": "nat",
"direction": "ingress",
"old_addr": "100.100.100.1/32",
"new_addr": "200.200.200.2",
"control_action": {
Signed-off-by: Keara Leibovitz
---
.../tc-testing/tc-tests/actions/tunnel_key.json| 676 +
1 file changed, 676 insertions(+)
create mode 100644
tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json
diff --git
a/tools/testing/selftests/tc-testing/tc-tests
sum":"iph, icmp, igmp",
"control_action": {
"type":"pipe"
},
"index":200,
"ref":1,
"bind":0,
"cookie":"112233"
}]
}]
v2:
Don't initiali
Signed-off-by: Keara Leibovitz
---
tc/m_csum.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/tc/m_csum.c b/tc/m_csum.c
index 8391071d73f2..67481667d9d2 100644
--- a/tc/m_csum.c
+++ b/tc/m_csum.c
@@ -162,6 +162,7 @@ print_csum(struct action_util *au, FILE
14 matches
Mail list logo