| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.10.1</oval:schema_version> |
| 5 | <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 6 | <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use> |
| 7 | </generator> |
| 8 | <definitions> |
| 9 | <definition id="oval:org.mitre.oval.test:def:811" version="7" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the oval-def:set construct is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:set construct and all of its valid operations.</description> |
| 13 | </metadata> |
| 14 | <criteria operator="AND"> |
| 15 | <criterion comment="Test that the set construct is supported with the COMPLEMENT operation." test_ref="oval:org.mitre.oval.test:tst:278"/> |
| 16 | <criterion comment="Test that the set object is supported with the set_operator equal to 'INTERSECTION'." test_ref="oval:org.mitre.oval.test:tst:69"/> |
| 17 | <criterion comment="Test that the set construct is supported with the UNION operation." test_ref="oval:org.mitre.oval.test:tst:195"/> |
| 18 | <criterion comment="Test that the set object is supported with the filter element." test_ref="oval:org.mitre.oval.test:tst:151"/> |
| 19 | <criterion comment="Test that the set object is supported with one level of set elements." test_ref="oval:org.mitre.oval.test:tst:377"/> |
| 20 | <criterion comment="Test that the set object is supported with two levels of set elements." test_ref="oval:org.mitre.oval.test:tst:213"/> |
| 21 | <criterion comment="Test that the set object is supported with three levels of set elements." test_ref="oval:org.mitre.oval.test:tst:874"/> |
| 22 | </criteria> |
| 23 | </definition> |
| 24 | </definitions> |
| 25 | <tests> |
| 26 | <file_test id="oval:org.mitre.oval.test:tst:278" version="2" comment="Test that the set construct is supported with the COMPLEMENT operation." check_existence="only_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 27 | <object object_ref="oval:org.mitre.oval.test:obj:408"/> |
| 28 | <state state_ref="oval:org.mitre.oval.test:ste:245"/> |
| 29 | </file_test> |
| 30 | <file_test id="oval:org.mitre.oval.test:tst:69" version="2" comment="Test that the set object is supported with the set_operator equal to 'INTERSECTION'." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 31 | <object object_ref="oval:org.mitre.oval.test:obj:609"/> |
| 32 | <state state_ref="oval:org.mitre.oval.test:ste:248"/> |
| 33 | </file_test> |
| 34 | <file_test id="oval:org.mitre.oval.test:tst:195" version="2" comment="Test that the set construct is supported with the UNION operation." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 35 | <object object_ref="oval:org.mitre.oval.test:obj:661"/> |
| 36 | <state state_ref="oval:org.mitre.oval.test:ste:128"/> |
| 37 | </file_test> |
| 38 | <file_test id="oval:org.mitre.oval.test:tst:151" version="1" comment="Test that the set object is supported with the filter element." check_existence="only_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 39 | <object object_ref="oval:org.mitre.oval.test:obj:567"/> |
| 40 | <state state_ref="oval:org.mitre.oval.test:ste:245"/> |
| 41 | </file_test> |
| 42 | <file_test id="oval:org.mitre.oval.test:tst:377" version="2" comment="Test that the set object is supported with one level of set elements." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 43 | <object object_ref="oval:org.mitre.oval.test:obj:831"/> |
| 44 | <state state_ref="oval:org.mitre.oval.test:ste:128"/> |
| 45 | </file_test> |
| 46 | <file_test id="oval:org.mitre.oval.test:tst:213" version="2" comment="Test that the set object is supported with two levels of set elements." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 47 | <object object_ref="oval:org.mitre.oval.test:obj:379"/> |
| 48 | <state state_ref="oval:org.mitre.oval.test:ste:128"/> |
| 49 | </file_test> |
| 50 | <file_test id="oval:org.mitre.oval.test:tst:874" version="2" comment="Test that the set object is supported with three levels of set elements." check_existence="none_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 51 | <object object_ref="oval:org.mitre.oval.test:obj:747"/> |
| 52 | </file_test> |
| 53 | </tests> |
| 54 | <objects> |
| 55 | <file_object id="oval:org.mitre.oval.test:obj:362" version="1" comment="This object represents a file_object with a path equal to '/tmp/support/txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 56 | <path>/tmp/support/txt</path> |
| 57 | <filename xsi:nil="true"/> |
| 58 | </file_object> |
| 59 | <file_object id="oval:org.mitre.oval.test:obj:71" version="2" comment="This object represents a file_object with a path that matches the regular expression '/tmp/support/txt.+'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 60 | <path operation="pattern match">^/tmp/support/txt.+</path> |
| 61 | <filename xsi:nil="true"/> |
| 62 | </file_object> |
| 63 | <file_object id="oval:org.mitre.oval.test:obj:142" version="1" comment="This object represents a file_object with a path that matches the regular expression '/tmp/support/txt($|/.*)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 64 | <path operation="pattern match">^/tmp/support/txt($|/.*)</path> |
| 65 | <filename xsi:nil="true"/> |
| 66 | </file_object> |
| 67 | <file_object id="oval:org.mitre.oval.test:obj:408" version="2" comment="This object represents a file_object that is the set ( {a,b,c} COMPLEMENT {b,c} ) which equals set {a}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 68 | <set set_operator="COMPLEMENT" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 69 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 70 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 71 | </set> |
| 72 | </file_object> |
| 73 | <file_object id="oval:org.mitre.oval.test:obj:609" version="2" comment="This object represents a file_object that is the set ( {a,b,c} INTERSECTION {b,c} ) which equals set {b,c}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 74 | <set set_operator="INTERSECTION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 75 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 76 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 77 | </set> |
| 78 | </file_object> |
| 79 | <file_object id="oval:org.mitre.oval.test:obj:661" version="2" comment="This object represents a file_object that is the set ( {a} UNION {b,c} ) which equals set {a,b,c}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 80 | <set set_operator="UNION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 81 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 82 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 83 | </set> |
| 84 | </file_object> |
| 85 | <file_object id="oval:org.mitre.oval.test:obj:567" version="1" comment="This object represents a file_object that is the set {a,b,c} filtered by b and c which equals set {a}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 86 | <set xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 87 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 88 | <filter>oval:org.mitre.oval.test:ste:248</filter> |
| 89 | </set> |
| 90 | </file_object> |
| 91 | <file_object id="oval:org.mitre.oval.test:obj:831" version="2" comment="This object represents a file_object that is the set ( ( {a,b,c} COMPLEMENT {b,c} ) INTERSECTION ( {a} UNION {b,c} ) ) which equals set {a}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 92 | <set set_operator="INTERSECTION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 93 | <set set_operator="COMPLEMENT"> |
| 94 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 95 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 96 | </set> |
| 97 | <set set_operator="UNION"> |
| 98 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 99 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 100 | </set> |
| 101 | </set> |
| 102 | </file_object> |
| 103 | <file_object id="oval:org.mitre.oval.test:obj:379" version="2" comment="This object represents a file_object that is the set ( ( ( {a} UNION {} ) COMPLEMENT ( {a,b,c} INTERSECTION {b,c} ) ) INTERSECTION ( ( {a,b,c} COMPLEMENT {b,c} ) UNION ( {a} UNION {a,b,c} ) ) ) which equals set {a}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 104 | <set set_operator="INTERSECTION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 105 | <set set_operator="COMPLEMENT"> |
| 106 | <set set_operator="UNION"> |
| 107 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 108 | </set> |
| 109 | <set set_operator="INTERSECTION"> |
| 110 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 111 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 112 | </set> |
| 113 | </set> |
| 114 | <set set_operator="UNION"> |
| 115 | <set set_operator="COMPLEMENT"> |
| 116 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 117 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 118 | </set> |
| 119 | <set set_operator="UNION"> |
| 120 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 121 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 122 | </set> |
| 123 | </set> |
| 124 | </set> |
| 125 | </file_object> |
| 126 | <file_object id="oval:org.mitre.oval.test:obj:747" version="2" comment="This object represents a file_object that is the set ( ( ( {a} UNION {} ) COMPLEMENT ( ( {a,b,c} COMPLEMENT {b,c} ) UNION ( ( {1} UNION {1,2,3} ) filtered by {b,c} ) ) ) INTERSECTION {} ) which equals {}." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 127 | <set set_operator="INTERSECTION" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 128 | <set set_operator="COMPLEMENT"> |
| 129 | <set set_operator="UNION"> |
| 130 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 131 | </set> |
| 132 | <set set_operator="UNION"> |
| 133 | <set set_operator="COMPLEMENT"> |
| 134 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 135 | <object_reference>oval:org.mitre.oval.test:obj:71</object_reference> |
| 136 | </set> |
| 137 | <set set_operator="UNION"> |
| 138 | <object_reference>oval:org.mitre.oval.test:obj:362</object_reference> |
| 139 | <object_reference>oval:org.mitre.oval.test:obj:142</object_reference> |
| 140 | <filter>oval:org.mitre.oval.test:ste:248</filter> |
| 141 | </set> |
| 142 | </set> |
| 143 | </set> |
| 144 | </set> |
| 145 | </file_object> |
| 146 | </objects> |
| 147 | <states> |
| 148 | <file_state id="oval:org.mitre.oval.test:ste:245" version="1" comment="This file_state represents a file_object with a path equal to '/tmp/support/txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 149 | <path>/tmp/support/txt</path> |
| 150 | </file_state> |
| 151 | <file_state id="oval:org.mitre.oval.test:ste:248" version="1" comment="This file_state represents a file_object with a path that equals '/tmp/support/txt/txtfile' or '/tmp/support/txt/txtfile/subtxtfile'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 152 | <path var_ref="oval:org.mitre.oval.test:var:821" var_check="only one"/> |
| 153 | </file_state> |
| 154 | <file_state id="oval:org.mitre.oval.test:ste:128" version="1" comment="This file_state represents a file_object with a path that equals '/tmp/support/txt', '/tmp/support/txt/txtfile', or '/tmp/support/txt/txtfile/subtxtfile'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 155 | <path var_ref="oval:org.mitre.oval.test:var:137" var_check="only one"/> |
| 156 | </file_state> |
| 157 | </states> |
| 158 | <variables> |
| 159 | <constant_variable id="oval:org.mitre.oval.test:var:821" version="1" comment="This constant_variable represents the string values '/tmp/support/txt/txtfile' and '/tmp/support/txt/txtfile/subtxtfile'." datatype="string"> |
| 160 | <value>/tmp/support/txt/txtfile</value> |
| 161 | <value>/tmp/support/txt/txtfile/subtxtfile</value> |
| 162 | </constant_variable> |
| 163 | <constant_variable id="oval:org.mitre.oval.test:var:137" version="1" comment="This constant_variable represents the string values '/tmp/support/txt', '/tmp/support/txt/txtfile', and '/tmp/support/txt/txtfile/subtxtfile'." datatype="string"> |
| 164 | <value>/tmp/support/txt</value> |
| 165 | <value>/tmp/support/txt/txtfile</value> |
| 166 | <value>/tmp/support/txt/txtfile/subtxtfile</value> |
| 167 | </constant_variable> |
| 168 | </variables> |
| 169 | </oval_definitions> |