forked from OpenSCAP/openscap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathind-def_textfilecontent54_test.xml
159 lines (159 loc) · 16.8 KB
/
ind-def_textfilecontent54_test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<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">
<generator>
<oval:schema_version>5.10.1</oval:schema_version>
<oval:timestamp>2009-09-02T17:05:02-05:00</oval:timestamp>
<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>
</generator>
<definitions>
<definition id="oval:org.mitre.oval.test:def:48" version="3" class="miscellaneous">
<metadata>
<title>Evaluate to true if the ind-def:textfilecontent54_test is properly supported.</title>
<description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:textfilecontent54_test.</description>
</metadata>
<notes>
<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>
</notes>
<criteria operator="AND">
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<criterion comment="Test that the recurse direction behavior is supported." test_ref="oval:org.mitre.oval.test:tst:466"/>
<criterion comment="Test that the ignore_case behavior is supported." test_ref="oval:org.mitre.oval.test:tst:910"/>
<criterion comment="Test that the singleline behavior is supported." test_ref="oval:org.mitre.oval.test:tst:23"/>
<criterion comment="Test that the multiline behavior is supported." test_ref="oval:org.mitre.oval.test:tst:110"/>
</criteria>
</definition>
</definitions>
<tests>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:409"/>
<state state_ref="oval:org.mitre.oval.test:ste:237"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:910"/>
<state state_ref="oval:org.mitre.oval.test:ste:237"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:675"/>
<state state_ref="oval:org.mitre.oval.test:ste:237"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:12"/>
<state state_ref="oval:org.mitre.oval.test:ste:237"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:734"/>
<state state_ref="oval:org.mitre.oval.test:ste:237"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:577"/>
<state state_ref="oval:org.mitre.oval.test:ste:697"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:776"/>
<state state_ref="oval:org.mitre.oval.test:ste:812"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:357"/>
<state state_ref="oval:org.mitre.oval.test:ste:397"/>
</textfilecontent54_test>
<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">
<object object_ref="oval:org.mitre.oval.test:obj:470"/>
</textfilecontent54_test>
</tests>
<objects>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<path operation="pattern match">^/tmp/support.+</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename operation="pattern match">build.win[0-9]{2}\.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors max_depth="1" recurse_direction="down"/>
<path>/tmp/support/txt</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors max_depth="-1" recurse_direction="down"/>
<path>/tmp/support</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors max_depth="1" recurse_direction="up"/>
<path>/tmp/support/txt/txtfile/subtxtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">OVAL Interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors ignore_case="true"/>
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">oval interpreter</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors singleline="true" multiline="false"/>
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">To report a problem.*definitions file.</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<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">
<behaviors singleline="false" multiline="true"/>
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">To report a problem.*OVAL Definitions document that was used.</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
</objects>
<states>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">^OVAL Interpreter$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<text>OVAL Interpreter</text>
</textfilecontent54_state>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">^OVAL Interpreter$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<text>OVAL Interpreter</text>
</textfilecontent54_state>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">^oval interpreter$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<text operation="pattern match">(OVAL Interpreter|OVAL INTERPRETER)</text>
</textfilecontent54_state>
<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">
<path>/tmp/support/txt/txtfile</path>
<filename>build.win32.txt</filename>
<pattern operation="pattern match">^To report a problem.*definitions file.$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<text operation="pattern match">OVAL Definition Interpreter</text>
</textfilecontent54_state>
</states>
</oval_definitions>