-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy pathtest_options.rng
95 lines (95 loc) · 3.09 KB
/
test_options.rng
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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="spud_base.rng"/>
<start>
<element name="testproblem">
<a:documentation>The test problem root node</a:documentation>
<element name="name">
<a:documentation>The test problem name</a:documentation>
<data type="string"/>
<ref name="comment"/>
</element>
<element name="owner">
<a:documentation>The test owner</a:documentation>
<attribute name="userid">
<data type="string"/>
</attribute>
<ref name="comment"/>
</element>
<optional>
<element name="tags">
<a:documentation>Test tags</a:documentation>
<data type="string"/>
<ref name="comment"/>
</element>
</optional>
<element name="problem_definition">
<a:documentation>Test execution options</a:documentation>
<attribute name="length">
<choice>
<value>short</value>
<value>medium</value>
<value>long</value>
<value>special</value>
</choice>
</attribute>
<attribute name="nprocs">
<data type="integer"/>
</attribute>
<element name="command_line">
<a:documentation>Test execution command</a:documentation>
<data type="string"/>
<ref name="comment"/>
</element>
<ref name="comment"/>
</element>
<element name="variables">
<a:documentation>Variables. These are evaluated prior to running any tests.</a:documentation>
<zeroOrMore>
<element name="variable">
<a:documentation>A test variable</a:documentation>
<attribute name="name">
<data type="string"/>
</attribute>
<attribute name="language">
<value>python</value>
</attribute>
<data type="string"/>
<ref name="comment"/>
</element>
</zeroOrMore>
<ref name="comment"/>
</element>
<element name="pass_tests">
<a:documentation>Tests that emit a failure if they fail to pass</a:documentation>
<zeroOrMore>
<ref name="test"/>
</zeroOrMore>
<ref name="comment"/>
</element>
<optional>
<element name="warn_tests">
<a:documentation>Tests that emit a warning if they fail to pass</a:documentation>
<zeroOrMore>
<ref name="test"/>
</zeroOrMore>
<ref name="comment"/>
</element>
</optional>
<ref name="comment"/>
</element>
</start>
<define name="test">
<element name="test">
<a:documentation>A test</a:documentation>
<attribute name="name">
<data type="string"/>
</attribute>
<attribute name="language">
<value>python</value>
</attribute>
<data type="string"/>
<ref name="comment"/>
</element>
</define>
</grammar>