All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
@ 2018-03-09 22:16 Roman Mashak
  2018-03-12 14:56 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Roman Mashak @ 2018-03-09 22:16 UTC (permalink / raw)
  To: davem; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri, Roman Mashak

Add test cases to exercise code paths responsible for adding or deleting
batch of TC actions.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
---
 .../tc-testing/tc-tests/actions/gact.json          | 73 +++++++++++++++++++++-
 1 file changed, 72 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
index e2187b6e0b7a..ae96d0350d7e 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
@@ -465,5 +465,76 @@
         "teardown": [
             "$TC actions flush action gact"
         ]
+    },
+    {
+        "id": "1021",
+        "name": "Add batch of 32 gact pass actions",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ]
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action pass index $i \"; args=\"$args$cmd\"; done && $TC actions add $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "32",
+        "teardown": [
+            "$TC actions flush action gact"
+        ]
+    },
+    {
+        "id": "da7a",
+        "name": "Add batch of 32 gact continue actions with cookie",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ]
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action continue index $i cookie aabbccddeeff112233445566778800a1 \"; args=\"$args$cmd\"; done && $TC actions add $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "32",
+        "teardown": [
+            "$TC actions flush action gact"
+        ]
+    },
+    {
+        "id": "8aa3",
+        "name": "Delete batch of 32 gact continue actions",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ],
+            "for i in `seq 1 32`; do cmd=\"action continue index $i \"; args=\"$args$cmd\"; done && $TC actions add $args"
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action gact index $i \"; args=\"$args$cmd\"; done && $TC actions del $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "0",
+        "teardown": []
     }
-]
+]
\ No newline at end of file
-- 
2.7.4

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

