| 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:168" version="3" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the ind-def:textfilecontent_test is properly supported.</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:textfilecontent_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 textfilecontent_object with a path, filename, and line is supported." test_ref="oval:org.mitre.oval.test:tst:645"/> |
| 19 | <criterion comment="Test that the textfilecontent_object with a path pattern match, filename, and line is supported." test_ref="oval:org.mitre.oval.test:tst:538"/> |
| 20 | <criterion comment="Test that the textfilecontent_object with a path, filename pattern match, and line is supported." test_ref="oval:org.mitre.oval.test:tst:836"/> |
| 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:476"/> |
| 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:184"/> |
| 23 | <criterion comment="Test that the recurse_direction behavior is supported." test_ref="oval:org.mitre.oval.test:tst:394"/> |
| 24 | </criteria> |
| 25 | </definition> |
| 26 | </definitions> |
| 27 | <tests> |
| 28 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:645" version="1" comment="Test that the textfilecontent_object with a path, filename, and line is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 29 | <object object_ref="oval:org.mitre.oval.test:obj:845"/> |
| 30 | <state state_ref="oval:org.mitre.oval.test:ste:891"/> |
| 31 | </textfilecontent_test> |
| 32 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:538" version="2" comment="Test that the textfilecontent_object with a path pattern match, filename, and line is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 33 | <object object_ref="oval:org.mitre.oval.test:obj:158"/> |
| 34 | <state state_ref="oval:org.mitre.oval.test:ste:891"/> |
| 35 | </textfilecontent_test> |
| 36 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:836" version="1" comment="Test that the textfilecontent_object with a path, filename pattern match, and line is supported." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 37 | <object object_ref="oval:org.mitre.oval.test:obj:731"/> |
| 38 | <state state_ref="oval:org.mitre.oval.test:ste:891"/> |
| 39 | </textfilecontent_test> |
| 40 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:476" 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"> |
| 41 | <object object_ref="oval:org.mitre.oval.test:obj:733"/> |
| 42 | <state state_ref="oval:org.mitre.oval.test:ste:891"/> |
| 43 | </textfilecontent_test> |
| 44 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:184" 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"> |
| 45 | <object object_ref="oval:org.mitre.oval.test:obj:392"/> |
| 46 | <state state_ref="oval:org.mitre.oval.test:ste:891"/> |
| 47 | </textfilecontent_test> |
| 48 | <textfilecontent_test id="oval:org.mitre.oval.test:tst:394" 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"> |
| 49 | <object object_ref="oval:org.mitre.oval.test:obj:800"/> |
| 50 | <state state_ref="oval:org.mitre.oval.test:ste:156"/> |
| 51 | </textfilecontent_test> |
| 52 | </tests> |
| 53 | <objects> |
| 54 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:845" version="1" comment="This textfilecontent_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt/txtfile' and the filename equals 'build.win32.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 55 | <path>/tmp/support/txt/txtfile</path> |
| 56 | <filename>build.win32.txt</filename> |
| 57 | <line operation="pattern match">OVAL Interpreter</line> |
| 58 | </textfilecontent_object> |
| 59 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:158" version="2" comment="This textfilecontent_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path matches the regular expression '^/tmp/support.+' and the filename equals 'build.win32.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 60 | <path operation="pattern match">^/tmp/support.+</path> |
| 61 | <filename>build.win32.txt</filename> |
| 62 | <line operation="pattern match">OVAL Interpreter</line> |
| 63 | </textfilecontent_object> |
| 64 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:731" version="1" comment="This textfilecontent_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support/txt/txtfile' and the filename matches the regular expression 'build.win[0-9]{2}\.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 65 | <path>/tmp/support/txt/txtfile</path> |
| 66 | <filename operation="pattern match">build.win[0-9]{2}\.txt</filename> |
| 67 | <line operation="pattern match">OVAL Interpreter</line> |
| 68 | </textfilecontent_object> |
| 69 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:733" version="1" comment="This textfilecontent_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, and the filename equals 'build.win32.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 70 | <behaviors max_depth="1" recurse_direction="down"/> |
| 71 | <path>/tmp/support/txt</path> |
| 72 | <filename>build.win32.txt</filename> |
| 73 | <line operation="pattern match">OVAL Interpreter</line> |
| 74 | </textfilecontent_object> |
| 75 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:392" version="1" comment="This textfilecontent_object retrieves all lines that match the regular expression 'OVAL Interpreter' in the file where the path equals '/tmp/support', recursing down infinitely, and the filename equals 'build.win32.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 76 | <behaviors max_depth="-1" recurse_direction="down"/> |
| 77 | <path>/tmp/support</path> |
| 78 | <filename>build.win32.txt</filename> |
| 79 | <line operation="pattern match">OVAL Interpreter</line> |
| 80 | </textfilecontent_object> |
| 81 | <textfilecontent_object id="oval:org.mitre.oval.test:obj:800" version="1" comment="This textfilecontent_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, and the filename equals 'build.win32.txt'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 82 | <behaviors max_depth="1" recurse_direction="up"/> |
| 83 | <path>/tmp/support/txt/txtfile/subtxtfile</path> |
| 84 | <filename>build.win32.txt</filename> |
| 85 | <line operation="pattern match">OVAL Interpreter</line> |
| 86 | </textfilecontent_object> |
| 87 | </objects> |
| 88 | <states> |
| 89 | <textfilecontent_state id="oval:org.mitre.oval.test:ste:891" version="1" comment="This textfilecontent_state represents a textfilecontent_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', and line matches the regular expression 'OVAL Interpreter'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 90 | <path>/tmp/support/txt/txtfile</path> |
| 91 | <filename>build.win32.txt</filename> |
| 92 | <line operation="pattern match">OVAL Interpreter</line> |
| 93 | </textfilecontent_state> |
| 94 | <textfilecontent_state id="oval:org.mitre.oval.test:ste:156" version="2" comment="This textfilecontent_state represents a textfilecontent_item where the path equals '/tmp/support/txt/txtfile', filename equals 'build.win32.txt', and line matches the regular expression 'OVAL Interpreter'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 95 | <path>/tmp/support/txt/txtfile</path> |
| 96 | <filename>build.win32.txt</filename> |
| 97 | <line operation="pattern match">OVAL Interpreter</line> |
| 98 | </textfilecontent_state> |
| 99 | </states> |
| 100 | </oval_definitions> |