diff options
| author | Roman Mashak <mrv@mojatatu.com> | 2018-03-12 16:07:02 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-03-12 21:08:54 -0400 |
| commit | 9ba32046fc2d19697e1a208ce81663239e78e41f (patch) | |
| tree | fae57a73297d27a437a4535709a529b7c144426d /tools/testing/selftests/tc-testing | |
| parent | 08486add3a8d22cd3e41cb59028fc397abdcb279 (diff) | |
tc-testing: updated gact tests with batch test cases
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing')
| -rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/gact.json | 73 |
1 files changed, 72 insertions, 1 deletions
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 @@ | |||
| 465 | "teardown": [ | 465 | "teardown": [ |
| 466 | "$TC actions flush action gact" | 466 | "$TC actions flush action gact" |
| 467 | ] | 467 | ] |
| 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": [] | ||
| 468 | } | 539 | } |
| 469 | ] | 540 | ] \ No newline at end of file |