* Re: [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
  2018-03-09 22:16 [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases Roman Mashak
@ 2018-03-12 14:56 ` David Miller
  2018-03-12 16:39   ` Roman Mashak
  0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2018-03-12 14:56 UTC (permalink / raw)
  To: mrv; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri

From: Roman Mashak <mrv@mojatatu.com>
Date: Fri,  9 Mar 2018 17:16:12 -0500

> Add test cases to exercise code paths responsible for adding or deleting
> batch of TC actions.
> 
> Signed-off-by: Roman Mashak <mrv@mojatatu.com>

You submitted this patch twice.

You didn't indicate if this is a new version of the patch or something
like this.

Please resubmit your tc-testing changes, all of them, with this
sorted out.

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

* Re: [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
  2018-03-12 14:56 ` David Miller
@ 2018-03-12 16:39   ` Roman Mashak
  2018-03-12 16:42     ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Roman Mashak @ 2018-03-12 16:39 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri

David Miller <davem@davemloft.net> writes:

> From: Roman Mashak <mrv@mojatatu.com>
> Date: Fri,  9 Mar 2018 17:16:12 -0500
>
>> Add test cases to exercise code paths responsible for adding or deleting
>> batch of TC actions.
>> 
>> Signed-off-by: Roman Mashak <mrv@mojatatu.com>
>
> You submitted this patch twice.
>
> You didn't indicate if this is a new version of the patch or something
> like this.
>

Sorry for that glitch, I've just resent the patch.

> Please resubmit your tc-testing changes, all of them, with this
> sorted out.

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

* Re: [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
  2018-03-12 16:39   ` Roman Mashak
@ 2018-03-12 16:42     ` David Miller
  2018-03-12 17:15       ` Roman Mashak
  0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2018-03-12 16:42 UTC (permalink / raw)
  To: mrv; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri

From: Roman Mashak <mrv@mojatatu.com>
Date: Mon, 12 Mar 2018 12:39:57 -0400

> David Miller <davem@davemloft.net> writes:
> 
>> From: Roman Mashak <mrv@mojatatu.com>
>> Date: Fri,  9 Mar 2018 17:16:12 -0500
>>
>>> Add test cases to exercise code paths responsible for adding or deleting
>>> batch of TC actions.
>>> 
>>> Signed-off-by: Roman Mashak <mrv@mojatatu.com>
>>
>> You submitted this patch twice.
>>
>> You didn't indicate if this is a new version of the patch or something
>> like this.
>>
> 
> Sorry for that glitch, I've just resent the patch.
> 
>> Please resubmit your tc-testing changes, all of them, with this
>> sorted out.

I said "all of your tc-testing changes" not just this one.

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

* Re: [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
  2018-03-12 16:42     ` David Miller
@ 2018-03-12 17:15       ` Roman Mashak
  2018-03-12 18:47         ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Roman Mashak @ 2018-03-12 17:15 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri

David Miller <davem@davemloft.net> writes:

> From: Roman Mashak <mrv@mojatatu.com>
> Date: Mon, 12 Mar 2018 12:39:57 -0400
>
>> David Miller <davem@davemloft.net> writes:
>> 
>>> From: Roman Mashak <mrv@mojatatu.com>
>>> Date: Fri,  9 Mar 2018 17:16:12 -0500
>>>
>>>> Add test cases to exercise code paths responsible for adding or deleting
>>>> batch of TC actions.
>>>> 
>>>> Signed-off-by: Roman Mashak <mrv@mojatatu.com>
>>>
>>> You submitted this patch twice.
>>>
>>> You didn't indicate if this is a new version of the patch or something
>>> like this.
>>>
>> 
>> Sorry for that glitch, I've just resent the patch.
>> 
>>> Please resubmit your tc-testing changes, all of them, with this
>>> sorted out.
>
> I said "all of your tc-testing changes" not just this one.

On March 9th I submitted two tc-testing patches:

 - "add TC vlan action tests"
 - "updated gact tests with batch test cases" (which I resent)

Do you want to have those submitted as series?

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

* Re: [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
  2018-03-12 17:15       ` Roman Mashak
@ 2018-03-12 18:47         ` David Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2018-03-12 18:47 UTC (permalink / raw)
  To: mrv; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri

From: Roman Mashak <mrv@mojatatu.com>
Date: Mon, 12 Mar 2018 13:15:35 -0400

> David Miller <davem@davemloft.net> writes:
> 
>> From: Roman Mashak <mrv@mojatatu.com>
>> Date: Mon, 12 Mar 2018 12:39:57 -0400
>>
>>> David Miller <davem@davemloft.net> writes:
>>> 
>>>> From: Roman Mashak <mrv@mojatatu.com>
>>>> Date: Fri,  9 Mar 2018 17:16:12 -0500
>>>>
>>>>> Add test cases to exercise code paths responsible for adding or deleting
>>>>> batch of TC actions.
>>>>> 
>>>>> Signed-off-by: Roman Mashak <mrv@mojatatu.com>
>>>>
>>>> You submitted this patch twice.
>>>>
>>>> You didn't indicate if this is a new version of the patch or something
>>>> like this.
>>>>
>>> 
>>> Sorry for that glitch, I've just resent the patch.
>>> 
>>>> Please resubmit your tc-testing changes, all of them, with this
>>>> sorted out.
>>
>> I said "all of your tc-testing changes" not just this one.
> 
> On March 9th I submitted two tc-testing patches:
> 
>  - "add TC vlan action tests"
>  - "updated gact tests with batch test cases" (which I resent)
> 
> Do you want to have those submitted as series?

I said resubmit all of them, which means both of these patches.
You only resubmitted one of them.

I really can't figure out how I can be more clear about my
request.

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

* [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases
@ 2018-03-09 21:20 Roman Mashak
  0 siblings, 0 replies; 7+ messages in thread
From: Roman Mashak @ 2018-03-09 21:20 UTC (permalink / raw)
  To: davem; +Cc: netdev, kernel, jhs, xiyou.wangcong, jiri, Roman Mashak

Add test cases to exercise code paths responsible for adding or deleting
batch of TC actions.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
---
 .../tc-testing/tc-tests/actions/gact.json          | 73 +++++++++++++++++++++-
 1 file changed, 72 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
index e2187b6e0b7a..ae96d0350d7e 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json
@@ -465,5 +465,76 @@
         "teardown": [
             "$TC actions flush action gact"
         ]
+    },
+    {
+        "id": "1021",
+        "name": "Add batch of 32 gact pass actions",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ]
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action pass index $i \"; args=\"$args$cmd\"; done && $TC actions add $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "32",
+        "teardown": [
+            "$TC actions flush action gact"
+        ]
+    },
+    {
+        "id": "da7a",
+        "name": "Add batch of 32 gact continue actions with cookie",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ]
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action continue index $i cookie aabbccddeeff112233445566778800a1 \"; args=\"$args$cmd\"; done && $TC actions add $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "32",
+        "teardown": [
+            "$TC actions flush action gact"
+        ]
+    },
+    {
+        "id": "8aa3",
+        "name": "Delete batch of 32 gact continue actions",
+        "category": [
+            "actions",
+            "gact"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action gact",
+                0,
+                1,
+                255
+            ],
+            "for i in `seq 1 32`; do cmd=\"action continue index $i \"; args=\"$args$cmd\"; done && $TC actions add $args"
+        ],
+        "cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action gact index $i \"; args=\"$args$cmd\"; done && $TC actions del $args",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions list action gact",
+        "matchPattern": "^[ \t]+index [0-9]+ ref",
+        "matchCount": "0",
+        "teardown": []
     }
-]
+]
\ No newline at end of file
-- 
2.7.4

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

end of thread, other threads:[~2018-03-12 18:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 22:16 [PATCH net-next 1/1] tc-testing: updated gact tests with batch test cases Roman Mashak
2018-03-12 14:56 ` David Miller
2018-03-12 16:39   ` Roman Mashak
2018-03-12 16:42     ` David Miller
2018-03-12 17:15       ` Roman Mashak
2018-03-12 18:47         ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2018-03-09 21:20 Roman Mashak

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.