Skip to content

Commit 9ba3204

Browse files
Roman Mashakdavem330
authored andcommitted
tc-testing: updated gact tests with batch test cases
Signed-off-by: Roman Mashak <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 08486ad commit 9ba3204

File tree

1 file changed

+72
-1
lines changed
  • tools/testing/selftests/tc-testing/tc-tests/actions

1 file changed

+72
-1
lines changed

tools/testing/selftests/tc-testing/tc-tests/actions/gact.json

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,5 +465,76 @@
465465
"teardown": [
466466
"$TC actions flush action gact"
467467
]
468+
},
469+
{
470+
"id": "1021",
471+
"name": "Add batch of 32 gact pass actions",
472+
"category": [
473+
"actions",
474+
"gact"
475+
],
476+
"setup": [
477+
[
478+
"$TC actions flush action gact",
479+
0,
480+
1,
481+
255
482+
]
483+
],
484+
"cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action pass index $i \"; args=\"$args$cmd\"; done && $TC actions add $args",
485+
"expExitCode": "0",
486+
"verifyCmd": "$TC actions list action gact",
487+
"matchPattern": "^[ \t]+index [0-9]+ ref",
488+
"matchCount": "32",
489+
"teardown": [
490+
"$TC actions flush action gact"
491+
]
492+
},
493+
{
494+
"id": "da7a",
495+
"name": "Add batch of 32 gact continue actions with cookie",
496+
"category": [
497+
"actions",
498+
"gact"
499+
],
500+
"setup": [
501+
[
502+
"$TC actions flush action gact",
503+
0,
504+
1,
505+
255
506+
]
507+
],
508+
"cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action continue index $i cookie aabbccddeeff112233445566778800a1 \"; args=\"$args$cmd\"; done && $TC actions add $args",
509+
"expExitCode": "0",
510+
"verifyCmd": "$TC actions list action gact",
511+
"matchPattern": "^[ \t]+index [0-9]+ ref",
512+
"matchCount": "32",
513+
"teardown": [
514+
"$TC actions flush action gact"
515+
]
516+
},
517+
{
518+
"id": "8aa3",
519+
"name": "Delete batch of 32 gact continue actions",
520+
"category": [
521+
"actions",
522+
"gact"
523+
],
524+
"setup": [
525+
[
526+
"$TC actions flush action gact",
527+
0,
528+
1,
529+
255
530+
],
531+
"for i in `seq 1 32`; do cmd=\"action continue index $i \"; args=\"$args$cmd\"; done && $TC actions add $args"
532+
],
533+
"cmdUnderTest": "for i in `seq 1 32`; do cmd=\"action gact index $i \"; args=\"$args$cmd\"; done && $TC actions del $args",
534+
"expExitCode": "0",
535+
"verifyCmd": "$TC actions list action gact",
536+
"matchPattern": "^[ \t]+index [0-9]+ ref",
537+
"matchCount": "0",
538+
"teardown": []
468539
}
469-
]
540+
]

0 commit comments

Comments
 (0)