~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 [
  2     {
  3         "id": "b078",
  4         "name": "Add simple action",
  5         "category": [
  6             "actions",
  7             "simple"
  8         ],
  9         "plugins": {
 10            "requires": "nsPlugin"
 11         },
 12         "setup": [
 13             [
 14                 "$TC actions flush action simple",
 15                 0,
 16                 1,
 17                 255
 18             ]
 19         ],
 20         "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
 21         "expExitCode": "0",
 22         "verifyCmd": "$TC actions list action simple",
 23         "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
 24         "matchCount": "1",
 25         "teardown": [
 26             "$TC actions flush action simple"
 27         ]
 28     },
 29     {
 30         "id": "4297",
 31         "name": "Add simple action with change command",
 32         "category": [
 33             "actions",
 34             "simple"
 35         ],
 36         "plugins": {
 37            "requires": "nsPlugin"
 38         },
 39         "setup": [
 40             [
 41                 "$TC actions flush action simple",
 42                 0,
 43                 1,
 44                 255
 45             ]
 46         ],
 47         "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60",
 48         "expExitCode": "0",
 49         "verifyCmd": "$TC actions list action simple",
 50         "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref",
 51         "matchCount": "1",
 52         "teardown": [
 53             "$TC actions flush action simple"
 54         ]
 55     },
 56     {
 57         "id": "6d4c",
 58         "name": "Add simple action with duplicate index",
 59         "category": [
 60             "actions",
 61             "simple"
 62         ],
 63         "plugins": {
 64            "requires": "nsPlugin"
 65         },
 66         "setup": [
 67             [
 68                 "$TC actions flush action simple",
 69                 0,
 70                 1,
 71                 255
 72             ],
 73             "$TC actions add action simple sdata \"Aruba\" index 4"
 74         ],
 75         "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4",
 76         "expExitCode": "255",
 77         "verifyCmd": "$TC actions list action simple",
 78         "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref",
 79         "matchCount": "0",
 80         "teardown": [
 81             "$TC actions flush action simple"
 82         ]
 83     },
 84     {
 85         "id": "2542",
 86         "name": "List simple actions",
 87         "category": [
 88             "actions",
 89             "simple"
 90         ],
 91         "plugins": {
 92            "requires": "nsPlugin"
 93         },
 94         "setup": [
 95             [
 96                 "$TC actions flush action simple",
 97                 0,
 98                 1,
 99                 255
100             ],
101             "$TC actions add action simple sdata \"Rock\"",
102             "$TC actions add action simple sdata \"Paper\"",
103             "$TC actions add action simple sdata \"Scissors\" index 98"
104         ],
105         "cmdUnderTest": "$TC actions list action simple",
106         "expExitCode": "0",
107         "verifyCmd": "$TC actions list action simple",
108         "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
109         "matchCount": "3",
110         "teardown": [
111             "$TC actions flush action simple"
112         ]
113     },
114     {
115         "id": "ea67",
116         "name": "Delete simple action",
117         "category": [
118             "actions",
119             "simple"
120         ],
121         "plugins": {
122            "requires": "nsPlugin"
123         },
124         "setup": [
125             [
126                 "$TC actions flush action simple",
127                 0,
128                 1,
129                 255
130             ],
131             "$TC actions add action simple sdata \"Blinkenlights\" index 1"
132         ],
133         "cmdUnderTest": "$TC actions delete action simple index 1",
134         "expExitCode": "0",
135         "verifyCmd": "$TC actions list action simple",
136         "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
137         "matchCount": "0",
138         "teardown": [
139             "$TC actions flush action simple"
140         ]
141     },
142     {
143         "id": "8ff1",
144         "name": "Flush simple actions",
145         "category": [
146             "actions",
147             "simple"
148         ],
149         "plugins": {
150            "requires": "nsPlugin"
151         },
152         "setup": [
153             [
154                 "$TC actions flush action simple",
155                 0,
156                 1,
157                 255
158             ],
159             "$TC actions add action simple sdata \"Kirk\"",
160             "$TC actions add action simple sdata \"Spock\" index 50",
161             "$TC actions add action simple sdata \"McCoy\" index 9"
162         ],
163         "cmdUnderTest": "$TC actions flush action simple",
164         "expExitCode": "0",
165         "verifyCmd": "$TC actions list action simple",
166         "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
167         "matchCount": "0",
168         "teardown": [
169             ""
170         ]
171     },
172     {
173         "id": "b776",
174         "name": "Replace simple action with invalid goto chain control",
175         "category": [
176             "actions",
177             "simple"
178         ],
179         "plugins": {
180            "requires": "nsPlugin"
181         },
182         "setup": [
183             [
184                 "$TC actions flush action simple",
185                 0,
186                 1,
187                 255
188             ],
189             "$TC actions add action simple sdata \"hello\" pass index 90"
190         ],
191         "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index  90 cookie c1a0c1a0",
192         "expExitCode": "255",
193         "verifyCmd": "$TC actions list action simple",
194         "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref",
195         "matchCount": "1",
196         "teardown": [
197             "$TC actions flush action simple"
198         ]
199     },
200     {
201         "id": "8d07",
202         "name": "Verify cleanup of failed actions batch add",
203         "category": [
204             "actions",
205             "simple"
206         ],
207         "plugins": {
208            "requires": "nsPlugin"
209         },
210         "setup": [
211             [
212                 "$TC actions flush action simple",
213                 0,
214                 1,
215                 255
216             ],
217             "$TC actions add action simple sdata \"2\" index 2",
218             [
219                 "$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
220                 255
221             ],
222             "$TC actions flush action simple"
223         ],
224         "cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
225         "expExitCode": "0",
226         "verifyCmd": "$TC actions list action simple",
227         "matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
228         "matchCount": "1",
229         "teardown": [
230             "$TC actions flush action simple"
231         ]
232     },
233     {
234         "id": "a68a",
235         "name": "Verify cleanup of failed actions batch change",
236         "category": [
237             "actions",
238             "simple"
239         ],
240         "plugins": {
241            "requires": "nsPlugin"
242         },
243         "setup": [
244             [
245                 "$TC actions flush action simple",
246                 0,
247                 1,
248                 255
249             ],
250             [
251                 "$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2",
252                 255
253             ],
254             "$TC actions flush action simple"
255         ],
256         "cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1",
257         "expExitCode": "0",
258         "verifyCmd": "$TC actions list action simple",
259         "matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref",
260         "matchCount": "1",
261         "teardown": [
262             "$TC actions flush action simple"
263         ]
264     }
265 ]

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php