Skip to content

Commit 6ca0dd6

Browse files
committed
test: add tests for jgf_shorthand match writer
Problem: there are no tests for the jgf_shorthand match format. Add tests.
1 parent 7871f82 commit 6ca0dd6

File tree

6 files changed

+2109
-0
lines changed

6 files changed

+2109
-0
lines changed

t/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ set(ALL_TESTS
7272
t3037-resource-custom-policy.t
7373
t3038-resource-flexible.t
7474
t3039-resource-force-load-format.t
75+
t3040-jgf-shorthand-match-format.t
7576
t3300-system-dontblock.t
7677
t3301-system-latestart.t
7778
t4000-match-params.t
Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"graph": {
3+
"edges": [
4+
{
5+
"source": "0",
6+
"target": "1"
7+
},
8+
{
9+
"source": "0",
10+
"target": "12"
11+
},
12+
{
13+
"source": "0",
14+
"target": "23"
15+
},
16+
{
17+
"source": "0",
18+
"target": "34"
19+
},
20+
{
21+
"source": "0",
22+
"target": "45"
23+
},
24+
{
25+
"source": "0",
26+
"target": "56"
27+
},
28+
{
29+
"source": "0",
30+
"target": "67"
31+
},
32+
{
33+
"source": "0",
34+
"target": "78"
35+
},
36+
{
37+
"source": "0",
38+
"target": "89"
39+
},
40+
{
41+
"source": "0",
42+
"target": "100"
43+
}
44+
],
45+
"nodes": [
46+
{
47+
"id": "1",
48+
"metadata": {
49+
"exclusive": true,
50+
"id": 1,
51+
"name": "compute1",
52+
"paths": {
53+
"containment": "/cluster0/compute1"
54+
},
55+
"rank": 0,
56+
"type": "node"
57+
}
58+
},
59+
{
60+
"id": "12",
61+
"metadata": {
62+
"exclusive": true,
63+
"id": 2,
64+
"name": "compute2",
65+
"paths": {
66+
"containment": "/cluster0/compute2"
67+
},
68+
"rank": 1,
69+
"type": "node"
70+
}
71+
},
72+
{
73+
"id": "23",
74+
"metadata": {
75+
"exclusive": true,
76+
"id": 3,
77+
"name": "compute3",
78+
"paths": {
79+
"containment": "/cluster0/compute3"
80+
},
81+
"rank": 2,
82+
"type": "node"
83+
}
84+
},
85+
{
86+
"id": "34",
87+
"metadata": {
88+
"exclusive": true,
89+
"id": 4,
90+
"name": "compute4",
91+
"paths": {
92+
"containment": "/cluster0/compute4"
93+
},
94+
"rank": 3,
95+
"type": "node"
96+
}
97+
},
98+
{
99+
"id": "45",
100+
"metadata": {
101+
"exclusive": true,
102+
"id": 5,
103+
"name": "compute5",
104+
"paths": {
105+
"containment": "/cluster0/compute5"
106+
},
107+
"rank": 4,
108+
"type": "node"
109+
}
110+
},
111+
{
112+
"id": "56",
113+
"metadata": {
114+
"exclusive": true,
115+
"id": 6,
116+
"name": "compute6",
117+
"paths": {
118+
"containment": "/cluster0/compute6"
119+
},
120+
"rank": 5,
121+
"type": "node"
122+
}
123+
},
124+
{
125+
"id": "67",
126+
"metadata": {
127+
"exclusive": true,
128+
"id": 7,
129+
"name": "compute7",
130+
"paths": {
131+
"containment": "/cluster0/compute7"
132+
},
133+
"rank": 6,
134+
"type": "node"
135+
}
136+
},
137+
{
138+
"id": "78",
139+
"metadata": {
140+
"exclusive": true,
141+
"id": 8,
142+
"name": "compute8",
143+
"paths": {
144+
"containment": "/cluster0/compute8"
145+
},
146+
"rank": 7,
147+
"type": "node"
148+
}
149+
},
150+
{
151+
"id": "89",
152+
"metadata": {
153+
"exclusive": true,
154+
"id": 9,
155+
"name": "compute9",
156+
"paths": {
157+
"containment": "/cluster0/compute9"
158+
},
159+
"rank": 8,
160+
"type": "node"
161+
}
162+
},
163+
{
164+
"id": "100",
165+
"metadata": {
166+
"exclusive": true,
167+
"id": 10,
168+
"name": "compute10",
169+
"paths": {
170+
"containment": "/cluster0/compute10"
171+
},
172+
"rank": 9,
173+
"type": "node"
174+
}
175+
},
176+
{
177+
"id": "0",
178+
"metadata": {
179+
"id": 0,
180+
"paths": {
181+
"containment": "/cluster0"
182+
},
183+
"rank": -1,
184+
"type": "cluster"
185+
}
186+
}
187+
]
188+
}
189+
}

0 commit comments

Comments
 (0)