| 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 | |
| 4 | <generator> |
| 5 | <oval:schema_version>5.11</oval:schema_version> |
| 6 | <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 7 | </generator> |
| 8 | |
| 9 | <definitions> |
| 10 | <definition id="oval:x:def:167" version="1" class="miscellaneous"> |
| 11 | <metadata> |
| 12 | <title>Evaluate to true if the glob_to_regex function is properly supported.</title> |
| 13 | <description>This definition is intended to evaluate to true if the interpreter properly supports the glob_to_regex function.</description> |
| 14 | </metadata> |
| 15 | <criteria operator="AND"> |
| 16 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:1"/> |
| 17 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:2"/> |
| 18 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:3"/> |
| 19 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:4"/> |
| 20 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:5"/> |
| 21 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:6"/> |
| 22 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:7"/> |
| 23 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:8"/> |
| 24 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:9"/> |
| 25 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:10"/> |
| 26 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:11"/> |
| 27 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:12"/> |
| 28 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:13"/> |
| 29 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:14"/> |
| 30 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:15"/> |
| 31 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:16"/> |
| 32 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:17"/> |
| 33 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:18"/> |
| 34 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:19"/> |
| 35 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:20"/> |
| 36 | </criteria> |
| 37 | </definition> |
| 38 | <definition id="oval:x:def:100" version="1" class="miscellaneous"> |
| 39 | <metadata> |
| 40 | <title>Evaluate to false if the glob_to_regex function is properly supported.</title> |
| 41 | <description>This tests some invalid glob patterns</description> |
| 42 | </metadata> |
| 43 | <criteria operator="AND"> |
| 44 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:101"/> |
| 45 | <criterion comment="Test glob_to_regex" test_ref="oval:x:tst:102"/> |
| 46 | </criteria> |
| 47 | </definition> |
| 48 | </definitions> |
| 49 | |
| 50 | <tests> |
| 51 | <variable_test id="oval:x:tst:1" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 52 | <object object_ref="oval:x:obj:1"/> |
| 53 | <state state_ref="oval:x:ste:1"/> |
| 54 | </variable_test> |
| 55 | <variable_test id="oval:x:tst:2" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 56 | <object object_ref="oval:x:obj:2"/> |
| 57 | <state state_ref="oval:x:ste:2"/> |
| 58 | </variable_test> |
| 59 | <variable_test id="oval:x:tst:3" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 60 | <object object_ref="oval:x:obj:3"/> |
| 61 | <state state_ref="oval:x:ste:3"/> |
| 62 | </variable_test> |
| 63 | <variable_test id="oval:x:tst:4" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 64 | <object object_ref="oval:x:obj:4"/> |
| 65 | <state state_ref="oval:x:ste:4"/> |
| 66 | </variable_test> |
| 67 | <variable_test id="oval:x:tst:5" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 68 | <object object_ref="oval:x:obj:5"/> |
| 69 | <state state_ref="oval:x:ste:5"/> |
| 70 | </variable_test> |
| 71 | <variable_test id="oval:x:tst:6" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 72 | <object object_ref="oval:x:obj:6"/> |
| 73 | <state state_ref="oval:x:ste:6"/> |
| 74 | </variable_test> |
| 75 | <variable_test id="oval:x:tst:7" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 76 | <object object_ref="oval:x:obj:7"/> |
| 77 | <state state_ref="oval:x:ste:7"/> |
| 78 | </variable_test> |
| 79 | <variable_test id="oval:x:tst:8" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 80 | <object object_ref="oval:x:obj:8"/> |
| 81 | <state state_ref="oval:x:ste:8"/> |
| 82 | </variable_test> |
| 83 | <variable_test id="oval:x:tst:9" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 84 | <object object_ref="oval:x:obj:9"/> |
| 85 | <state state_ref="oval:x:ste:9"/> |
| 86 | </variable_test> |
| 87 | <variable_test id="oval:x:tst:10" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 88 | <object object_ref="oval:x:obj:10"/> |
| 89 | <state state_ref="oval:x:ste:10"/> |
| 90 | </variable_test> |
| 91 | <variable_test id="oval:x:tst:11" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 92 | <object object_ref="oval:x:obj:11"/> |
| 93 | <state state_ref="oval:x:ste:11"/> |
| 94 | </variable_test> |
| 95 | <variable_test id="oval:x:tst:12" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 96 | <object object_ref="oval:x:obj:12"/> |
| 97 | <state state_ref="oval:x:ste:12"/> |
| 98 | </variable_test> |
| 99 | <variable_test id="oval:x:tst:13" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 100 | <object object_ref="oval:x:obj:13"/> |
| 101 | <state state_ref="oval:x:ste:13"/> |
| 102 | </variable_test> |
| 103 | <variable_test id="oval:x:tst:14" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 104 | <object object_ref="oval:x:obj:14"/> |
| 105 | <state state_ref="oval:x:ste:14"/> |
| 106 | </variable_test> |
| 107 | <variable_test id="oval:x:tst:15" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 108 | <object object_ref="oval:x:obj:15"/> |
| 109 | <state state_ref="oval:x:ste:15"/> |
| 110 | </variable_test> |
| 111 | <variable_test id="oval:x:tst:16" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 112 | <object object_ref="oval:x:obj:16"/> |
| 113 | <state state_ref="oval:x:ste:16"/> |
| 114 | </variable_test> |
| 115 | <variable_test id="oval:x:tst:17" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 116 | <object object_ref="oval:x:obj:17"/> |
| 117 | <state state_ref="oval:x:ste:17"/> |
| 118 | </variable_test> |
| 119 | <variable_test id="oval:x:tst:18" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 120 | <object object_ref="oval:x:obj:18"/> |
| 121 | <state state_ref="oval:x:ste:18"/> |
| 122 | </variable_test> |
| 123 | <variable_test id="oval:x:tst:19" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 124 | <object object_ref="oval:x:obj:19"/> |
| 125 | <state state_ref="oval:x:ste:19"/> |
| 126 | </variable_test> |
| 127 | <variable_test id="oval:x:tst:20" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 128 | <object object_ref="oval:x:obj:20"/> |
| 129 | <state state_ref="oval:x:ste:20"/> |
| 130 | </variable_test> |
| 131 | <variable_test id="oval:x:tst:101" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 132 | <object object_ref="oval:x:obj:101"/> |
| 133 | </variable_test> |
| 134 | <variable_test id="oval:x:tst:102" version="1" comment="Test that the glob_to_regex function is supported with a single component that returns a single string value that contains regular expression characters." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 135 | <object object_ref="oval:x:obj:102"/> |
| 136 | </variable_test> |
| 137 | </tests> |
| 138 | |
| 139 | <objects> |
| 140 | <variable_object id="oval:x:obj:1" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 141 | <var_ref>oval:x:var:1</var_ref> |
| 142 | </variable_object> |
| 143 | <variable_object id="oval:x:obj:2" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 144 | <var_ref>oval:x:var:2</var_ref> |
| 145 | </variable_object> |
| 146 | <variable_object id="oval:x:obj:3" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 147 | <var_ref>oval:x:var:3</var_ref> |
| 148 | </variable_object> |
| 149 | <variable_object id="oval:x:obj:4" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 150 | <var_ref>oval:x:var:4</var_ref> |
| 151 | </variable_object> |
| 152 | <variable_object id="oval:x:obj:5" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 153 | <var_ref>oval:x:var:5</var_ref> |
| 154 | </variable_object> |
| 155 | <variable_object id="oval:x:obj:6" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 156 | <var_ref>oval:x:var:6</var_ref> |
| 157 | </variable_object> |
| 158 | <variable_object id="oval:x:obj:7" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 159 | <var_ref>oval:x:var:7</var_ref> |
| 160 | </variable_object> |
| 161 | <variable_object id="oval:x:obj:8" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 162 | <var_ref>oval:x:var:8</var_ref> |
| 163 | </variable_object> |
| 164 | <variable_object id="oval:x:obj:9" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 165 | <var_ref>oval:x:var:9</var_ref> |
| 166 | </variable_object> |
| 167 | <variable_object id="oval:x:obj:10" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 168 | <var_ref>oval:x:var:10</var_ref> |
| 169 | </variable_object> |
| 170 | <variable_object id="oval:x:obj:11" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 171 | <var_ref>oval:x:var:11</var_ref> |
| 172 | </variable_object> |
| 173 | <variable_object id="oval:x:obj:12" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 174 | <var_ref>oval:x:var:12</var_ref> |
| 175 | </variable_object> |
| 176 | <variable_object id="oval:x:obj:13" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 177 | <var_ref>oval:x:var:13</var_ref> |
| 178 | </variable_object> |
| 179 | <variable_object id="oval:x:obj:14" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 180 | <var_ref>oval:x:var:14</var_ref> |
| 181 | </variable_object> |
| 182 | <variable_object id="oval:x:obj:15" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 183 | <var_ref>oval:x:var:15</var_ref> |
| 184 | </variable_object> |
| 185 | <variable_object id="oval:x:obj:16" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 186 | <var_ref>oval:x:var:16</var_ref> |
| 187 | </variable_object> |
| 188 | <variable_object id="oval:x:obj:17" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 189 | <var_ref>oval:x:var:17</var_ref> |
| 190 | </variable_object> |
| 191 | <variable_object id="oval:x:obj:18" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 192 | <var_ref>oval:x:var:18</var_ref> |
| 193 | </variable_object> |
| 194 | <variable_object id="oval:x:obj:19" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 195 | <var_ref>oval:x:var:19</var_ref> |
| 196 | </variable_object> |
| 197 | <variable_object id="oval:x:obj:20" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 198 | <var_ref>oval:x:var:20</var_ref> |
| 199 | </variable_object> |
| 200 | <variable_object id="oval:x:obj:101" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 201 | <var_ref>oval:x:var:101</var_ref> |
| 202 | </variable_object> |
| 203 | <variable_object id="oval:x:obj:102" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 204 | <var_ref>oval:x:var:102</var_ref> |
| 205 | </variable_object> |
| 206 | </objects> |
| 207 | |
| 208 | <states> |
| 209 | <variable_state id="oval:x:ste:1" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 210 | <value>^abcd$</value> |
| 211 | </variable_state> |
| 212 | <variable_state id="oval:x:ste:2" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 213 | <value>^\\[^/]*$</value> |
| 214 | </variable_state> |
| 215 | <variable_state id="oval:x:ste:3" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 216 | <value>^\*$</value> |
| 217 | </variable_state> |
| 218 | <variable_state id="oval:x:ste:4" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 219 | <value>^(?=[^.])[^/]*\.txt$</value> |
| 220 | </variable_state> |
| 221 | <variable_state id="oval:x:ste:5" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 222 | <value>^x[^/]$</value> |
| 223 | </variable_state> |
| 224 | <variable_state id="oval:x:ste:6" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 225 | <value>^list\.[^/]$</value> |
| 226 | </variable_state> |
| 227 | <variable_state id="oval:x:ste:7" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 228 | <value>^project\.[^/]*$</value> |
| 229 | </variable_state> |
| 230 | <variable_state id="oval:x:ste:8" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 231 | <value>^(?=[^.])[^/]*old$</value> |
| 232 | </variable_state> |
| 233 | <variable_state id="oval:x:ste:9" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 234 | <value>^type[^/]*\.[ch]$</value> |
| 235 | </variable_state> |
| 236 | <variable_state id="oval:x:ste:10" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 237 | <value>^(?=[^.])[^/]*\.[^/]*$</value> |
| 238 | </variable_state> |
| 239 | <variable_state id="oval:x:ste:11" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 240 | <value>^(?=[^.])[^/]*$</value> |
| 241 | </variable_state> |
| 242 | <variable_state id="oval:x:ste:12" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 243 | <value>^[^./]$</value> |
| 244 | </variable_state> |
| 245 | <variable_state id="oval:x:ste:13" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 246 | <value>^\*$</value> |
| 247 | </variable_state> |
| 248 | <variable_state id="oval:x:ste:14" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 249 | <value>^\?$</value> |
| 250 | </variable_state> |
| 251 | <variable_state id="oval:x:ste:15" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 252 | <value>^\[hello\]$</value> |
| 253 | </variable_state> |
| 254 | <variable_state id="oval:x:ste:16" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 255 | <value>^x[[:digit:]]\*$</value> |
| 256 | </variable_state> |
| 257 | <variable_state id="oval:x:ste:17" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 258 | <value>^$</value> |
| 259 | </variable_state> |
| 260 | <variable_state id="oval:x:ste:18" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 261 | <value>^~/files/(?=[^.])[^/]*\.txt$</value> |
| 262 | </variable_state> |
| 263 | <variable_state id="oval:x:ste:19" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 264 | <value>^\\[^/]*$</value> |
| 265 | </variable_state> |
| 266 | <variable_state id="oval:x:ste:20" version="1" comment="The result regular expression" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 267 | <value>^\\[^/]$</value> |
| 268 | </variable_state> |
| 269 | </states> |
| 270 | |
| 271 | <variables> |
| 272 | <local_variable id="oval:x:var:1" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 273 | <glob_to_regex> |
| 274 | <literal_component datatype="string">abcd</literal_component> |
| 275 | </glob_to_regex> |
| 276 | </local_variable> |
| 277 | <local_variable id="oval:x:var:2" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 278 | <glob_to_regex glob_noescape="true"> |
| 279 | <literal_component datatype="string">\*</literal_component> |
| 280 | </glob_to_regex> |
| 281 | </local_variable> |
| 282 | <local_variable id="oval:x:var:3" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 283 | <glob_to_regex glob_noescape="false"> |
| 284 | <literal_component datatype="string">\*</literal_component> |
| 285 | </glob_to_regex> |
| 286 | </local_variable> |
| 287 | <local_variable id="oval:x:var:4" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 288 | <glob_to_regex glob_noescape="false"> |
| 289 | <literal_component datatype="string">*.txt</literal_component> |
| 290 | </glob_to_regex> |
| 291 | </local_variable> |
| 292 | <local_variable id="oval:x:var:5" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 293 | <glob_to_regex glob_noescape="false"> |
| 294 | <literal_component datatype="string">x?</literal_component> |
| 295 | </glob_to_regex> |
| 296 | </local_variable> |
| 297 | <local_variable id="oval:x:var:6" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 298 | <glob_to_regex glob_noescape="false"> |
| 299 | <literal_component datatype="string">list.?</literal_component> |
| 300 | </glob_to_regex> |
| 301 | </local_variable> |
| 302 | <local_variable id="oval:x:var:7" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 303 | <glob_to_regex glob_noescape="false"> |
| 304 | <literal_component datatype="string">project.*</literal_component> |
| 305 | </glob_to_regex> |
| 306 | </local_variable> |
| 307 | <local_variable id="oval:x:var:8" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 308 | <glob_to_regex glob_noescape="false"> |
| 309 | <literal_component datatype="string">*old</literal_component> |
| 310 | </glob_to_regex> |
| 311 | </local_variable> |
| 312 | <local_variable id="oval:x:var:9" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 313 | <glob_to_regex glob_noescape="false"> |
| 314 | <literal_component datatype="string">type*.[ch]</literal_component> |
| 315 | </glob_to_regex> |
| 316 | </local_variable> |
| 317 | <local_variable id="oval:x:var:10" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 318 | <glob_to_regex glob_noescape="false"> |
| 319 | <literal_component datatype="string">*.*</literal_component> |
| 320 | </glob_to_regex> |
| 321 | </local_variable> |
| 322 | <local_variable id="oval:x:var:11" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 323 | <glob_to_regex glob_noescape="false"> |
| 324 | <literal_component datatype="string">*</literal_component> |
| 325 | </glob_to_regex> |
| 326 | </local_variable> |
| 327 | <local_variable id="oval:x:var:12" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 328 | <glob_to_regex glob_noescape="false"> |
| 329 | <literal_component datatype="string">?</literal_component> |
| 330 | </glob_to_regex> |
| 331 | </local_variable> |
| 332 | <local_variable id="oval:x:var:13" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 333 | <glob_to_regex glob_noescape="false"> |
| 334 | <literal_component datatype="string">\*</literal_component> |
| 335 | </glob_to_regex> |
| 336 | </local_variable> |
| 337 | <local_variable id="oval:x:var:14" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 338 | <glob_to_regex glob_noescape="false"> |
| 339 | <literal_component datatype="string">\?</literal_component> |
| 340 | </glob_to_regex> |
| 341 | </local_variable> |
| 342 | <local_variable id="oval:x:var:15" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 343 | <glob_to_regex glob_noescape="false"> |
| 344 | <literal_component datatype="string">\[hello\]</literal_component> |
| 345 | </glob_to_regex> |
| 346 | </local_variable> |
| 347 | <local_variable id="oval:x:var:16" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 348 | <glob_to_regex glob_noescape="false"> |
| 349 | <literal_component datatype="string">x[[:digit:]]\*</literal_component> |
| 350 | </glob_to_regex> |
| 351 | </local_variable> |
| 352 | <local_variable id="oval:x:var:17" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 353 | <glob_to_regex glob_noescape="false"> |
| 354 | <literal_component datatype="string"></literal_component> |
| 355 | </glob_to_regex> |
| 356 | </local_variable> |
| 357 | <local_variable id="oval:x:var:18" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 358 | <glob_to_regex glob_noescape="false"> |
| 359 | <literal_component datatype="string">~/files/*.txt</literal_component> |
| 360 | </glob_to_regex> |
| 361 | </local_variable> |
| 362 | <local_variable id="oval:x:var:19" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 363 | <glob_to_regex glob_noescape="true"> |
| 364 | <literal_component datatype="string">\*</literal_component> |
| 365 | </glob_to_regex> |
| 366 | </local_variable> |
| 367 | <local_variable id="oval:x:var:20" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 368 | <glob_to_regex glob_noescape="true"> |
| 369 | <literal_component datatype="string">\?</literal_component> |
| 370 | </glob_to_regex> |
| 371 | </local_variable> |
| 372 | <local_variable id="oval:x:var:101" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 373 | <glob_to_regex> |
| 374 | <literal_component datatype="string">abc[</literal_component> |
| 375 | </glob_to_regex> |
| 376 | </local_variable> |
| 377 | <local_variable id="oval:x:var:102" version="1" comment="Applying the glob_to_regex function to the glob string." datatype="string"> |
| 378 | <glob_to_regex> |
| 379 | <literal_component datatype="string">[ab</literal_component> |
| 380 | </glob_to_regex> |
| 381 | </local_variable> |
| 382 | </variables> |
| 383 | </oval_definitions> |