| 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-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:709" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the boolean datatype is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the boolean datatype and all of its valid operations.</description> |
| 13 | </metadata> |
| 14 | <criteria operator="AND"> |
| 15 | <criteria operator="AND" comment="True if the equals operation is supported."> |
| 16 | <criterion comment="Test that the 'equals' operation is supported with two equal boolean values." test_ref="oval:org.mitre.oval.test:tst:687"/> |
| 17 | <criterion negate="true" comment="Tests that the 'equals' operation is supported with two unequal boolean values." test_ref="oval:org.mitre.oval.test:tst:59"/> |
| 18 | <criterion comment="Test that the 'equals' operation is supported with two equal boolean values that use different formats." test_ref="oval:org.mitre.oval.test:tst:801"/> |
| 19 | <criterion negate="true" comment="Test that the 'equals' operation is supported with two unequal boolean values that use different formats." test_ref="oval:org.mitre.oval.test:tst:853"/> |
| 20 | </criteria> |
| 21 | <criteria operator="AND" comment="True if the not equal operation is supported."> |
| 22 | <criterion negate="true" comment="Test that the 'not equal' operation is supported with two equal boolean values." test_ref="oval:org.mitre.oval.test:tst:28"/> |
| 23 | <criterion comment="Test that the 'not equal' operation is supported with two unequal boolean values." test_ref="oval:org.mitre.oval.test:tst:951"/> |
| 24 | <criterion negate="true" comment="Test that the 'not equal' operation is supported with two equal boolean values that use different formats." test_ref="oval:org.mitre.oval.test:tst:964"/> |
| 25 | <criterion comment="Test that the 'not equal' operation is supported with two unequal boolean values that use different formats." test_ref="oval:org.mitre.oval.test:tst:207"/> |
| 26 | </criteria> |
| 27 | </criteria> |
| 28 | </definition> |
| 29 | </definitions> |
| 30 | <tests> |
| 31 | <variable_test id="oval:org.mitre.oval.test:tst:687" version="1" comment="Test that the 'equals' operation is supported with two equal boolean values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 32 | <object object_ref="oval:org.mitre.oval.test:obj:595"/> |
| 33 | <state state_ref="oval:org.mitre.oval.test:ste:218"/> |
| 34 | </variable_test> |
| 35 | <variable_test id="oval:org.mitre.oval.test:tst:59" version="1" comment="Tests that the 'equals' operation is supported with two unequal boolean values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 36 | <object object_ref="oval:org.mitre.oval.test:obj:991"/> |
| 37 | <state state_ref="oval:org.mitre.oval.test:ste:469"/> |
| 38 | </variable_test> |
| 39 | <variable_test id="oval:org.mitre.oval.test:tst:801" version="1" comment="Test that the 'equals' operation is supported with two equal boolean values that use different formats." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 40 | <object object_ref="oval:org.mitre.oval.test:obj:827"/> |
| 41 | <state state_ref="oval:org.mitre.oval.test:ste:850"/> |
| 42 | </variable_test> |
| 43 | <variable_test id="oval:org.mitre.oval.test:tst:853" version="1" comment="Test that the 'equals' operation is supported with two unequal boolean values that use different formats." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 44 | <object object_ref="oval:org.mitre.oval.test:obj:722"/> |
| 45 | <state state_ref="oval:org.mitre.oval.test:ste:816"/> |
| 46 | </variable_test> |
| 47 | <variable_test id="oval:org.mitre.oval.test:tst:28" version="1" comment="Test that the 'not equal' operation is supported with two equal boolean values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 48 | <object object_ref="oval:org.mitre.oval.test:obj:595"/> |
| 49 | <state state_ref="oval:org.mitre.oval.test:ste:793"/> |
| 50 | </variable_test> |
| 51 | <variable_test id="oval:org.mitre.oval.test:tst:951" version="1" comment="Test that the 'not equal' operation is supported with two unequal boolean values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 52 | <object object_ref="oval:org.mitre.oval.test:obj:991"/> |
| 53 | <state state_ref="oval:org.mitre.oval.test:ste:621"/> |
| 54 | </variable_test> |
| 55 | <variable_test id="oval:org.mitre.oval.test:tst:964" version="1" comment="Test that the 'not equal' operation is supported with two equal boolean values that use different formats." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 56 | <object object_ref="oval:org.mitre.oval.test:obj:827"/> |
| 57 | <state state_ref="oval:org.mitre.oval.test:ste:313"/> |
| 58 | </variable_test> |
| 59 | <variable_test id="oval:org.mitre.oval.test:tst:207" version="1" comment="Test that the 'not equal' operation is supported with two unequal boolean values that use different formats." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 60 | <object object_ref="oval:org.mitre.oval.test:obj:722"/> |
| 61 | <state state_ref="oval:org.mitre.oval.test:ste:806"/> |
| 62 | </variable_test> |
| 63 | </tests> |
| 64 | <objects> |
| 65 | <variable_object id="oval:org.mitre.oval.test:obj:595" version="1" comment="This variable_object represents the boolean value 'true'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 66 | <var_ref>oval:org.mitre.oval.test:var:603</var_ref> |
| 67 | </variable_object> |
| 68 | <variable_object id="oval:org.mitre.oval.test:obj:991" version="1" comment="This variable_object represents the boolean value 'false'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 69 | <var_ref>oval:org.mitre.oval.test:var:463</var_ref> |
| 70 | </variable_object> |
| 71 | <variable_object id="oval:org.mitre.oval.test:obj:827" version="1" comment="This variable_object represents the boolean value '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 72 | <var_ref>oval:org.mitre.oval.test:var:893</var_ref> |
| 73 | </variable_object> |
| 74 | <variable_object id="oval:org.mitre.oval.test:obj:722" version="1" comment="This variable_object represents the boolean value '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 75 | <var_ref>oval:org.mitre.oval.test:var:334</var_ref> |
| 76 | </variable_object> |
| 77 | </objects> |
| 78 | <states> |
| 79 | <variable_state id="oval:org.mitre.oval.test:ste:218" version="1" comment="This variable_state represents a boolean value that is equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 80 | <value datatype="boolean">true</value> |
| 81 | </variable_state> |
| 82 | <variable_state id="oval:org.mitre.oval.test:ste:469" version="1" comment="This variable_state represents a boolean value that is equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 83 | <value datatype="boolean">true</value> |
| 84 | </variable_state> |
| 85 | <variable_state id="oval:org.mitre.oval.test:ste:850" version="1" comment="This variable_state represents a boolean value that is equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 86 | <value datatype="boolean">true</value> |
| 87 | </variable_state> |
| 88 | <variable_state id="oval:org.mitre.oval.test:ste:816" version="1" comment="This variable_state represents a boolean value that is equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 89 | <value datatype="boolean">true</value> |
| 90 | </variable_state> |
| 91 | <variable_state id="oval:org.mitre.oval.test:ste:793" version="1" comment="This variable_state represents a boolean value that is not equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 92 | <value datatype="boolean" operation="not equal">true</value> |
| 93 | </variable_state> |
| 94 | <variable_state id="oval:org.mitre.oval.test:ste:621" version="1" comment="This variable_state represents a boolean value that is not equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 95 | <value datatype="boolean" operation="not equal">true</value> |
| 96 | </variable_state> |
| 97 | <variable_state id="oval:org.mitre.oval.test:ste:313" version="1" comment="This variable_state represents a boolean value that is not equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 98 | <value datatype="boolean" operation="not equal">true</value> |
| 99 | </variable_state> |
| 100 | <variable_state id="oval:org.mitre.oval.test:ste:806" version="1" comment="This variable_state represents a boolean value that is not equal to 'true' or '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 101 | <value datatype="boolean" operation="not equal">true</value> |
| 102 | </variable_state> |
| 103 | </states> |
| 104 | <variables> |
| 105 | <constant_variable id="oval:org.mitre.oval.test:var:603" version="1" comment="This variable represents the boolean value 'true'." datatype="boolean"> |
| 106 | <value>true</value> |
| 107 | </constant_variable> |
| 108 | <constant_variable id="oval:org.mitre.oval.test:var:463" version="1" comment="This variable represents the boolean value 'false'." datatype="boolean"> |
| 109 | <value>false</value> |
| 110 | </constant_variable> |
| 111 | <constant_variable id="oval:org.mitre.oval.test:var:893" version="1" comment="This variable represents the boolean value '1'." datatype="boolean"> |
| 112 | <value>1</value> |
| 113 | </constant_variable> |
| 114 | <constant_variable id="oval:org.mitre.oval.test:var:334" version="1" comment="This variable represents the boolean value '0'." datatype="boolean"> |
| 115 | <value>0</value> |
| 116 | </constant_variable> |
| 117 | </variables> |
| 118 | </oval_definitions> |