Debian Codegraph @

tests/mitre/oval-def_regex_capture_function.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#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-06-11T10:22:26-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:781" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the oval-def:regex_capture test is properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports the oval-def:regex_capture function.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criterion comment="This test takes the result of applying the regex_capture pattern '(i..)+' to the string 'mississippi', and compares it to the string 'ipp'." test_ref="oval:org.mitre.oval.test:tst:265"/>
16 <criterion comment="This test takes the result of applying the regex_capture pattern 'abc(.*)xyz' to the string 'abchello
17 xyz', and compares it to a blank string (no match)." test_ref="oval:org.mitre.oval.test:tst:511"/>
18 <criterion comment="This test takes the result of applying the regex_capture pattern 'abc.*xyz' to the string 'abchelloxyz', and compares it to a blank string (no match)." test_ref="oval:org.mitre.oval.test:tst:108"/>
19 <criterion comment="This test takes the result of applying a the regex_capture pattern '(i(..))+' to a complex variable, and compares it to a multi-valued string." test_ref="oval:org.mitre.oval.test:tst:242"/>
20 </criteria>
21 </definition>
22 </definitions>
23 <tests>
24 <variable_test id="oval:org.mitre.oval.test:tst:265" version="1" comment="This test takes the result of applying the regex_capture pattern '(i..)+' to the string 'mississippi', and compares it to the string 'ipp'." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
25 <object object_ref="oval:org.mitre.oval.test:obj:320"/>
26 <state state_ref="oval:org.mitre.oval.test:ste:3"/>
27 </variable_test>
28 <variable_test id="oval:org.mitre.oval.test:tst:511" version="1" comment="This test takes the result of applying the regex_capture pattern 'abc(.*)xyz' to the string 'abchello
29 xyz', and compares it to a blank string (no match)." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <object object_ref="oval:org.mitre.oval.test:obj:420"/>
31 <state state_ref="oval:org.mitre.oval.test:ste:546"/>
32 </variable_test>
33 <variable_test id="oval:org.mitre.oval.test:tst:108" version="1" comment="This test takes the result of applying the regex_capture pattern 'abc.*xyz' to the string 'abchelloxyz', and compares it to a blank string (no match)." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
34 <object object_ref="oval:org.mitre.oval.test:obj:28"/>
35 <state state_ref="oval:org.mitre.oval.test:ste:167"/>
36 </variable_test>
37 <variable_test id="oval:org.mitre.oval.test:tst:242" version="1" comment="This test takes the result of applying a the regex_capture pattern '(i(..))+' to a complex variable, and compares it to a multi-valued string." check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
38 <object object_ref="oval:org.mitre.oval.test:obj:264"/>
39 <state state_ref="oval:org.mitre.oval.test:ste:104"/>
40 </variable_test>
41 </tests>
42 <objects>
43 <variable_object id="oval:org.mitre.oval.test:obj:320" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
44 <var_ref>oval:org.mitre.oval.test:var:637</var_ref>
45 </variable_object>
46 <variable_object id="oval:org.mitre.oval.test:obj:420" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
47 <var_ref>oval:org.mitre.oval.test:var:956</var_ref>
48 </variable_object>
49 <variable_object id="oval:org.mitre.oval.test:obj:28" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
50 <var_ref>oval:org.mitre.oval.test:var:1001</var_ref>
51 </variable_object>
52 <variable_object id="oval:org.mitre.oval.test:obj:264" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
53 <var_ref>oval:org.mitre.oval.test:var:890</var_ref>
54 </variable_object>
55 </objects>
56 <states>
57 <variable_state id="oval:org.mitre.oval.test:ste:3" version="1" comment="This state represents a string with the value 'ipp'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
58 <value>ipp</value>
59 </variable_state>
60 <variable_state id="oval:org.mitre.oval.test:ste:546" version="1" comment="This state represents an empty string." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
61 <value/>
62 </variable_state>
63 <variable_state id="oval:org.mitre.oval.test:ste:167" version="1" comment="This state represents an empty string." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
64 <value/>
65 </variable_state>
66 <variable_state id="oval:org.mitre.oval.test:ste:104" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
67 <value var_ref="oval:org.mitre.oval.test:var:375" var_check="only one"/>
68 </variable_state>
69 </states>
70 <variables>
71 <local_variable id="oval:org.mitre.oval.test:var:637" version="1" comment="A regex_capture object with pattern '(i..)+' applied to string 'mississippi'." datatype="string">
72 <regex_capture pattern="(i..)+">
73 <literal_component datatype="string">mississippi</literal_component>
74 </regex_capture>
75 </local_variable>
76 <local_variable id="oval:org.mitre.oval.test:var:956" version="1" comment="A regex_capture object with pattern 'abc(.*)xyz' applied to string 'abchello
77 xyz'." datatype="string">
78 <regex_capture pattern="abc(.*)xyz">
79 <literal_component datatype="string">abchello
80 xyz</literal_component>
81 </regex_capture>
82 </local_variable>
83 <local_variable id="oval:org.mitre.oval.test:var:1001" version="1" comment="A regex_capture object with pattern 'abc.*xyz' applied to string 'abchelloxyz'." datatype="string">
84 <regex_capture pattern="abc.*xyz">
85 <literal_component datatype="string">abchelloxyz</literal_component>
86 </regex_capture>
87 </local_variable>
88 <local_variable id="oval:org.mitre.oval.test:var:890" version="1" comment="A regex_capture object with pattern '(i(..))+' applied to a multi-valued variable." datatype="string">
89 <regex_capture pattern="(i(..))+">
90 <variable_component var_ref="oval:org.mitre.oval.test:var:146"/>
91 </regex_capture>
92 </local_variable>
93 <constant_variable id="oval:org.mitre.oval.test:var:146" version="1" comment="A multi-valued variable." datatype="string">
94 <value>mississippi</value>
95 <value>ippississim</value>
96 <value>xxiyyizz</value>
97 </constant_variable>
98 <constant_variable id="oval:org.mitre.oval.test:var:375" version="1" comment="A multi-valued variable." datatype="string">
99 <value>ipp</value>
100 <value>iss</value>
101 <value>izz</value>
102 </constant_variable>
103 </variables>
104 </oval_definitions>