Debian Codegraph @

tests/mitre/oval-def_criteria.xml

raw symbols SCIP
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#independent independent-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-05-21T11:46:00-04: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:560" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the oval-def:criteria element is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element and all of its operators.</description>
13 </metadata>
14 <criteria>
15 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with the AND operator" definition_ref="oval:org.mitre.oval.test:def:404"/>
16 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with the ONE operator" definition_ref="oval:org.mitre.oval.test:def:599"/>
17 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with the OR operator" definition_ref="oval:org.mitre.oval.test:def:503"/>
18 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with the XOR operator" definition_ref="oval:org.mitre.oval.test:def:142"/>
19 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with the negate attribute set to true" definition_ref="oval:org.mitre.oval.test:def:357"/>
20 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with one level of nesting" definition_ref="oval:org.mitre.oval.test:def:903"/>
21 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with two levels of nesting" definition_ref="oval:org.mitre.oval.test:def:388"/>
22 <extend_definition comment="Evaluate to true if the oval-def:criteria element is properly supported with three levels of nesting" definition_ref="oval:org.mitre.oval.test:def:962"/>
23 </criteria>
24 </definition>
25 <definition id="oval:org.mitre.oval.test:def:404" version="1" class="miscellaneous">
26 <metadata>
27 <title>Evaluate to true if the oval-def:criteria element is properly supported with the AND operator</title>
28 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element with the AND operator.</description>
29 </metadata>
30 <criteria operator="AND">
31 <criteria operator="AND" comment="Test that the criteria element is supported with the operator attribute set to AND where both criterion evaluate to true.">
32 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
33 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
34 </criteria>
35 <criteria negate="true" operator="AND" comment="Test that the criteria element is supported with the operator attribute set to AND where one criterion evaluates to true and one criterion evaluates to false.">
36 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
37 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
38 </criteria>
39 <criteria negate="true" operator="AND" comment="Test that the criteria element is supported with the operator attribute set to AND where two criterion evaluate to false.">
40 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
41 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
42 </criteria>
43 </criteria>
44 </definition>
45 <definition id="oval:org.mitre.oval.test:def:599" version="1" class="miscellaneous">
46 <metadata>
47 <title>Evaluate to true if the oval-def:criteria element is properly supported with the ONE operator</title>
48 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element with the ONE operator.</description>
49 </metadata>
50 <criteria operator="AND">
51 <criteria negate="true" operator="ONE" comment="Test that the criteria element is supported with the operator attribute set to ONE where both criterion that evaluate to false.">
52 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
53 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
54 </criteria>
55 <criteria operator="ONE" comment="Test that the criteria element is supported with the operator attribute set to ONE where one criterion evaluates to true and one criterion evaluates to false.">
56 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
57 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
58 </criteria>
59 <criteria negate="true" operator="ONE" comment="Test that the criteria element is supported with the operator attribute set to ONE where both criterion evaluate to true.">
60 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
61 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
62 </criteria>
63 </criteria>
64 </definition>
65 <definition id="oval:org.mitre.oval.test:def:503" version="1" class="miscellaneous">
66 <metadata>
67 <title>Evaluate to true if the oval-def:criteria element is properly supported with the OR operator</title>
68 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element with the OR operator.</description>
69 </metadata>
70 <criteria operator="AND">
71 <criteria negate="true" operator="OR" comment="Test that the criteria element is supported with the operator attribute set to OR where both criterion evaluate to false.">
72 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
73 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
74 </criteria>
75 <criteria operator="OR" comment="Test that the criteria element is supported with the operator attribute set to OR where one criterion evaluates to true and one criterion evaluates to false.">
76 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
77 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
78 </criteria>
79 <criteria operator="OR" comment="Test that the criteria element is supported with the operator attribute set to OR where both criterion evaluate to true.">
80 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
81 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
82 </criteria>
83 </criteria>
84 </definition>
85 <definition id="oval:org.mitre.oval.test:def:142" version="1" class="miscellaneous">
86 <metadata>
87 <title>Evaluate to true if the oval-def:criteria element is properly supported with the XOR operator</title>
88 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element with the XOR operator.</description>
89 </metadata>
90 <criteria operator="AND">
91 <criteria negate="true" operator="XOR" comment="Test that the criteria element is supported with the operator attribute set to XOR where both criterion evaluate to false.">
92 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
93 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
94 </criteria>
95 <criteria operator="XOR" comment="Test that the criteria element is supported with the operator attribute set to XOR where one criterion evaluates to true and one criterion evaluates to false.">
96 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
97 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
98 </criteria>
99 <criteria negate="true" operator="XOR" comment="Test that the criteria element is supported with the operator attribute set to XOR where both criterion evaluate to true.">
100 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
101 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
102 </criteria>
103 </criteria>
104 </definition>
105 <definition id="oval:org.mitre.oval.test:def:357" version="1" class="miscellaneous">
106 <metadata>
107 <title>Evaluate to true if the oval-def:criteria element is properly supported with the negate attribute set to true</title>
108 <description>This definition is intended to evalutate to true if the interpreter properly supports the oval-def:criteria element with the negate attribute set to true.</description>
109 </metadata>
110 <criteria negate="true" operator="AND">
111 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
112 </criteria>
113 </definition>
114 <definition id="oval:org.mitre.oval.test:def:903" version="1" class="miscellaneous">
115 <metadata>
116 <title>Evaluate to true if the oval-def:criteria element is properly supported with one level of nesting</title>
117 <description>This definition is intended to evalutate to true if the interpreter properly supports one level of nested oval-def:criteria elements.</description>
118 <notes>
119 <note>XOR ( AND ( T ) , ONE ( T , T , T ) , OR ( F , F ) ) = T</note>
120 </notes>
121 </metadata>
122 <criteria>
123 <criteria operator="XOR">
124 <criteria operator="AND">
125 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
126 </criteria>
127 <criteria operator="ONE">
128 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
129 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
130 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
131 </criteria>
132 <criteria operator="OR">
133 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
134 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
135 </criteria>
136 </criteria>
137 </criteria>
138 </definition>
139 <definition id="oval:org.mitre.oval.test:def:388" version="1" class="miscellaneous">
140 <metadata>
141 <title>Evaluate to true if the oval-def:criteria element is properly supported with two levels of nesting</title>
142 <description>This definition is intended to evalutate to true if the interpreter properly supports two levels of nested oval-def:criteria elements.</description>
143 <notes>
144 <note>OR ( AND ( T , T , XOR ( T , F ) ) , ONE ( AND ( T ) , ONE ( T , F ) , F ) ) = T</note>
145 </notes>
146 </metadata>
147 <criteria operator="OR">
148 <criteria operator="AND">
149 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
150 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
151 <criteria operator="XOR">
152 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
153 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
154 </criteria>
155 </criteria>
156 <criteria operator="ONE">
157 <criteria operator="AND">
158 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
159 </criteria>
160 <criteria operator="ONE">
161 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
162 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
163 </criteria>
164 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
165 </criteria>
166 </criteria>
167 </definition>
168 <definition id="oval:org.mitre.oval.test:def:962" version="1" class="miscellaneous">
169 <metadata>
170 <title>Evaluate to true if the oval-def:criteria element is properly supported with three levels of nesting</title>
171 <description>This definition is intended to evalutate to true if the interpreter properly supports three levels of nested oval-def:criteria elements.</description>
172 <notes>
173 <note>XOR ( AND ( T , T , XOR ( T , XOR ( F ) , F ) ) , ONE ( AND ( T ) , ONE ( OR ( T , F , F ) , F , F ) , F ) ) = T</note>
174 </notes>
175 </metadata>
176 <criteria operator="XOR">
177 <criteria operator="AND">
178 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
179 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
180 <criteria operator="XOR">
181 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
182 <criteria operator="XOR">
183 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
184 </criteria>
185 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
186 </criteria>
187 </criteria>
188 <criteria operator="ONE">
189 <criteria operator="AND">
190 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
191 </criteria>
192 <criteria operator="ONE">
193 <criteria operator="OR">
194 <criterion comment="This test is intended to evaluate to true." test_ref="oval:org.mitre.oval.test:tst:123"/>
195 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
196 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
197 </criteria>
198 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
199 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
200 </criteria>
201 <criterion comment="This test is intended to evaluate to false." test_ref="oval:org.mitre.oval.test:tst:966"/>
202 </criteria>
203 </criteria>
204 </definition>
205 </definitions>
206 <tests>
207 <variable_test id="oval:org.mitre.oval.test:tst:123" version="1" comment="This test is intended to evaluate to true." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
208 <object object_ref="oval:org.mitre.oval.test:obj:996"/>
209 <state state_ref="oval:org.mitre.oval.test:ste:195"/>
210 </variable_test>
211 <variable_test id="oval:org.mitre.oval.test:tst:966" version="1" comment="This test is intended to evaluate to false." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
212 <object object_ref="oval:org.mitre.oval.test:obj:996"/>
213 <state state_ref="oval:org.mitre.oval.test:ste:906"/>
214 </variable_test>
215 </tests>
216 <objects>
217 <variable_object id="oval:org.mitre.oval.test:obj:996" version="1" comment="This variable_object references the boolean value 'true'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
218 <var_ref>oval:org.mitre.oval.test:var:814</var_ref>
219 </variable_object>
220 </objects>
221 <states>
222 <variable_state id="oval:org.mitre.oval.test:ste:195" version="1" comment="This state represents a variable_object where the boolean value is equal to 'true'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
223 <value datatype="boolean">true</value>
224 </variable_state>
225 <variable_state id="oval:org.mitre.oval.test:ste:906" version="1" comment="This state represents a variable_object where the boolean value is equal to 'false'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
226 <value datatype="boolean">false</value>
227 </variable_state>
228 </states>
229 <variables>
230 <constant_variable id="oval:org.mitre.oval.test:var:814" version="1" comment="This constant_variable represents the boolean value 'true'." datatype="boolean">
231 <value>true</value>
232 </constant_variable>
233 </variables>
234 </oval_definitions>