File: oval-def_count_function.xml

package info (click to toggle)
openscap 1.0.9-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 129,588 kB
  • ctags: 26,325
  • sloc: xml: 611,156; ansic: 90,367; sh: 26,693; makefile: 2,463; python: 804; perl: 445; cpp: 123
file content (121 lines) | stat: -rw-r--r-- 8,904 bytes parent folder | download | duplicates (6)
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
<?xml version="1.0" encoding="UTF-8"?>
<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">
  <generator>
    <oval:schema_version>5.10.1</oval:schema_version>
    <oval:timestamp>2012-09-05T11:46:00-04:00</oval:timestamp>
  </generator>
  <definitions>
    <definition id="oval:org.mitre.oval.test:def:65" version="1" class="miscellaneous">
      <metadata>
        <title>Evaluate to true if the count function is properly supported</title>
        <description>This definition is intended to evaluate to true if the interpreter properly supports the count function.</description>
      </metadata>
      <criteria operator="AND">
        <criterion comment="Test that the count function is supported with two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:291"/>
        <criterion comment="Test that the count function is supported with two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:722"/>
        <criterion comment="Test that the count function is supported with more than two components each of which return a single value." test_ref="oval:org.mitre.oval.test:tst:614"/>
        <criterion comment="Test that the count function is supported with more than two components each of which return multiple values." test_ref="oval:org.mitre.oval.test:tst:333"/>
      </criteria>
    </definition>
  </definitions>
  <tests>
    <variable_test id="oval:org.mitre.oval.test:tst:291" version="1" comment="Test that the count 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">
      <object object_ref="oval:org.mitre.oval.test:obj:770"/>
      <state state_ref="oval:org.mitre.oval.test:ste:244"/>
    </variable_test>
    <variable_test id="oval:org.mitre.oval.test:tst:722" version="1" comment="Test that the count 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">
      <object object_ref="oval:org.mitre.oval.test:obj:793"/>
      <state state_ref="oval:org.mitre.oval.test:ste:796"/>
    </variable_test>
    <variable_test id="oval:org.mitre.oval.test:tst:614" version="1" comment="Test that the count 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">
      <object object_ref="oval:org.mitre.oval.test:obj:782"/>
      <state state_ref="oval:org.mitre.oval.test:ste:737"/>
    </variable_test>
    <variable_test id="oval:org.mitre.oval.test:tst:333" version="1" comment="Test that the count 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">
      <object object_ref="oval:org.mitre.oval.test:obj:652"/>
      <state state_ref="oval:org.mitre.oval.test:ste:68"/>
    </variable_test>
  </tests>
  <objects>
    <variable_object id="oval:org.mitre.oval.test:obj:770" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval.test:var:694</var_ref>
    </variable_object>
    <variable_object id="oval:org.mitre.oval.test:obj:793" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval.test:var:885</var_ref>
    </variable_object>
    <variable_object id="oval:org.mitre.oval.test:obj:782" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval.test:var:689</var_ref>
    </variable_object>
    <variable_object id="oval:org.mitre.oval.test:obj:652" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval.test:var:479</var_ref>
    </variable_object>
  </objects>
  <states>
    <variable_state id="oval:org.mitre.oval.test:ste:244" version="1" comment="The int 2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <value>2</value>
    </variable_state>
    <variable_state id="oval:org.mitre.oval.test:ste:796" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <value var_ref="oval:org.mitre.oval.test:var:322" var_check="only one"/>
    </variable_state>
    <variable_state id="oval:org.mitre.oval.test:ste:737" version="1" comment="The int 3'" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <value>3</value>
    </variable_state>
    <variable_state id="oval:org.mitre.oval.test:ste:68" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <value var_ref="oval:org.mitre.oval.test:var:875" var_check="only one"/>
    </variable_state>
  </states>
  <variables>
    <local_variable id="oval:org.mitre.oval.test:var:694" version="1" comment="Applying the count function to the strings 'abc' and 'def'." datatype="int">
      <count>
        <literal_component datatype="string">abc</literal_component>
        <literal_component datatype="string">def</literal_component>
      </count>
    </local_variable>
    <local_variable id="oval:org.mitre.oval.test:var:885" version="1" comment="Applying the count function to two multi-value variables." datatype="int">
      <count>
        <variable_component var_ref="oval:org.mitre.oval.test:var:443"/>
        <variable_component var_ref="oval:org.mitre.oval.test:var:711"/>
      </count>
    </local_variable>
    <local_variable id="oval:org.mitre.oval.test:var:689" version="1" comment="Applying the count function to the strings 'abc', 'def', 'ghi'." datatype="int">
      <count>
        <literal_component datatype="string">abc</literal_component>
        <literal_component datatype="string">def</literal_component>
        <literal_component datatype="string">ghi</literal_component>
      </count>
    </local_variable>
    <local_variable id="oval:org.mitre.oval.test:var:479" version="1" comment="Applying the count to three multi-value variables." datatype="int">
      <count>
        <variable_component var_ref="oval:org.mitre.oval.test:var:452"/>
        <variable_component var_ref="oval:org.mitre.oval.test:var:149"/>
        <variable_component var_ref="oval:org.mitre.oval.test:var:722"/>
      </count>
    </local_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:443" version="1" comment="The strings 'abc' and 'def'" datatype="string">
      <value>abc</value>
      <value>def</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:711" version="1" comment="The strings '123' and '456'" datatype="string">
      <value>123</value>
      <value>456</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:452" version="1" comment="The strings 'abc' and 'def'" datatype="string">
      <value>abc</value>
      <value>def</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:149" version="1" comment="The strings '123' and '456'" datatype="string">
      <value>123</value>
      <value>456</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:722" version="1" comment="The strings 'uvw' and 'xyz'" datatype="string">
      <value>uvw</value>
      <value>xyz</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:322" version="1" comment="The results of the count function on two multi-value variables." datatype="int">
      <value>4</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:875" version="1" comment="The results of the count function on three multi-value-variables." datatype="int">
      <value>6</value>
    </constant_variable>
  </variables>
</oval_definitions>