@@ -9,7 +9,7 @@ check_engine_with_server() {
9
9
cloe-engine version | grep -F " server: true" & > /dev/null
10
10
}
11
11
12
- @test " $( testname " Expect schema equality" " test_engine_json_schema.json" " 4d368665-b666-4289-8a7a-b76ca53db688" ) " {
12
+ @test " $( testname ' Expect schema equality' ' test_engine_json_schema.json' ' 4d368665-b666-4289-8a7a-b76ca53db688' ) " {
13
13
# Note: you will have to update the schema files every time you change the schema,
14
14
# in order that this test completes successfully. Here's how you do it.
15
15
#
@@ -23,7 +23,7 @@ check_engine_with_server() {
23
23
diff <( cloe-engine usage -j 2> /dev/null) test_engine_json_schema.json
24
24
}
25
25
26
- @test " $( testname " Expect stack equality" " test_engine_nop_smoketest_dump.json" " 3b23bb69-b249-49c8-8b4c-2fa993d8677e" ) " {
26
+ @test " $( testname ' Expect stack equality' ' test_engine_nop_smoketest_dump.json' ' 3b23bb69-b249-49c8-8b4c-2fa993d8677e' ) " {
27
27
if ! type diff & > /dev/null; then
28
28
skip " required program diff not present"
29
29
fi
@@ -37,21 +37,21 @@ check_engine_with_server() {
37
37
${reference_file}
38
38
}
39
39
40
- @test " $( testname " Expect check success" " test_engine_smoketest.json" " 20c3f11e-4a93-4066-b61e-d485be5c8979" ) " {
40
+ @test " $( testname ' Expect check success' ' test_engine_smoketest.json' ' 20c3f11e-4a93-4066-b61e-d485be5c8979' ) " {
41
41
cloe-engine check test_engine_smoketest.json
42
42
}
43
43
44
- @test " $( testname " Expect run success" " test_engine_smoketest.json" " b590e751-dace-4139-913c-a4a812af70ac" ) " {
44
+ @test " $( testname ' Expect run success' ' test_engine_smoketest.json' ' b590e751-dace-4139-913c-a4a812af70ac' ) " {
45
45
cloe-engine run test_engine_smoketest.json
46
46
}
47
47
48
- @test " $( testname " Expect check failure" " test_engine_bad_logging.json" " 107c36fe-7bd9-4559-b5e9-74b72baafd9f" ) " {
48
+ @test " $( testname ' Expect check failure' ' test_engine_bad_logging.json' ' 107c36fe-7bd9-4559-b5e9-74b72baafd9f' ) " {
49
49
run cloe-engine check test_bad_logging.json
50
50
assert_check_failure $status $output
51
51
test $status -eq $CLOE_EXIT_UNKNOWN
52
52
}
53
53
54
- @test " $( testname " Expect run failure" " test_engine_invalid_trigger.json" " 0cf8c9e0-5538-4969-a00e-4891d7d8e647" ) " {
54
+ @test " $( testname ' Expect run failure' ' test_engine_invalid_trigger.json' ' 0cf8c9e0-5538-4969-a00e-4891d7d8e647' ) " {
55
55
# Currently, cloe-engine cannot tell before starting a simulation
56
56
# whether the triggers exist or not.
57
57
cloe-engine check test_engine_invalid_trigger.json
@@ -66,11 +66,11 @@ check_engine_with_server() {
66
66
cloe-engine run test_engine_optional_trigger.json
67
67
}
68
68
69
- @test " $( testname " Expect check success" " test_engine_curl_succeed.json" " 5eff0c85-77f1-4792-9987-e46a36617d99" ) " {
69
+ @test " $( testname ' Expect check success' ' test_engine_curl_succeed.json' ' 5eff0c85-77f1-4792-9987-e46a36617d99' ) " {
70
70
cloe-engine check test_engine_curl_succeed.json
71
71
}
72
72
73
- @test " $( testname " Expect run success" " test_engine_curl_succeed.json" " f473cb96-7f2e-4ac1-801a-fd93343f6e24" ) " {
73
+ @test " $( testname ' Expect run success' ' test_engine_curl_succeed.json' ' f473cb96-7f2e-4ac1-801a-fd93343f6e24' ) " {
74
74
if ! type curl & > /dev/null; then
75
75
skip " required program curl not present"
76
76
fi
@@ -80,169 +80,169 @@ check_engine_with_server() {
80
80
cloe-engine run test_engine_curl_succeed.json
81
81
}
82
82
83
- @test " $( testname " Expect run failure" " test_engine_curl_succeed.json" " 7aa4b455-ad74-4e5f-bf82-43761d7cd81b" ) " {
83
+ @test " $( testname ' Expect run failure' ' test_engine_curl_succeed.json' ' 7aa4b455-ad74-4e5f-bf82-43761d7cd81b' ) " {
84
84
# When disabling the `enable_command_action` flag, curl
85
85
# should not be used and the simulation should fail by default.
86
86
run cloe-engine run test_engine_curl_succeed.json \
87
87
<( echo ' { "version": "4", "engine": { "security": { "enable_command_action": false } } }' )
88
88
test $status -eq $CLOE_EXIT_FAILURE
89
89
}
90
90
91
- @test " $( testname " Expect check failure" " test_engine_empty.json" " d04369fb-e4af-4f80-aaa8-8352d3dec42e" ) " {
91
+ @test " $( testname ' Expect check failure' ' test_engine_empty.json' ' d04369fb-e4af-4f80-aaa8-8352d3dec42e' ) " {
92
92
run cloe-engine check test_engine_empty.json
93
93
assert_check_failure $status $output
94
94
test $status -eq $CLOE_EXIT_UNKNOWN
95
95
test $( echo $output 2>&1 | wc -l) -lt 32
96
96
}
97
97
98
- @test " $( testname " Expect check failure" " test_engine_version_absent.json" " 4de20aed-2a8f-442b-bdb3-1da76237ee1e" ) " {
98
+ @test " $( testname ' Expect check failure' ' test_engine_version_absent.json' ' 4de20aed-2a8f-442b-bdb3-1da76237ee1e' ) " {
99
99
run cloe-engine check test_engine_version_absent.json
100
100
assert_check_failure $status $output
101
101
test $status -eq $CLOE_EXIT_UNKNOWN
102
102
test $( echo $output 2>&1 | wc -l) -lt 32
103
103
}
104
104
105
- @test " $( testname " Expect check failure" " test_engine_version_wrong.json" " 2c883a3d-b877-4fca-88a1-8078208f0d2b" ) " {
105
+ @test " $( testname ' Expect check failure' ' test_engine_version_wrong.json' ' 2c883a3d-b877-4fca-88a1-8078208f0d2b' ) " {
106
106
run cloe-engine check test_engine_version_wrong.json
107
107
assert_check_failure $status $output
108
108
test $status -eq $CLOE_EXIT_UNKNOWN
109
109
test $( echo $output 2>&1 | wc -l) -lt 32
110
110
}
111
111
112
- @test " $( testname " Expect check success" " test_engine_fail_trigger.json" " cd540e21-63e9-421f-8e7b-e113339253a2" ) " {
112
+ @test " $( testname ' Expect check success' ' test_engine_fail_trigger.json' ' cd540e21-63e9-421f-8e7b-e113339253a2' ) " {
113
113
cloe-engine check test_engine_fail_trigger.json
114
114
}
115
115
116
- @test " $( testname " Expect run failure" " test_engine_fail_trigger.json" " c9bc16de-4902-4abf-90ac-d4bef0d0b26e" ) " {
116
+ @test " $( testname ' Expect run failure' ' test_engine_fail_trigger.json' ' c9bc16de-4902-4abf-90ac-d4bef0d0b26e' ) " {
117
117
run cloe-engine run test_engine_fail_trigger.json
118
118
assert_exit_failure $status
119
119
test $status -eq $CLOE_EXIT_FAILURE
120
120
echo " $output " | grep ' "outcome": "failure"'
121
121
}
122
122
123
- @test " $( testname " Expect check failure" " test_engine_hook_invalid.json" " cc3d8879-5ca5-4ffb-a78e-c9723ac82b91" ) " {
123
+ @test " $( testname ' Expect check failure' ' test_engine_hook_invalid.json' ' cc3d8879-5ca5-4ffb-a78e-c9723ac82b91' ) " {
124
124
run cloe-engine check test_engine_hook_invalid.json
125
125
assert_check_failure $status $output
126
126
test $status -eq $CLOE_EXIT_UNKNOWN
127
127
}
128
128
129
- @test " $( testname " Expect check failure" " test_engine_hook_noexec.json" " 3f35bb1f-307a-42e3-a2ea-739e60cab084" ) " {
129
+ @test " $( testname ' Expect check failure' ' test_engine_hook_noexec.json' ' 3f35bb1f-307a-42e3-a2ea-739e60cab084' ) " {
130
130
run cloe-engine check test_engine_hook_noexec.json
131
131
assert_check_failure $status $output
132
132
test $status -eq $CLOE_EXIT_UNKNOWN
133
133
}
134
134
135
- @test " $( testname " Expect check success" " test_engine_hook_failure.json" " d6d8fe35-c513-4e43-8984-e9da0958c0fd" ) " {
135
+ @test " $( testname ' Expect check success' ' test_engine_hook_failure.json' ' d6d8fe35-c513-4e43-8984-e9da0958c0fd' ) " {
136
136
cloe-engine check test_engine_hook_failure.json
137
137
}
138
138
139
- @test " $( testname " Expect run failure" " test_engine_hook_failure.json" " 798ee383-667d-4971-af2f-51c49c47b750" ) " {
139
+ @test " $( testname ' Expect run failure' ' test_engine_hook_failure.json' ' 798ee383-667d-4971-af2f-51c49c47b750' ) " {
140
140
run cloe-engine run test_engine_hook_failure.json
141
141
test $status -eq $CLOE_EXIT_ABORTED
142
142
}
143
143
144
- @test " $( testname " Expect check success" " test_engine_hook_ok.json" " 2e3064bf-0e6d-4934-b25f-78cae54bd4d1" ) " {
144
+ @test " $( testname ' Expect check success' ' test_engine_hook_ok.json' ' 2e3064bf-0e6d-4934-b25f-78cae54bd4d1' ) " {
145
145
cloe-engine check test_engine_hook_ok.json
146
146
}
147
147
148
- @test " $( testname " Expect run success" " test_engine_hook_ok.json" " 303afa7e-3ebe-4db3-a802-84b2cdba97c5" ) " {
148
+ @test " $( testname ' Expect run success' ' test_engine_hook_ok.json' ' 303afa7e-3ebe-4db3-a802-84b2cdba97c5' ) " {
149
149
cloe-engine run test_engine_hook_ok.json
150
150
}
151
151
152
- @test " $( testname " Expect check success" " test_engine_ignore.json" " 78a470a4-cbe1-4436-a43f-d956685b8bc9" ) " {
152
+ @test " $( testname ' Expect check success' ' test_engine_ignore.json' ' 78a470a4-cbe1-4436-a43f-d956685b8bc9' ) " {
153
153
cloe-engine check test_engine_ignore.json
154
154
}
155
155
156
- @test " $( testname " Expect run success" " test_engine_ignore.json" " 1738bf42-3784-4e9c-b4d4-76e94c8e5271" ) " {
156
+ @test " $( testname ' Expect run success' ' test_engine_ignore.json' ' 1738bf42-3784-4e9c-b4d4-76e94c8e5271' ) " {
157
157
cloe-engine run test_engine_ignore.json
158
158
}
159
159
160
- @test " $( testname " Expect check failure" " test_engine_include_nonexistent.json" " bad115cc-0397-48e6-9a51-bdcfeaf6b024" ) " {
160
+ @test " $( testname ' Expect check failure' ' test_engine_include_nonexistent.json' ' bad115cc-0397-48e6-9a51-bdcfeaf6b024' ) " {
161
161
run cloe-engine check test_engine_include_nonexistent.json
162
162
assert_check_failure $status $output
163
163
test $status -eq $CLOE_EXIT_UNKNOWN
164
164
}
165
165
166
- @test " $( testname " Expect check failure" " test_engine_include_self.json" " 7b3e4010-19a0-4518-b8d7-00655af93755" ) " {
166
+ @test " $( testname ' Expect check failure' ' test_engine_include_self.json' ' 7b3e4010-19a0-4518-b8d7-00655af93755' ) " {
167
167
run cloe-engine check test_engine_include_self.json
168
168
assert_check_failure $status $output
169
169
test $status -eq $CLOE_EXIT_UNKNOWN
170
170
}
171
171
172
- @test " $( testname " Expect check failure" " test_engine_incomplete.json" " 8baa711a-9279-4527-9ecc-6b685551a45f" ) " {
172
+ @test " $( testname ' Expect check failure' ' test_engine_incomplete.json' ' 8baa711a-9279-4527-9ecc-6b685551a45f' ) " {
173
173
run cloe-engine check test_engine_incomplete.json
174
174
assert_check_failure $status $output
175
175
test $status -eq $CLOE_EXIT_UNKNOWN
176
176
}
177
177
178
- @test " $( testname " Expect run failure" " test_engine_incomplete.json" " 75a0c642-2373-4d6d-bd40-61e0f7840c57" ) " {
178
+ @test " $( testname ' Expect run failure' ' test_engine_incomplete.json' ' 75a0c642-2373-4d6d-bd40-61e0f7840c57' ) " {
179
179
run cloe-engine run test_engine_incomplete.json
180
180
test $status -eq $CLOE_EXIT_UNKNOWN
181
181
}
182
182
183
- @test " $( testname " Expect check success" " test_engine_keep_alive.json" " 254544dc-c17a-4a5c-8685-723ed1c758cf" ) " {
183
+ @test " $( testname ' Expect check success' ' test_engine_keep_alive.json' ' 254544dc-c17a-4a5c-8685-723ed1c758cf' ) " {
184
184
if ! type kill & > /dev/null; then
185
185
skip " required program kill not present"
186
186
fi
187
187
188
188
cloe-engine check test_engine_keep_alive.json
189
189
}
190
190
191
- @test " $( testname " Expect run success" " test_engine_keep_alive.json" " 0c5ace05-f5ca-4615-9c14-62a75b69651a" ) " {
191
+ @test " $( testname ' Expect run success' ' test_engine_keep_alive.json' ' 0c5ace05-f5ca-4615-9c14-62a75b69651a' ) " {
192
192
if ! type kill & > /dev/null; then
193
193
skip " required program kill not present"
194
194
fi
195
195
196
196
cloe-engine run test_engine_keep_alive.json
197
197
}
198
198
199
- @test " $( testname " Expect check success" " test_engine_namespaced_smoketest.json" " c9d4f8d3-aec7-404e-95f5-7a14cd8674c7" ) " {
199
+ @test " $( testname ' Expect check success' ' test_engine_namespaced_smoketest.json' ' c9d4f8d3-aec7-404e-95f5-7a14cd8674c7' ) " {
200
200
cloe-engine check test_engine_namespaced_smoketest.json
201
201
}
202
202
203
- @test " $( testname " Expect run success" " test_engine_namespaced_smoketest.json" " c2fd481b-f135-4fb5-86f0-699af0f93497" ) " {
203
+ @test " $( testname ' Expect run success' ' test_engine_namespaced_smoketest.json' ' c2fd481b-f135-4fb5-86f0-699af0f93497' ) " {
204
204
cloe-engine run test_engine_namespaced_smoketest.json
205
205
}
206
206
207
- @test " $( testname " Expect check failure" " test_engine_no_binding.json" " 111a4f1f-7679-48a8-88de-a6773dab055e" ) " {
207
+ @test " $( testname ' Expect check failure' ' test_engine_no_binding.json' ' 111a4f1f-7679-48a8-88de-a6773dab055e' ) " {
208
208
run cloe-engine check test_engine_no_binding.json
209
209
assert_check_failure $status $output
210
210
test $status -eq $CLOE_EXIT_UNKNOWN
211
211
}
212
212
213
- @test " $( testname " Expect run failure" " test_engine_no_binding.json" " dc682e38-38e5-43d7-8989-b477cb0f6c2a" ) " {
213
+ @test " $( testname ' Expect run failure' ' test_engine_no_binding.json' ' dc682e38-38e5-43d7-8989-b477cb0f6c2a' ) " {
214
214
run cloe-engine run test_engine_no_binding.json
215
215
assert_check_failure $status $output
216
216
test $status -eq $CLOE_EXIT_UNKNOWN
217
217
}
218
218
219
- @test " $( testname " Expect check failure" " test_engine_no_vehicle.json" " 319a342a-88d2-4b07-a4de-1fef78b13d72" ) " {
219
+ @test " $( testname ' Expect check failure' ' test_engine_no_vehicle.json' ' 319a342a-88d2-4b07-a4de-1fef78b13d72' ) " {
220
220
run cloe-engine check test_engine_no_vehicle.json
221
221
assert_check_failure $status $output
222
222
test $status -eq $CLOE_EXIT_UNKNOWN
223
223
}
224
224
225
- @test " $( testname " Expect run failure" " test_engine_no_vehicle.json" " 4b4fcd8b-add1-451c-ad7b-9c0a3efb6525" ) " {
225
+ @test " $( testname ' Expect run failure' ' test_engine_no_vehicle.json' ' 4b4fcd8b-add1-451c-ad7b-9c0a3efb6525' ) " {
226
226
run cloe-engine run test_engine_no_vehicle.json
227
227
test $status -eq $CLOE_EXIT_UNKNOWN
228
228
}
229
229
230
- @test " $( testname " Expect check failure" " test_engine_unknown_vehicle.json" " 3f754bea-4806-4f43-9c60-a78b13b43f6f" ) " {
230
+ @test " $( testname ' Expect check failure' ' test_engine_unknown_vehicle.json' ' 3f754bea-4806-4f43-9c60-a78b13b43f6f' ) " {
231
231
run cloe-engine check test_engine_unknown_vehicle.json
232
232
assert_check_failure $status $output
233
233
test $status -eq $CLOE_EXIT_UNKNOWN
234
234
}
235
235
236
- @test " $( testname " Expect run failure" " test_engine_unknown_vehicle.json" " da3d7c55-6024-481b-bee4-32233df6c330" ) " {
236
+ @test " $( testname ' Expect run failure' ' test_engine_unknown_vehicle.json' ' da3d7c55-6024-481b-bee4-32233df6c330' ) " {
237
237
run cloe-engine run test_engine_unknown_vehicle.json
238
238
test $status -eq $CLOE_EXIT_UNKNOWN
239
239
}
240
240
241
- @test " $( testname " Expect check success" " test_engine_pause.json" " 24528c78-f681-44ff-8b9c-5c172acf19b9" ) " {
241
+ @test " $( testname ' Expect check success' ' test_engine_pause.json' ' 24528c78-f681-44ff-8b9c-5c172acf19b9' ) " {
242
242
cloe-engine check test_engine_pause.json
243
243
}
244
244
245
- @test " $( testname " Expect run success" " test_engine_pause.json" " 845e3c9b-2a6d-469a-93a7-67fe9531c81e" ) " {
245
+ @test " $( testname ' Expect run success' ' test_engine_pause.json' ' 845e3c9b-2a6d-469a-93a7-67fe9531c81e' ) " {
246
246
if ! type curl & > /dev/null; then
247
247
skip " required program curl not present"
248
248
fi
@@ -253,38 +253,38 @@ check_engine_with_server() {
253
253
cloe-engine run test_engine_pause.json
254
254
}
255
255
256
- @test " $( testname " Expect check success" " test_engine_sticky_trigger.json" " 76400941-50f5-4185-9107-335005079569" ) " {
256
+ @test " $( testname ' Expect check success' ' test_engine_sticky_trigger.json' ' 76400941-50f5-4185-9107-335005079569' ) " {
257
257
cloe-engine check test_engine_sticky_trigger.json
258
258
}
259
259
260
- @test " $( testname " Expect run success" " test_engine_sticky_trigger.json" " dcfbdd81-8bb0-4de3-ac68-486aa5a9ce66" ) " {
260
+ @test " $( testname ' Expect run success' ' test_engine_sticky_trigger.json' ' dcfbdd81-8bb0-4de3-ac68-486aa5a9ce66' ) " {
261
261
skip " not implemented yet"
262
262
cloe-engine run test_engine_sticky_trigger.json
263
263
}
264
264
265
- @test " $( testname " Expect check success" " test_engine_stuck_controller.json" " 72f151f7-26c3-4a79-a0ec-8b0d4e678442" ) " {
265
+ @test " $( testname ' Expect check success' ' test_engine_stuck_controller.json' ' 72f151f7-26c3-4a79-a0ec-8b0d4e678442' ) " {
266
266
cloe-engine check test_engine_stuck_controller.json
267
267
}
268
268
269
- @test " $( testname " Expect run aborted" " test_engine_stuck_controller.json" " 13a244da-f18e-4dec-af5c-d5dcb4c2cd36" ) " {
269
+ @test " $( testname ' Expect run aborted' ' test_engine_stuck_controller.json' ' 13a244da-f18e-4dec-af5c-d5dcb4c2cd36' ) " {
270
270
run cloe-engine run test_engine_stuck_controller.json
271
271
assert_exit_failure $status
272
272
echo " $output " | grep ' "outcome": "aborted"'
273
273
}
274
274
275
- @test " $( testname " Expect check success" " test_engine_stuck_controller_continue.json" " 19b3d407-c980-4507-9bd2-9d6dca5e1320" ) " {
275
+ @test " $( testname ' Expect check success' ' test_engine_stuck_controller_continue.json' ' 19b3d407-c980-4507-9bd2-9d6dca5e1320' ) " {
276
276
cloe-engine check test_engine_stuck_controller_continue.json
277
277
}
278
278
279
- @test " $( testname " Expect run success" " test_engine_stuck_controller_continue.json" " 5692f85d-87a2-4866-9875-647802ce1d62" ) " {
279
+ @test " $( testname ' Expect run success' ' test_engine_stuck_controller_continue.json' ' 5692f85d-87a2-4866-9875-647802ce1d62' ) " {
280
280
cloe-engine run test_engine_stuck_controller_continue.json
281
281
}
282
282
283
- @test " $( testname " Expect check success" " test_engine_watchdog.json" " 30e097cf-6e51-484b-a212-690769cd4c91" ) " {
283
+ @test " $( testname ' Expect check success' ' test_engine_watchdog.json' ' 30e097cf-6e51-484b-a212-690769cd4c91' ) " {
284
284
cloe-engine check test_engine_watchdog.json
285
285
}
286
286
287
- @test " $( testname " Expect run syskill" " test_engine_watchdog.json" " 058ff9b7-98dc-4583-8e80-c70e9c5e1f4e" ) " {
287
+ @test " $( testname ' Expect run syskill' ' test_engine_watchdog.json' ' 058ff9b7-98dc-4583-8e80-c70e9c5e1f4e' ) " {
288
288
if ! type curl & > /dev/null; then
289
289
skip " required program curl not present"
290
290
fi
@@ -299,13 +299,13 @@ check_engine_with_server() {
299
299
test $status -eq $CLOE_EXIT_SYSKILL
300
300
}
301
301
302
- @test " $( testname " Expect check/run success" " test_engine_smoketest.json [ts=5ms]" " 1a31022c-e20c-4a9e-9373-ad54a3729442" ) " {
302
+ @test " $( testname ' Expect check/run success' ' test_engine_smoketest.json [ts=5ms]' ' 1a31022c-e20c-4a9e-9373-ad54a3729442' ) " {
303
303
local timestep_stack=" ${CLOE_ROOT} /tests/option_timestep_5.json"
304
304
cloe-engine check test_engine_smoketest.json " ${timestep_stack} "
305
305
cloe-engine run test_engine_smoketest.json " ${timestep_stack} "
306
306
}
307
307
308
- @test " $( testname " Expect check/run success" " test_engine_smoketest.json [ts=60ms]" " e7957fa0-1145-4458-b665-eec51c1f0da5" ) " {
308
+ @test " $( testname ' Expect check/run success' ' test_engine_smoketest.json [ts=60ms]' ' e7957fa0-1145-4458-b665-eec51c1f0da5' ) " {
309
309
local timestep_stack=" ${CLOE_ROOT} /tests/option_timestep_60.json"
310
310
cloe-engine check test_engine_smoketest.json " ${timestep_stack} "
311
311
cloe-engine run test_engine_smoketest.json " ${timestep_stack} "
0 commit comments