Debian Codegraph @

tests/mitre/oval-def_concat_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 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-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" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-05-21T11:46:00-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:65" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the concat function is properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports the concat function.</description>
13 </metadata>
14 <criteria operator="AND">
15 <criterion comment="Test that the concat function is supported with two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:291"/>
16 <criterion comment="Test that the concat function is supported with two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:722"/>
17 <criterion comment="Test that the concat function is supported with more than two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:614"/>
18 <criterion comment="Test that the concat function is supported with more than two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:333"/>
19 </criteria>
20 </definition>
21 </definitions>
22 <tests>
23 <variable_test id="oval:org.mitre.oval.test:tst:291" version="1" comment="Test that the concat function is supported with two components each of which return a single value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
24 <object object_ref="oval:org.mitre.oval.test:obj:770"/>
25 <state state_ref="oval:org.mitre.oval.test:ste:244"/>
26 </variable_test>
27 <variable_test id="oval:org.mitre.oval.test:tst:722" version="1" comment="Test that the concat function is supported with two components each of which return multiple values." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
28 <object object_ref="oval:org.mitre.oval.test:obj:793"/>
29 <state state_ref="oval:org.mitre.oval.test:ste:796"/>
30 </variable_test>
31 <variable_test id="oval:org.mitre.oval.test:tst:614" version="1" comment="Test that the concat function is supported with more than two components each of which return a single value." 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:782"/>
33 <state state_ref="oval:org.mitre.oval.test:ste:737"/>
34 </variable_test>
35 <variable_test id="oval:org.mitre.oval.test:tst:333" version="1" comment="Test that the concat function is supported with more than two components each of which return multiple 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:652"/>
37 <state state_ref="oval:org.mitre.oval.test:ste:68"/>
38 </variable_test>
39 </tests>
40 <objects>
41 <variable_object id="oval:org.mitre.oval.test:obj:770" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
42 <var_ref>oval:org.mitre.oval.test:var:694</var_ref>
43 </variable_object>
44 <variable_object id="oval:org.mitre.oval.test:obj:793" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
45 <var_ref>oval:org.mitre.oval.test:var:885</var_ref>
46 </variable_object>
47 <variable_object id="oval:org.mitre.oval.test:obj:782" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
48 <var_ref>oval:org.mitre.oval.test:var:689</var_ref>
49 </variable_object>
50 <variable_object id="oval:org.mitre.oval.test:obj:652" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
51 <var_ref>oval:org.mitre.oval.test:var:479</var_ref>
52 </variable_object>
53 </objects>
54 <states>
55 <variable_state id="oval:org.mitre.oval.test:ste:244" version="1" comment="The string 'abcdef'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
56 <value>abcdef</value>
57 </variable_state>
58 <variable_state id="oval:org.mitre.oval.test:ste:796" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
59 <value var_ref="oval:org.mitre.oval.test:var:322" var_check="only one"/>
60 </variable_state>
61 <variable_state id="oval:org.mitre.oval.test:ste:737" version="1" comment="The string 'abcdefghi'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
62 <value>abcdefghi</value>
63 </variable_state>
64 <variable_state id="oval:org.mitre.oval.test:ste:68" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
65 <value var_ref="oval:org.mitre.oval.test:var:875" var_check="only one"/>
66 </variable_state>
67 </states>
68 <variables>
69 <local_variable id="oval:org.mitre.oval.test:var:694" version="1" comment="Applying the concat function to the strings 'abc' and 'def'." datatype="string">
70 <concat>
71 <literal_component datatype="string">abc</literal_component>
72 <literal_component datatype="string">def</literal_component>
73 </concat>
74 </local_variable>
75 <local_variable id="oval:org.mitre.oval.test:var:885" version="1" comment="Applying the concat function to two multi-value variables." datatype="string">
76 <concat>
77 <variable_component var_ref="oval:org.mitre.oval.test:var:443"/>
78 <variable_component var_ref="oval:org.mitre.oval.test:var:711"/>
79 </concat>
80 </local_variable>
81 <local_variable id="oval:org.mitre.oval.test:var:689" version="1" comment="Applying the concat function to the strings 'abc', 'def', 'ghi'." datatype="string">
82 <concat>
83 <literal_component datatype="string">abc</literal_component>
84 <literal_component datatype="string">def</literal_component>
85 <literal_component datatype="string">ghi</literal_component>
86 </concat>
87 </local_variable>
88 <local_variable id="oval:org.mitre.oval.test:var:479" version="1" comment="Applying the concat to three multi-value variables." datatype="string">
89 <concat>
90 <variable_component var_ref="oval:org.mitre.oval.test:var:452"/>
91 <variable_component var_ref="oval:org.mitre.oval.test:var:149"/>
92 <variable_component var_ref="oval:org.mitre.oval.test:var:722"/>
93 </concat>
94 </local_variable>
95 <constant_variable id="oval:org.mitre.oval.test:var:443" version="1" comment="The strings 'abc' and 'def'" datatype="string">
96 <value>abc</value>
97 <value>def</value>
98 </constant_variable>
99 <constant_variable id="oval:org.mitre.oval.test:var:711" version="1" comment="The strings '123' and '456'" datatype="string">
100 <value>123</value>
101 <value>456</value>
102 </constant_variable>
103 <constant_variable id="oval:org.mitre.oval.test:var:452" version="1" comment="The strings 'abc' and 'def'" datatype="string">
104 <value>abc</value>
105 <value>def</value>
106 </constant_variable>
107 <constant_variable id="oval:org.mitre.oval.test:var:149" version="1" comment="The strings '123' and '456'" datatype="string">
108 <value>123</value>
109 <value>456</value>
110 </constant_variable>
111 <constant_variable id="oval:org.mitre.oval.test:var:722" version="1" comment="The strings 'uvw' and 'xyz'" datatype="string">
112 <value>uvw</value>
113 <value>xyz</value>
114 </constant_variable>
115 <constant_variable id="oval:org.mitre.oval.test:var:322" version="1" comment="The results of the concat function on two multi-value variables." datatype="string">
116 <value>abc123</value>
117 <value>abc456</value>
118 <value>def123</value>
119 <value>def456</value>
120 </constant_variable>
121 <constant_variable id="oval:org.mitre.oval.test:var:875" version="1" comment="The results of the concat function on three multi-value-variables." datatype="string">
122 <value>abc123uvw</value>
123 <value>abc123xyz</value>
124 <value>abc456uvw</value>
125 <value>abc456xyz</value>
126 <value>def123uvw</value>
127 <value>def123xyz</value>
128 <value>def456uvw</value>
129 <value>def456xyz</value>
130 </constant_variable>
131 </variables>
132 </oval_definitions>