| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-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" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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-09-02T17:05:02-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:48" version="3" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the ind-def:textfilecontent54_test is properly supported.</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:textfilecontent54_test.</description> |
| 13 | </metadata> |
| 14 | <notes> |
| 15 | <note>It is important to note that the values used in this test definition are specific to a particular machine, and may not necessarily apply to your system. As a result, in order to have the definition return a result of 'true', you must either change these values to the ones found on your particular system, or you must configure your system to use these values.</note> |
| 16 | </notes> |
| 17 | <criteria operator="AND"> |
| 18 | <criterion comment="Test that the textfilecontent54_object with a path, filename, line, and instance is supported." test_ref="oval:org.mitre.oval.test:tst:688"/> |
| 19 | <criterion comment="Test that the textfilecontent54_object with a path pattern match, filename, line, and instance is supported." test_ref="oval:org.mitre.oval.test:tst:497"/> |
| 20 | <criterion comment="Test that the textfilecontent54_object with a path, filename pattern match, line, and instance is supported." test_ref="oval:org.mitre.oval.test:tst:921"/> |
| 21 | <criterion comment="Test that the max_depth behavior is supported for a limited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:258"/> |
| 22 | <criterion comment="Test that the max_depth behavior is supported for a unlimited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:96"/> |
| 23 | <criterion comment="Test that the recurse direction behavior is supported." test_ref="oval:org.mitre.oval.test:tst:466"/> |
| 24 | <criterion comment="Test that the ignore_case behavior is supported." test_ref="oval:org.mitre.oval.test:tst:910"/> |
| 25 | <criterion comment="Test that the singleline behavior is supported." test_ref="oval:org.mitre.oval.test:tst:23"/> |
| 26 | <criterion comment="Test that the multiline behavior is supported." test_ref="oval:org.mitre.oval.test:tst:110"/> |
| 27 | </criteria> |
| 28 | </definition> |
| 29 | </definitions> |
| 30 | <tests> |
| 31 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:688" version="1" comment="Test that the textfilecontent54_object with a path, filename, line, and instance is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 32 | <object object_ref="oval:org.mitre.oval.test:obj:409"/> |
| 33 | <state state_ref="oval:org.mitre.oval.test:ste:237"/> |
| 34 | </textfilecontent54_test> |
| 35 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:497" version="2" comment="Test that the textfilecontent54_object with a path pattern match, filename, line, and instance is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 36 | <object object_ref="oval:org.mitre.oval.test:obj:910"/> |
| 37 | <state state_ref="oval:org.mitre.oval.test:ste:237"/> |
| 38 | </textfilecontent54_test> |
| 39 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:921" version="1" comment="Test that the textfilecontent54_object with a path, filename pattern match, line, and instance is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 40 | <object object_ref="oval:org.mitre.oval.test:obj:675"/> |
| 41 | <state state_ref="oval:org.mitre.oval.test:ste:237"/> |
| 42 | </textfilecontent54_test> |
| 43 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:258" version="1" comment="Test that the max_depth behavior is supported for a limited depth of recursion." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 44 | <object object_ref="oval:org.mitre.oval.test:obj:12"/> |
| 45 | <state state_ref="oval:org.mitre.oval.test:ste:237"/> |
| 46 | </textfilecontent54_test> |
| 47 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:96" version="1" comment="Test that the max_depth behavior is supported for a unlimited depth of recursion." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 48 | <object object_ref="oval:org.mitre.oval.test:obj:734"/> |
| 49 | <state state_ref="oval:org.mitre.oval.test:ste:237"/> |
| 50 | </textfilecontent54_test> |
| 51 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:466" version="2" comment="Test that the recurse direction behavior is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 52 | <object object_ref="oval:org.mitre.oval.test:obj:577"/> |
| 53 | <state state_ref="oval:org.mitre.oval.test:ste:697"/> |
| 54 | </textfilecontent54_test> |
| 55 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:910" version="1" comment="Test that the ignore_case behavior is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 56 | <object object_ref="oval:org.mitre.oval.test:obj:776"/> |
| 57 | <state state_ref="oval:org.mitre.oval.test:ste:812"/> |
| 58 | </textfilecontent54_test> |
| 59 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:23" version="1" comment="Test that the singleline behavior is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 60 | <object object_ref="oval:org.mitre.oval.test:obj:357"/> |
| 61 | <state state_ref="oval:org.mitre.oval.test:ste:397"/> |
| 62 | </textfilecontent54_test> |
| 63 | <textfilecontent54_test id="oval:org.mitre.oval.test:tst:110" version="1" comment="Test that the multiline behavior is supported." check_existence="none_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 64 | <object object_ref="oval:org.mitre.oval.test:obj:470"/> |
| 65 | </textfilecontent54_test> |
| 66 | </tests> |
| 67 | <objects> |
| 68 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:409" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt/txtfile', the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 69 | <path>/tmp/support/txt/txtfile</path> |
| 70 | <filename>build.win32.txt</filename> |
| 71 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 72 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 73 | </textfilecontent54_object> |
| 74 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:910" version="2" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path matches the regular expression '^/tmp/support.+', the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 75 | <path operation="pattern match">^/tmp/support.+</path> |
| 76 | <filename>build.win32.txt</filename> |
| 77 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 78 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 79 | </textfilecontent54_object> |
| 80 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:675" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt/txtfile', the filename matches the regular expression 'build.win[0-9]{2}\.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 81 | <path>/tmp/support/txt/txtfile</path> |
| 82 | <filename operation="pattern match">build.win[0-9]{2}\.txt</filename> |
| 83 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 84 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 85 | </textfilecontent54_object> |
| 86 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:12" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt', recursing down one level, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 87 | <behaviors max_depth="1" recurse_direction="down"/> |
| 88 | <path>/tmp/support/txt</path> |
| 89 | <filename>build.win32.txt</filename> |
| 90 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 91 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 92 | </textfilecontent54_object> |
| 93 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:734" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support', recursing down infinitely, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 94 | <behaviors max_depth="-1" recurse_direction="down"/> |
| 95 | <path>/tmp/support</path> |
| 96 | <filename>build.win32.txt</filename> |
| 97 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 98 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 99 | </textfilecontent54_object> |
| 100 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:577" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt/txtfile/subtxtfile', recursing up one level, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 101 | <behaviors max_depth="1" recurse_direction="up"/> |
| 102 | <path>/tmp/support/txt/txtfile/subtxtfile</path> |
| 103 | <filename>build.win32.txt</filename> |
| 104 | <pattern operation="pattern match">OVAL Interpreter</pattern> |
| 105 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 106 | </textfilecontent54_object> |
| 107 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:776" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'oval interpreter', where case is ignored, in the file where the path equals '/tmp/support/txt/txtfile', recursing up one level, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 108 | <behaviors ignore_case="true"/> |
| 109 | <path>/tmp/support/txt/txtfile</path> |
| 110 | <filename>build.win32.txt</filename> |
| 111 | <pattern operation="pattern match">oval interpreter</pattern> |
| 112 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 113 | </textfilecontent54_object> |
| 114 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:357" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter', where '.' matches the newline character, in the file where the path equals '/tmp/support/txt/txtfile', recursing up one level, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 115 | <behaviors singleline="true" multiline="false"/> |
| 116 | <path>/tmp/support/txt/txtfile</path> |
| 117 | <filename>build.win32.txt</filename> |
| 118 | <pattern operation="pattern match">To report a problem.*definitions file.</pattern> |
| 119 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 120 | </textfilecontent54_object> |
| 121 | <textfilecontent54_object id="oval:org.mitre.oval.test:obj:470" version="1" comment="This textfilecontent54_object retrieves all lines that match the regular expression 'OVAL Interpreter', where the input string is treated as multiple lines, in the file where the path equals '/tmp/support/txt/txtfile', recursing up one level, the filename equals 'build.win32.txt', and the instance is greater than or equal to '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 122 | <behaviors singleline="false" multiline="true"/> |
| 123 | <path>/tmp/support/txt/txtfile</path> |
| 124 | <filename>build.win32.txt</filename> |
| 125 | <pattern operation="pattern match">To report a problem.*OVAL Definitions document that was used.</pattern> |
| 126 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 127 | </textfilecontent54_object> |
| 128 | </objects> |
| 129 | <states> |
| 130 | <textfilecontent54_state id="oval:org.mitre.oval.test:ste:237" version="1" comment="This textfilecontent54_state represents a textfilecontent54_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', pattern matches the regular expression 'OVAL Interpreter', instance is greater than or equal to '1', and text equals '^OVAL Interpreter$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 131 | <path>/tmp/support/txt/txtfile</path> |
| 132 | <filename>build.win32.txt</filename> |
| 133 | <pattern operation="pattern match">^OVAL Interpreter$</pattern> |
| 134 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 135 | <text>OVAL Interpreter</text> |
| 136 | </textfilecontent54_state> |
| 137 | <textfilecontent54_state id="oval:org.mitre.oval.test:ste:697" version="2" comment="This textfilecontent54_state represents a textfilecontent54_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', pattern matches the regular expression 'OVAL Interpreter', instance is greater than or equal to '1', and text equals 'OVAL Interpreter'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 138 | <path>/tmp/support/txt/txtfile</path> |
| 139 | <filename>build.win32.txt</filename> |
| 140 | <pattern operation="pattern match">^OVAL Interpreter$</pattern> |
| 141 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 142 | <text>OVAL Interpreter</text> |
| 143 | </textfilecontent54_state> |
| 144 | <textfilecontent54_state id="oval:org.mitre.oval.test:ste:812" version="1" comment="This textfilecontent54_state represents a textfilecontent54_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', pattern matches the regular expression 'oval interpreter', instance is greater than or equal to '1', and text matches the regular expression '(OVAL Interpreter|OVAL INTERPRETER)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 145 | <path>/tmp/support/txt/txtfile</path> |
| 146 | <filename>build.win32.txt</filename> |
| 147 | <pattern operation="pattern match">^oval interpreter$</pattern> |
| 148 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 149 | <text operation="pattern match">(OVAL Interpreter|OVAL INTERPRETER)</text> |
| 150 | </textfilecontent54_state> |
| 151 | <textfilecontent54_state id="oval:org.mitre.oval.test:ste:397" version="1" comment="This textfilecontent54_state represents a textfilecontent54_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', pattern matches the regular expression 'To report a problem.*definitions file.', instance is greater than or equal to '1', and text matches the regular expression 'OVAL Definition Interpreter'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 152 | <path>/tmp/support/txt/txtfile</path> |
| 153 | <filename>build.win32.txt</filename> |
| 154 | <pattern operation="pattern match">^To report a problem.*definitions file.$</pattern> |
| 155 | <instance datatype="int" operation="greater than or equal">1</instance> |
| 156 | <text operation="pattern match">OVAL Definition Interpreter</text> |
| 157 | </textfilecontent54_state> |
| 158 | </states> |
| 159 | </oval_definitions> |