diff options
author | Roman Mashak <mrv@mojatatu.com> | 2019-08-02 15:16:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-06 17:05:40 -0400 |
commit | 8571deb013812f35260b2b7152a522eacfa9ccf9 (patch) | |
tree | 36172fae20323f312c3c5a5b10ec2fa310908516 /tools | |
parent | b35475c5491a14c8ce7a5046ef7bcda8a860581a (diff) |
tc-testing: updated vlan action tests with batch create/delete
Update TDC tests with cases varifying ability of TC to install or delete
batches of vlan actions.
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json index cc7c7d758008..6503b1ce091f 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json | |||
@@ -713,5 +713,99 @@ | |||
713 | "teardown": [ | 713 | "teardown": [ |
714 | "$TC actions flush action vlan" | 714 | "$TC actions flush action vlan" |
715 | ] | 715 | ] |
716 | }, | ||
717 | { | ||
718 | "id": "294e", | ||
719 | "name": "Add batch of 32 vlan push actions with cookie", | ||
720 | "category": [ | ||
721 | "actions", | ||
722 | "vlan" | ||
723 | ], | ||
724 | "setup": [ | ||
725 | [ | ||
726 | "$TC actions flush action vlan", | ||
727 | 0, | ||
728 | 1, | ||
729 | 255 | ||
730 | ] | ||
731 | ], | ||
732 | "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan push protocol 802.1q id 4094 priority 7 pipe index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", | ||
733 | "expExitCode": "0", | ||
734 | "verifyCmd": "$TC actions list action vlan", | ||
735 | "matchPattern": "^[ \t]+index [0-9]+ ref", | ||
736 | "matchCount": "32", | ||
737 | "teardown": [ | ||
738 | "$TC actions flush action vlan" | ||
739 | ] | ||
740 | }, | ||
741 | { | ||
742 | "id": "56f7", | ||
743 | "name": "Delete batch of 32 vlan push actions", | ||
744 | "category": [ | ||
745 | "actions", | ||
746 | "vlan" | ||
747 | ], | ||
748 | "setup": [ | ||
749 | [ | ||
750 | "$TC actions flush action vlan", | ||
751 | 0, | ||
752 | 1, | ||
753 | 255 | ||
754 | ], | ||
755 | "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan push protocol 802.1q id 4094 priority 7 pipe index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" | ||
756 | ], | ||
757 | "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", | ||
758 | "expExitCode": "0", | ||
759 | "verifyCmd": "$TC actions list action vlan", | ||
760 | "matchPattern": "^[ \t]+index [0-9]+ ref", | ||
761 | "matchCount": "0", | ||
762 | "teardown": [] | ||
763 | }, | ||
764 | { | ||
765 | "id": "759f", | ||
766 | "name": "Add batch of 32 vlan pop actions with cookie", | ||
767 | "category": [ | ||
768 | "actions", | ||
769 | "vlan" | ||
770 | ], | ||
771 | "setup": [ | ||
772 | [ | ||
773 | "$TC actions flush action vlan", | ||
774 | 0, | ||
775 | 1, | ||
776 | 255 | ||
777 | ] | ||
778 | ], | ||
779 | "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan pop continue index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", | ||
780 | "expExitCode": "0", | ||
781 | "verifyCmd": "$TC actions list action vlan", | ||
782 | "matchPattern": "^[ \t]+index [0-9]+ ref", | ||
783 | "matchCount": "32", | ||
784 | "teardown": [ | ||
785 | "$TC actions flush action vlan" | ||
786 | ] | ||
787 | }, | ||
788 | { | ||
789 | "id": "c84a", | ||
790 | "name": "Delete batch of 32 vlan pop actions", | ||
791 | "category": [ | ||
792 | "actions", | ||
793 | "vlan" | ||
794 | ], | ||
795 | "setup": [ | ||
796 | [ | ||
797 | "$TC actions flush action vlan", | ||
798 | 0, | ||
799 | 1, | ||
800 | 255 | ||
801 | ], | ||
802 | "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan pop index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" | ||
803 | ], | ||
804 | "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", | ||
805 | "expExitCode": "0", | ||
806 | "verifyCmd": "$TC actions list action vlan", | ||
807 | "matchPattern": "^[ \t]+index [0-9]+ ref", | ||
808 | "matchCount": "0", | ||
809 | "teardown": [] | ||
716 | } | 810 | } |
717 | ] | 811 | ] |