Debian Codegraph @

tests/probes/filemd5/test_probes_filemd5.xml.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 echo "Test Probes: FILEMD5 test" > /tmp/test_probes_filemd5.tmp
4
5 cat <<EOF
6 <?xml version="1.0"?>
7 <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
8
9 <generator>
10 <oval:product_name>filemd5</oval:product_name>
11 <oval:product_version>1.0</oval:product_version>
12 <oval:schema_version>5.4</oval:schema_version>
13 <oval:timestamp>2008-03-31T00:00:00-00:00</oval:timestamp>
14 </generator>
15
16 <definitions>
17
18 <definition class="compliance" version="1" id="oval:1:def:1"> <!-- comment="false" -->
19 <metadata>
20 <title></title>
21 <description></description>
22 </metadata>
23 <criteria>
24 <criteria operator="AND">
25 <criterion test_ref="oval:1:tst:1"/>
26 <criterion test_ref="oval:1:tst:2"/>
27 <criterion test_ref="oval:1:tst:3"/>
28 <criterion test_ref="oval:1:tst:4"/>
29 <criterion test_ref="oval:1:tst:5"/>
30 <criterion test_ref="oval:1:tst:6"/>
31 <criterion test_ref="oval:1:tst:7"/>
32 <criterion test_ref="oval:1:tst:8"/>
33 <criterion test_ref="oval:1:tst:9"/>
34 <criterion test_ref="oval:1:tst:10"/>
35 <criterion test_ref="oval:1:tst:11"/>
36 <criterion test_ref="oval:1:tst:12"/>
37 <criterion test_ref="oval:1:tst:13"/>
38 <criterion test_ref="oval:1:tst:14"/>
39 <criterion test_ref="oval:1:tst:15"/>
40 <criterion test_ref="oval:1:tst:16"/>
41 <criterion test_ref="oval:1:tst:17"/>
42 <criterion test_ref="oval:1:tst:18"/>
43 <criterion test_ref="oval:1:tst:19"/>
44 <criterion test_ref="oval:1:tst:20"/>
45 <criterion test_ref="oval:1:tst:21"/>
46 <criterion test_ref="oval:1:tst:22"/>
47 <criterion test_ref="oval:1:tst:23"/>
48 <criterion test_ref="oval:1:tst:24"/>
49 <criterion test_ref="oval:1:tst:25"/>
50 <criterion test_ref="oval:1:tst:26"/>
51 <criterion test_ref="oval:1:tst:27"/>
52 <criterion test_ref="oval:1:tst:28"/>
53 <criterion test_ref="oval:1:tst:29"/>
54 <criterion test_ref="oval:1:tst:30"/>
55 <criterion test_ref="oval:1:tst:31"/>
56 <criterion test_ref="oval:1:tst:32"/>
57 <criterion test_ref="oval:1:tst:33"/>
58 <criterion test_ref="oval:1:tst:34"/>
59 <criterion test_ref="oval:1:tst:35"/>
60 <criterion test_ref="oval:1:tst:36"/>
61 <criterion test_ref="oval:1:tst:37"/>
62 <criterion test_ref="oval:1:tst:38"/>
63 <criterion test_ref="oval:1:tst:39"/>
64 <criterion test_ref="oval:1:tst:40"/>
65 <criterion test_ref="oval:1:tst:41"/>
66 <criterion test_ref="oval:1:tst:42"/>
67 <criterion test_ref="oval:1:tst:43"/>
68 <criterion test_ref="oval:1:tst:44"/>
69 <criterion test_ref="oval:1:tst:45"/>
70 <criterion test_ref="oval:1:tst:46"/>
71 <criterion test_ref="oval:1:tst:47"/>
72 <criterion test_ref="oval:1:tst:48"/>
73 <criterion test_ref="oval:1:tst:49"/>
74 <criterion test_ref="oval:1:tst:50"/>
75 <criterion test_ref="oval:1:tst:51"/>
76 <criterion test_ref="oval:1:tst:52"/>
77 <criterion test_ref="oval:1:tst:53"/>
78 <criterion test_ref="oval:1:tst:54"/>
79 <criterion test_ref="oval:1:tst:55"/>
80 <criterion test_ref="oval:1:tst:56"/>
81 <criterion test_ref="oval:1:tst:57"/>
82 <criterion test_ref="oval:1:tst:58"/>
83 <criterion test_ref="oval:1:tst:59"/>
84 <criterion test_ref="oval:1:tst:60"/>
85 <criterion test_ref="oval:1:tst:61"/>
86 <criterion test_ref="oval:1:tst:62"/>
87 <criterion test_ref="oval:1:tst:63"/>
88 <criterion test_ref="oval:1:tst:64"/>
89 <criterion test_ref="oval:1:tst:65"/>
90 <criterion test_ref="oval:1:tst:66"/>
91 <criterion test_ref="oval:1:tst:67"/>
92 <criterion test_ref="oval:1:tst:68"/>
93 <criterion test_ref="oval:1:tst:69"/>
94 <criterion test_ref="oval:1:tst:70"/>
95 <criterion test_ref="oval:1:tst:71"/>
96 <criterion test_ref="oval:1:tst:72"/>
97 <criterion test_ref="oval:1:tst:73"/>
98 <criterion test_ref="oval:1:tst:74"/>
99 <criterion test_ref="oval:1:tst:75"/>
100 <criterion test_ref="oval:1:tst:76"/>
101 <criterion test_ref="oval:1:tst:77"/>
102 <criterion test_ref="oval:1:tst:78"/>
103 <criterion test_ref="oval:1:tst:79"/>
104 <criterion test_ref="oval:1:tst:80"/>
105 <criterion test_ref="oval:1:tst:81"/>
106 <criterion test_ref="oval:1:tst:82"/>
107 <criterion test_ref="oval:1:tst:83"/>
108 <criterion test_ref="oval:1:tst:84"/>
109 <criterion test_ref="oval:1:tst:85"/>
110 <criterion test_ref="oval:1:tst:86"/>
111 <criterion test_ref="oval:1:tst:87"/>
112 <criterion test_ref="oval:1:tst:88"/>
113 <criterion test_ref="oval:1:tst:89"/>
114 <criterion test_ref="oval:1:tst:90"/>
115 <criterion test_ref="oval:1:tst:91"/>
116 <criterion test_ref="oval:1:tst:92"/>
117 <criterion test_ref="oval:1:tst:93"/>
118 <criterion test_ref="oval:1:tst:94"/>
119 <criterion test_ref="oval:1:tst:95"/>
120 <criterion test_ref="oval:1:tst:96"/>
121 </criteria>
122 </criteria>
123 </definition>
124
125 <definition class="compliance" version="1" id="oval:1:def:2"> <!-- comment="false" -->
126 <metadata>
127 <title></title>
128 <description></description>
129 </metadata>
130 <criteria>
131 <criteria operator="AND">
132 <criterion test_ref="oval:1:tst:1"/>
133 <criterion test_ref="oval:1:tst:5"/>
134 </criteria>
135 </criteria>
136 </definition>
137
138 <definition class="compliance" version="1" id="oval:1:def:3"> <!-- comment="true" -->
139 <metadata>
140 <title></title>
141 <description></description>
142 </metadata>
143 <criteria>
144 <criteria operator="AND">
145 <criterion test_ref="oval:1:tst:1"/>
146 <criterion test_ref="oval:1:tst:1"/>
147 </criteria>
148 </criteria>
149 </definition>
150
151 <definition class="compliance" version="1" id="oval:1:def:4"> <!-- comment="false" -->
152 <metadata>
153 <title></title>
154 <description></description>
155 </metadata>
156 <criteria>
157 <criteria operator="AND">
158 <criterion test_ref="oval:1:tst:5"/>
159 <criterion test_ref="oval:1:tst:5"/>
160 </criteria>
161 </criteria>
162 </definition>
163
164 <definition class="compliance" version="1" id="oval:1:def:5"> <!-- comment="true" -->
165 <metadata>
166 <title></title>
167 <description></description>
168 </metadata>
169 <criteria>
170 <criteria operator="OR">
171 <criterion test_ref="oval:1:tst:1"/>
172 <criterion test_ref="oval:1:tst:5"/>
173 </criteria>
174 </criteria>
175 </definition>
176
177 <definition class="compliance" version="1" id="oval:1:def:6"> <!-- comment="true" -->
178 <metadata>
179 <title></title>
180 <description></description>
181 </metadata>
182 <criteria>
183 <criteria operator="OR">
184 <criterion test_ref="oval:1:tst:1"/>
185 <criterion test_ref="oval:1:tst:1"/>
186 </criteria>
187 </criteria>
188 </definition>
189
190 <definition class="compliance" version="1" id="oval:1:def:7"> <!-- comment="false" -->
191 <metadata>
192 <title></title>
193 <description></description>
194 </metadata>
195 <criteria>
196 <criteria operator="OR">
197 <criterion test_ref="oval:1:tst:5"/>
198 <criterion test_ref="oval:1:tst:5"/>
199 </criteria>
200 </criteria>
201 </definition>
202
203 <definition class="compliance" version="1" id="oval:1:def:8"> <!-- comment="true" -->
204 <metadata>
205 <title></title>
206 <description></description>
207 </metadata>
208 <criteria>
209 <criteria operator="XOR">
210 <criterion test_ref="oval:1:tst:1"/>
211 <criterion test_ref="oval:1:tst:5"/>
212 </criteria>
213 </criteria>
214 </definition>
215
216 <definition class="compliance" version="1" id="oval:1:def:9"> <!-- comment="false" -->
217 <metadata>
218 <title></title>
219 <description></description>
220 </metadata>
221 <criteria>
222 <criteria operator="XOR">
223 <criterion test_ref="oval:1:tst:1"/>
224 <criterion test_ref="oval:1:tst:1"/>
225 </criteria>
226 </criteria>
227 </definition>
228
229 <definition class="compliance" version="1" id="oval:1:def:10"> <!-- comment="false" -->
230 <metadata>
231 <title></title>
232 <description></description>
233 </metadata>
234 <criteria>
235 <criteria operator="XOR">
236 <criterion test_ref="oval:1:tst:5"/>
237 <criterion test_ref="oval:1:tst:5"/>
238 </criteria>
239 </criteria>
240 </definition>
241
242 <definition class="compliance" version="1" id="oval:1:def:11"> <!-- comment="true" -->
243 <metadata>
244 <title></title>
245 <description></description>
246 </metadata>
247 <criteria>
248 <criteria operator="ONE">
249 <criterion test_ref="oval:1:tst:1"/>
250 <criterion test_ref="oval:1:tst:5"/>
251 </criteria>
252 </criteria>
253 </definition>
254
255 <definition class="compliance" version="1" id="oval:1:def:12"> <!-- comment="false" -->
256 <metadata>
257 <title></title>
258 <description></description>
259 </metadata>
260 <criteria>
261 <criteria operator="ONE">
262 <criterion test_ref="oval:1:tst:1"/>
263 <criterion test_ref="oval:1:tst:1"/>
264 </criteria>
265 </criteria>
266 </definition>
267
268 <definition class="compliance" version="1" id="oval:1:def:13"> <!-- comment="false" -->
269 <metadata>
270 <title></title>
271 <description></description>
272 </metadata>
273 <criteria>
274 <criteria operator="ONE">
275 <criterion test_ref="oval:1:tst:5"/>
276 <criterion test_ref="oval:1:tst:5"/>
277 </criteria>
278 </criteria>
279 </definition>
280
281 </definitions>
282
283 <tests>
284
285 <!-- DEFAULT STATELESS OBJECT -->
286
287 <!-- check="all" -->
288
289 <filemd5_test version="1" id="oval:1:tst:1" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
290 <object object_ref="oval:1:obj:1"/>
291 </filemd5_test>
292
293 <!-- check="at least one" -->
294
295 <filemd5_test version="1" id="oval:1:tst:2" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
296 <object object_ref="oval:1:obj:1"/>
297 </filemd5_test>
298
299 <!-- check="none satisfy" -->
300
301 <filemd5_test version="1" id="oval:1:tst:3" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
302 <object object_ref="oval:1:obj:1"/>
303 </filemd5_test>
304
305 <!-- check="only one" -->
306
307 <filemd5_test version="1" id="oval:1:tst:4" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
308 <object object_ref="oval:1:obj:1"/>
309 </filemd5_test>
310
311 <!-- check="all" -->
312
313 <filemd5_test version="1" id="oval:1:tst:5" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
314 <object object_ref="oval:1:obj:2"/>
315 </filemd5_test>
316
317 <!-- check="at least one" -->
318
319 <filemd5_test version="1" id="oval:1:tst:6" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
320 <object object_ref="oval:1:obj:2"/>
321 </filemd5_test>
322
323 <!-- check="none satisfy" -->
324
325 <filemd5_test version="1" id="oval:1:tst:7" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
326 <object object_ref="oval:1:obj:2"/>
327 </filemd5_test>
328
329 <!-- check="only one" -->
330
331 <filemd5_test version="1" id="oval:1:tst:8" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
332 <object object_ref="oval:1:obj:2"/>
333 </filemd5_test>
334
335 <!-- STATELESS OBJECT -->
336
337 <!-- check_existence="all_exist" check="all" -->
338
339 <filemd5_test version="1" id="oval:1:tst:9" check_existence="all_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
340 <object object_ref="oval:1:obj:1"/>
341 </filemd5_test>
342
343 <!-- check_existence="all_exist" check="at least one" -->
344
345 <filemd5_test version="1" id="oval:1:tst:10" check_existence="all_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
346 <object object_ref="oval:1:obj:1"/>
347 </filemd5_test>
348
349 <!-- check_existence="all_exist" check="none satisfy" -->
350
351 <filemd5_test version="1" id="oval:1:tst:11" check_existence="all_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
352 <object object_ref="oval:1:obj:1"/>
353 </filemd5_test>
354
355 <!-- check_existence="all_exist" check="only one" -->
356
357 <filemd5_test version="1" id="oval:1:tst:12" check_existence="all_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
358 <object object_ref="oval:1:obj:1"/>
359 </filemd5_test>
360
361 <!-- check_existence="at_least_one_exists" check="all" -->
362
363 <filemd5_test version="1" id="oval:1:tst:13" check_existence="at_least_one_exists" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
364 <object object_ref="oval:1:obj:1"/>
365 </filemd5_test>
366
367 <!-- check_existence="at_least_one_exists" check="at least one" -->
368
369 <filemd5_test version="1" id="oval:1:tst:14" check_existence="at_least_one_exists" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
370 <object object_ref="oval:1:obj:1"/>
371 </filemd5_test>
372
373 <!-- check_existence="at_least_one_exists" check="none satisfy" -->
374
375 <filemd5_test version="1" id="oval:1:tst:15" check_existence="at_least_one_exists" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
376 <object object_ref="oval:1:obj:1"/>
377 </filemd5_test>
378
379 <!-- check_existence="at_least_one_exists" check="only one" -->
380
381 <filemd5_test version="1" id="oval:1:tst:16" check_existence="at_least_one_exists" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
382 <object object_ref="oval:1:obj:1"/>
383 </filemd5_test>
384
385 <!-- check_existence="any_exist" check="all" -->
386
387 <filemd5_test version="1" id="oval:1:tst:17" check_existence="any_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
388 <object object_ref="oval:1:obj:1"/>
389 </filemd5_test>
390
391 <!-- check_existence="any_exist" check="at least one" -->
392
393 <filemd5_test version="1" id="oval:1:tst:18" check_existence="any_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
394 <object object_ref="oval:1:obj:1"/>
395 </filemd5_test>
396
397 <!-- check_existence="any_exist" check="none satisfy" -->
398
399 <filemd5_test version="1" id="oval:1:tst:19" check_existence="any_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
400 <object object_ref="oval:1:obj:1"/>
401 </filemd5_test>
402
403 <!-- check_existence="any_exist" check="only one" -->
404
405 <filemd5_test version="1" id="oval:1:tst:20" check_existence="any_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
406 <object object_ref="oval:1:obj:1"/>
407 </filemd5_test>
408
409 <!-- check_existence="none_exist" check="all" -->
410
411 <filemd5_test version="1" id="oval:1:tst:21" check_existence="none_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
412 <object object_ref="oval:1:obj:1"/>
413 </filemd5_test>
414
415 <!-- check_existence="none_exist" check="at least one" -->
416
417 <filemd5_test version="1" id="oval:1:tst:22" check_existence="none_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
418 <object object_ref="oval:1:obj:1"/>
419 </filemd5_test>
420
421 <!-- check_existence="none_exist" check="none satisfy" -->
422
423 <filemd5_test version="1" id="oval:1:tst:23" check_existence="none_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
424 <object object_ref="oval:1:obj:1"/>
425 </filemd5_test>
426
427 <!-- check_existence="none_exist" check="only one" -->
428
429 <filemd5_test version="1" id="oval:1:tst:24" check_existence="none_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
430 <object object_ref="oval:1:obj:1"/>
431 </filemd5_test>
432
433 <!-- check_existence="only_one_exists" check="all" -->
434
435 <filemd5_test version="1" id="oval:1:tst:25" check_existence="only_one_exists" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
436 <object object_ref="oval:1:obj:1"/>
437 </filemd5_test>
438
439 <!-- check_existence="only_one_exists" check="at least one" -->
440
441 <filemd5_test version="1" id="oval:1:tst:26" check_existence="only_one_exists" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
442 <object object_ref="oval:1:obj:1"/>
443 </filemd5_test>
444
445 <!-- check_existence="only_one_exists" check="none satisfy" -->
446
447 <filemd5_test version="1" id="oval:1:tst:27" check_existence="only_one_exists" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
448 <object object_ref="oval:1:obj:1"/>
449 </filemd5_test>
450
451 <!-- check_existence="only_one_exists" check="only one" -->
452
453 <filemd5_test version="1" id="oval:1:tst:28" check_existence="only_one_exists" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
454 <object object_ref="oval:1:obj:1"/>
455 </filemd5_test>
456
457 <!-- check_existence="all_exist" check="all" -->
458
459 <filemd5_test version="1" id="oval:1:tst:29" check_existence="all_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
460 <object object_ref="oval:1:obj:2"/>
461 </filemd5_test>
462
463 <!-- check_existence="all_exist" check="at least one" -->
464
465 <filemd5_test version="1" id="oval:1:tst:30" check_existence="all_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
466 <object object_ref="oval:1:obj:2"/>
467 </filemd5_test>
468
469 <!-- check_existence="all_exist" check="none satisfy" -->
470
471 <filemd5_test version="1" id="oval:1:tst:31" check_existence="all_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
472 <object object_ref="oval:1:obj:2"/>
473 </filemd5_test>
474
475 <!-- check_existence="all_exist" check="only one" -->
476
477 <filemd5_test version="1" id="oval:1:tst:32" check_existence="all_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
478 <object object_ref="oval:1:obj:2"/>
479 </filemd5_test>
480
481 <!-- check_existence="at_least_one_exists" check="all" -->
482
483 <filemd5_test version="1" id="oval:1:tst:33" check_existence="at_least_one_exists" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
484 <object object_ref="oval:1:obj:2"/>
485 </filemd5_test>
486
487 <!-- check_existence="at_least_one_exists" check="at least one" -->
488
489 <filemd5_test version="1" id="oval:1:tst:34" check_existence="at_least_one_exists" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
490 <object object_ref="oval:1:obj:2"/>
491 </filemd5_test>
492
493 <!-- check_existence="at_least_one_exists" check="none satisfy" -->
494
495 <filemd5_test version="1" id="oval:1:tst:35" check_existence="at_least_one_exists" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
496 <object object_ref="oval:1:obj:2"/>
497 </filemd5_test>
498
499 <!-- check_existence="at_least_one_exists" check="only one" -->
500
501 <filemd5_test version="1" id="oval:1:tst:36" check_existence="at_least_one_exists" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
502 <object object_ref="oval:1:obj:2"/>
503 </filemd5_test>
504
505 <!-- check_existence="any_exist" check="all" -->
506
507 <filemd5_test version="1" id="oval:1:tst:37" check_existence="any_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
508 <object object_ref="oval:1:obj:2"/>
509 </filemd5_test>
510
511 <!-- check_existence="any_exist" check="at least one" -->
512
513 <filemd5_test version="1" id="oval:1:tst:38" check_existence="any_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
514 <object object_ref="oval:1:obj:2"/>
515 </filemd5_test>
516
517 <!-- check_existence="any_exist" check="none satisfy" -->
518
519 <filemd5_test version="1" id="oval:1:tst:39" check_existence="any_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
520 <object object_ref="oval:1:obj:2"/>
521 </filemd5_test>
522
523 <!-- check_existence="any_exist" check="only one" -->
524
525 <filemd5_test version="1" id="oval:1:tst:40" check_existence="any_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
526 <object object_ref="oval:1:obj:2"/>
527 </filemd5_test>
528
529 <!-- check_existence="none_exist" check="all" -->
530
531 <filemd5_test version="1" id="oval:1:tst:41" check_existence="none_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
532 <object object_ref="oval:1:obj:2"/>
533 </filemd5_test>
534
535 <!-- check_existence="none_exist" check="at least one" -->
536
537 <filemd5_test version="1" id="oval:1:tst:42" check_existence="none_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
538 <object object_ref="oval:1:obj:2"/>
539 </filemd5_test>
540
541 <!-- check_existence="none_exist" check="none satisfy" -->
542
543 <filemd5_test version="1" id="oval:1:tst:43" check_existence="none_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
544 <object object_ref="oval:1:obj:2"/>
545 </filemd5_test>
546
547 <!-- check_existence="none_exist" check="only one" -->
548
549 <filemd5_test version="1" id="oval:1:tst:44" check_existence="none_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
550 <object object_ref="oval:1:obj:2"/>
551 </filemd5_test>
552
553 <!-- check_existence="only_one_exists" check="all" -->
554
555 <filemd5_test version="1" id="oval:1:tst:45" check_existence="only_one_exists" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
556 <object object_ref="oval:1:obj:2"/>
557 </filemd5_test>
558
559 <!-- check_existence="only_one_exists" check="at least one" -->
560
561 <filemd5_test version="1" id="oval:1:tst:46" check_existence="only_one_exists" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
562 <object object_ref="oval:1:obj:2"/>
563 </filemd5_test>
564
565 <!-- check_existence="only_one_exists" check="none satisfy" -->
566
567 <filemd5_test version="1" id="oval:1:tst:47" check_existence="only_one_exists" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
568 <object object_ref="oval:1:obj:2"/>
569 </filemd5_test>
570
571 <!-- check_existence="only_one_exists" check="only one" -->
572
573 <filemd5_test version="1" id="oval:1:tst:48" check_existence="only_one_exists" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
574 <object object_ref="oval:1:obj:2"/>
575 </filemd5_test>
576
577 <!-- DEFAULT OBJECT WITH STATE -->
578
579 <!-- check="all" -->
580
581 <filemd5_test version="1" id="oval:1:tst:49" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
582 <object object_ref="oval:1:obj:1"/>
583 <state state_ref="oval:1:ste:1"/>
584 </filemd5_test>
585
586 <filemd5_test version="1" id="oval:1:tst:50" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
587 <object object_ref="oval:1:obj:1"/>
588 <state state_ref="oval:1:ste:2"/>
589 </filemd5_test>
590
591 <!-- check="at least one" -->
592
593 <filemd5_test version="1" id="oval:1:tst:51" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
594 <object object_ref="oval:1:obj:1"/>
595 <state state_ref="oval:1:ste:1"/>
596 </filemd5_test>
597
598 <filemd5_test version="1" id="oval:1:tst:52" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
599 <object object_ref="oval:1:obj:1"/>
600 <state state_ref="oval:1:ste:2"/>
601 </filemd5_test>
602
603 <!-- check="none satisfy" -->
604
605 <filemd5_test version="1" id="oval:1:tst:53" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
606 <object object_ref="oval:1:obj:1"/>
607 <state state_ref="oval:1:ste:1"/>
608 </filemd5_test>
609
610 <filemd5_test version="1" id="oval:1:tst:54" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
611 <object object_ref="oval:1:obj:1"/>
612 <state state_ref="oval:1:ste:2"/>
613 </filemd5_test>
614
615 <!-- check="only one" -->
616
617 <filemd5_test version="1" id="oval:1:tst:55" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
618 <object object_ref="oval:1:obj:1"/>
619 <state state_ref="oval:1:ste:1"/>
620 </filemd5_test>
621
622 <filemd5_test version="1" id="oval:1:tst:56" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
623 <object object_ref="oval:1:obj:1"/>
624 <state state_ref="oval:1:ste:2"/>
625 </filemd5_test>
626
627 <!-- OBJECT WITH STATE -->
628
629 <!-- check_existence="all_exist" check="all" -->
630
631 <filemd5_test version="1" id="oval:1:tst:57" check_existence="all_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
632 <object object_ref="oval:1:obj:1"/>
633 <state state_ref="oval:1:ste:1"/>
634 </filemd5_test>
635
636 <filemd5_test version="1" id="oval:1:tst:58" check_existence="all_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
637 <object object_ref="oval:1:obj:1"/>
638 <state state_ref="oval:1:ste:2"/>
639 </filemd5_test>
640
641 <!-- check_existence="all_exist" check="at least one" -->
642
643 <filemd5_test version="1" id="oval:1:tst:59" check_existence="all_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
644 <object object_ref="oval:1:obj:1"/>
645 <state state_ref="oval:1:ste:1"/>
646 </filemd5_test>
647
648 <filemd5_test version="1" id="oval:1:tst:60" check_existence="all_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
649 <object object_ref="oval:1:obj:1"/>
650 <state state_ref="oval:1:ste:2"/>
651 </filemd5_test>
652
653 <!-- check_existence="all_exist" check="none satisfy" -->
654
655 <filemd5_test version="1" id="oval:1:tst:61" check_existence="all_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
656 <object object_ref="oval:1:obj:1"/>
657 <state state_ref="oval:1:ste:1"/>
658 </filemd5_test>
659
660 <filemd5_test version="1" id="oval:1:tst:62" check_existence="all_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
661 <object object_ref="oval:1:obj:1"/>
662 <state state_ref="oval:1:ste:2"/>
663 </filemd5_test>
664
665 <!-- check_existence="all_exist" check="only one" -->
666
667 <filemd5_test version="1" id="oval:1:tst:63" check_existence="all_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
668 <object object_ref="oval:1:obj:1"/>
669 <state state_ref="oval:1:ste:1"/>
670 </filemd5_test>
671
672 <filemd5_test version="1" id="oval:1:tst:64" check_existence="all_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
673 <object object_ref="oval:1:obj:1"/>
674 <state state_ref="oval:1:ste:2"/>
675 </filemd5_test>
676
677 <!-- check_existence="any_exist" check="all" -->
678
679 <filemd5_test version="1" id="oval:1:tst:65" check_existence="any_exist" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
680 <object object_ref="oval:1:obj:1"/>
681 <state state_ref="oval:1:ste:1"/>
682 </filemd5_test>
683
684 <filemd5_test version="1" id="oval:1:tst:66" check_existence="any_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
685 <object object_ref="oval:1:obj:1"/>
686 <state state_ref="oval:1:ste:2"/>
687 </filemd5_test>
688
689 <!-- check_existence="any_exist" check="at least one" -->
690
691 <filemd5_test version="1" id="oval:1:tst:67" check_existence="any_exist" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
692 <object object_ref="oval:1:obj:1"/>
693 <state state_ref="oval:1:ste:1"/>
694 </filemd5_test>
695
696 <filemd5_test version="1" id="oval:1:tst:68" check_existence="any_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
697 <object object_ref="oval:1:obj:1"/>
698 <state state_ref="oval:1:ste:2"/>
699 </filemd5_test>
700
701 <!-- check_existence="any_exist" check="none satisfy" -->
702
703 <filemd5_test version="1" id="oval:1:tst:69" check_existence="any_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
704 <object object_ref="oval:1:obj:1"/>
705 <state state_ref="oval:1:ste:1"/>
706 </filemd5_test>
707
708 <filemd5_test version="1" id="oval:1:tst:70" check_existence="any_exist" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
709 <object object_ref="oval:1:obj:1"/>
710 <state state_ref="oval:1:ste:2"/>
711 </filemd5_test>
712
713 <!-- check_existence="any_exist" check="only one" -->
714
715 <filemd5_test version="1" id="oval:1:tst:71" check_existence="any_exist" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
716 <object object_ref="oval:1:obj:1"/>
717 <state state_ref="oval:1:ste:1"/>
718 </filemd5_test>
719
720 <filemd5_test version="1" id="oval:1:tst:72" check_existence="any_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
721 <object object_ref="oval:1:obj:1"/>
722 <state state_ref="oval:1:ste:2"/>
723 </filemd5_test>
724
725 <!-- check_existence="at_least_one_exists" check="all" -->
726
727 <filemd5_test version="1" id="oval:1:tst:73" check_existence="at_least_one_exists" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
728 <object object_ref="oval:1:obj:1"/>
729 <state state_ref="oval:1:ste:1"/>
730 </filemd5_test>
731
732 <filemd5_test version="1" id="oval:1:tst:74" check_existence="at_least_one_exists" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
733 <object object_ref="oval:1:obj:1"/>
734 <state state_ref="oval:1:ste:2"/>
735 </filemd5_test>
736
737 <!-- check_existence="at_least_one_exists" check="at least one" -->
738
739 <filemd5_test version="1" id="oval:1:tst:75" check_existence="at_least_one_exists" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
740 <object object_ref="oval:1:obj:1"/>
741 <state state_ref="oval:1:ste:1"/>
742 </filemd5_test>
743
744 <filemd5_test version="1" id="oval:1:tst:76" check_existence="at_least_one_exists" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
745 <object object_ref="oval:1:obj:1"/>
746 <state state_ref="oval:1:ste:2"/>
747 </filemd5_test>
748
749 <!-- check_existence="at_least_one_exists" check="none satisfy" -->
750
751 <filemd5_test version="1" id="oval:1:tst:77" check_existence="at_least_one_exists" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
752 <object object_ref="oval:1:obj:1"/>
753 <state state_ref="oval:1:ste:1"/>
754 </filemd5_test>
755
756 <filemd5_test version="1" id="oval:1:tst:78" check_existence="at_least_one_exists" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
757 <object object_ref="oval:1:obj:1"/>
758 <state state_ref="oval:1:ste:2"/>
759 </filemd5_test>
760
761 <!-- check_existence="at_least_one_exists" check="only one" -->
762
763 <filemd5_test version="1" id="oval:1:tst:79" check_existence="at_least_one_exists" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
764 <object object_ref="oval:1:obj:1"/>
765 <state state_ref="oval:1:ste:1"/>
766 </filemd5_test>
767
768 <filemd5_test version="1" id="oval:1:tst:80" check_existence="at_least_one_exists" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
769 <object object_ref="oval:1:obj:1"/>
770 <state state_ref="oval:1:ste:2"/>
771 </filemd5_test>
772
773 <!-- check_existence="none_exist" check="all" -->
774
775 <filemd5_test version="1" id="oval:1:tst:81" check_existence="none_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
776 <object object_ref="oval:1:obj:1"/>
777 <state state_ref="oval:1:ste:1"/>
778 </filemd5_test>
779
780 <filemd5_test version="1" id="oval:1:tst:82" check_existence="none_exist" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
781 <object object_ref="oval:1:obj:1"/>
782 <state state_ref="oval:1:ste:2"/>
783 </filemd5_test>
784
785 <!-- check_existence="none_exist" check="at least one" -->
786
787 <filemd5_test version="1" id="oval:1:tst:83" check_existence="none_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
788 <object object_ref="oval:1:obj:1"/>
789 <state state_ref="oval:1:ste:1"/>
790 </filemd5_test>
791
792 <filemd5_test version="1" id="oval:1:tst:84" check_existence="none_exist" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
793 <object object_ref="oval:1:obj:1"/>
794 <state state_ref="oval:1:ste:2"/>
795 </filemd5_test>
796
797 <!-- check_existence="none_exist" check="none satisfy" -->
798
799 <filemd5_test version="1" id="oval:1:tst:85" check_existence="none_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
800 <object object_ref="oval:1:obj:1"/>
801 <state state_ref="oval:1:ste:1"/>
802 </filemd5_test>
803
804 <filemd5_test version="1" id="oval:1:tst:86" check_existence="none_exist" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
805 <object object_ref="oval:1:obj:1"/>
806 <state state_ref="oval:1:ste:2"/>
807 </filemd5_test>
808
809 <!-- check_existence="none_exist" check="only one" -->
810
811 <filemd5_test version="1" id="oval:1:tst:87" check_existence="none_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
812 <object object_ref="oval:1:obj:1"/>
813 <state state_ref="oval:1:ste:1"/>
814 </filemd5_test>
815
816 <filemd5_test version="1" id="oval:1:tst:88" check_existence="none_exist" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
817 <object object_ref="oval:1:obj:1"/>
818 <state state_ref="oval:1:ste:2"/>
819 </filemd5_test>
820
821 <!-- check_existence="only_one_exists" check="all" -->
822
823 <filemd5_test version="1" id="oval:1:tst:89" check_existence="only_one_exists" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
824 <object object_ref="oval:1:obj:1"/>
825 <state state_ref="oval:1:ste:1"/>
826 </filemd5_test>
827
828 <filemd5_test version="1" id="oval:1:tst:90" check_existence="only_one_exists" check="all" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
829 <object object_ref="oval:1:obj:1"/>
830 <state state_ref="oval:1:ste:2"/>
831 </filemd5_test>
832
833 <!-- check_existence="only_one_exists" check="at least one" -->
834
835 <filemd5_test version="1" id="oval:1:tst:91" check_existence="only_one_exists" check="at least one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
836 <object object_ref="oval:1:obj:1"/>
837 <state state_ref="oval:1:ste:1"/>
838 </filemd5_test>
839
840 <filemd5_test version="1" id="oval:1:tst:92" check_existence="only_one_exists" check="at least one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
841 <object object_ref="oval:1:obj:1"/>
842 <state state_ref="oval:1:ste:2"/>
843 </filemd5_test>
844
845 <!-- check_existence="only_one_exists" check="none satisfy" -->
846
847 <filemd5_test version="1" id="oval:1:tst:93" check_existence="only_one_exists" check="none satisfy" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
848 <object object_ref="oval:1:obj:1"/>
849 <state state_ref="oval:1:ste:1"/>
850 </filemd5_test>
851
852 <filemd5_test version="1" id="oval:1:tst:94" check_existence="only_one_exists" check="none satisfy" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
853 <object object_ref="oval:1:obj:1"/>
854 <state state_ref="oval:1:ste:2"/>
855 </filemd5_test>
856
857 <!-- check_existence="only_one_exists" check="only one" -->
858
859 <filemd5_test version="1" id="oval:1:tst:95" check_existence="only_one_exists" check="only one" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
860 <object object_ref="oval:1:obj:1"/>
861 <state state_ref="oval:1:ste:1"/>
862 </filemd5_test>
863
864 <filemd5_test version="1" id="oval:1:tst:96" check_existence="only_one_exists" check="only one" comment="false" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
865 <object object_ref="oval:1:obj:1"/>
866 <state state_ref="oval:1:ste:2"/>
867 </filemd5_test>
868
869 </tests>
870
871 <objects>
872
873 <!-- EXISTING OBJECT -->
874 <filemd5_object version="1" id="oval:1:obj:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
875 <path>/tmp</path>
876 <filename>test_probes_filemd5.tmp</filename>
877 </filemd5_object>
878
879 <!-- NON-EXISTING OBJECT -->
880 <filemd5_object version="1" id="oval:1:obj:2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
881 <path>/tmp</path>
882 <filename>test_probes_filemd5.invalid</filename>
883 </filemd5_object>
884
885 </objects>
886
887 <states>
888
889 <!-- TRUE STATE -->
890 <filemd5_state version="1" id="oval:1:ste:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
891 <path>/tmp</path>
892 <filename>test_probes_filemd5.tmp</filename>
893 <md5>`md5sum /tmp/test_probes_filemd5.tmp | awk '{print $1}'`</md5>
894 </filemd5_state>
895
896 <!-- FALSE STATE -->
897 <filemd5_state version="1" id="oval:1:ste:2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
898 <path>/tmp</path>
899 <filename>test_probes_filemd5.tmp</filename>
900 <md5>incorrect-md5</md5>
901 </filemd5_state>
902
903 </states>
904
905 </oval_definitions>
906 EOF