Skip to content

Commit 637f44c

Browse files
committed
tests: Replace testname arg quotes with single quotes
1 parent b5fb100 commit 637f44c

File tree

6 files changed

+71
-71
lines changed

6 files changed

+71
-71
lines changed

engine/tests/test_engine.bats

+48-48
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ check_engine_with_server() {
99
cloe-engine version | grep -F "server: true" &>/dev/null
1010
}
1111

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')" {
1313
# Note: you will have to update the schema files every time you change the schema,
1414
# in order that this test completes successfully. Here's how you do it.
1515
#
@@ -23,7 +23,7 @@ check_engine_with_server() {
2323
diff <(cloe-engine usage -j 2>/dev/null) test_engine_json_schema.json
2424
}
2525

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')" {
2727
if ! type diff &>/dev/null; then
2828
skip "required program diff not present"
2929
fi
@@ -37,21 +37,21 @@ check_engine_with_server() {
3737
${reference_file}
3838
}
3939

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')" {
4141
cloe-engine check test_engine_smoketest.json
4242
}
4343

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')" {
4545
cloe-engine run test_engine_smoketest.json
4646
}
4747

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')" {
4949
run cloe-engine check test_bad_logging.json
5050
assert_check_failure $status $output
5151
test $status -eq $CLOE_EXIT_UNKNOWN
5252
}
5353

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')" {
5555
# Currently, cloe-engine cannot tell before starting a simulation
5656
# whether the triggers exist or not.
5757
cloe-engine check test_engine_invalid_trigger.json
@@ -66,11 +66,11 @@ check_engine_with_server() {
6666
cloe-engine run test_engine_optional_trigger.json
6767
}
6868

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')" {
7070
cloe-engine check test_engine_curl_succeed.json
7171
}
7272

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')" {
7474
if ! type curl &>/dev/null; then
7575
skip "required program curl not present"
7676
fi
@@ -80,169 +80,169 @@ check_engine_with_server() {
8080
cloe-engine run test_engine_curl_succeed.json
8181
}
8282

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')" {
8484
# When disabling the `enable_command_action` flag, curl
8585
# should not be used and the simulation should fail by default.
8686
run cloe-engine run test_engine_curl_succeed.json \
8787
<(echo '{ "version": "4", "engine": { "security": { "enable_command_action": false } } }')
8888
test $status -eq $CLOE_EXIT_FAILURE
8989
}
9090

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')" {
9292
run cloe-engine check test_engine_empty.json
9393
assert_check_failure $status $output
9494
test $status -eq $CLOE_EXIT_UNKNOWN
9595
test $(echo $output 2>&1 | wc -l) -lt 32
9696
}
9797

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')" {
9999
run cloe-engine check test_engine_version_absent.json
100100
assert_check_failure $status $output
101101
test $status -eq $CLOE_EXIT_UNKNOWN
102102
test $(echo $output 2>&1 | wc -l) -lt 32
103103
}
104104

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')" {
106106
run cloe-engine check test_engine_version_wrong.json
107107
assert_check_failure $status $output
108108
test $status -eq $CLOE_EXIT_UNKNOWN
109109
test $(echo $output 2>&1 | wc -l) -lt 32
110110
}
111111

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')" {
113113
cloe-engine check test_engine_fail_trigger.json
114114
}
115115

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')" {
117117
run cloe-engine run test_engine_fail_trigger.json
118118
assert_exit_failure $status
119119
test $status -eq $CLOE_EXIT_FAILURE
120120
echo "$output" | grep '"outcome": "failure"'
121121
}
122122

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')" {
124124
run cloe-engine check test_engine_hook_invalid.json
125125
assert_check_failure $status $output
126126
test $status -eq $CLOE_EXIT_UNKNOWN
127127
}
128128

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')" {
130130
run cloe-engine check test_engine_hook_noexec.json
131131
assert_check_failure $status $output
132132
test $status -eq $CLOE_EXIT_UNKNOWN
133133
}
134134

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')" {
136136
cloe-engine check test_engine_hook_failure.json
137137
}
138138

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')" {
140140
run cloe-engine run test_engine_hook_failure.json
141141
test $status -eq $CLOE_EXIT_ABORTED
142142
}
143143

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')" {
145145
cloe-engine check test_engine_hook_ok.json
146146
}
147147

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')" {
149149
cloe-engine run test_engine_hook_ok.json
150150
}
151151

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')" {
153153
cloe-engine check test_engine_ignore.json
154154
}
155155

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')" {
157157
cloe-engine run test_engine_ignore.json
158158
}
159159

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')" {
161161
run cloe-engine check test_engine_include_nonexistent.json
162162
assert_check_failure $status $output
163163
test $status -eq $CLOE_EXIT_UNKNOWN
164164
}
165165

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')" {
167167
run cloe-engine check test_engine_include_self.json
168168
assert_check_failure $status $output
169169
test $status -eq $CLOE_EXIT_UNKNOWN
170170
}
171171

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')" {
173173
run cloe-engine check test_engine_incomplete.json
174174
assert_check_failure $status $output
175175
test $status -eq $CLOE_EXIT_UNKNOWN
176176
}
177177

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')" {
179179
run cloe-engine run test_engine_incomplete.json
180180
test $status -eq $CLOE_EXIT_UNKNOWN
181181
}
182182

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')" {
184184
if ! type kill &>/dev/null; then
185185
skip "required program kill not present"
186186
fi
187187

188188
cloe-engine check test_engine_keep_alive.json
189189
}
190190

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')" {
192192
if ! type kill &>/dev/null; then
193193
skip "required program kill not present"
194194
fi
195195

196196
cloe-engine run test_engine_keep_alive.json
197197
}
198198

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')" {
200200
cloe-engine check test_engine_namespaced_smoketest.json
201201
}
202202

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')" {
204204
cloe-engine run test_engine_namespaced_smoketest.json
205205
}
206206

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')" {
208208
run cloe-engine check test_engine_no_binding.json
209209
assert_check_failure $status $output
210210
test $status -eq $CLOE_EXIT_UNKNOWN
211211
}
212212

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')" {
214214
run cloe-engine run test_engine_no_binding.json
215215
assert_check_failure $status $output
216216
test $status -eq $CLOE_EXIT_UNKNOWN
217217
}
218218

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')" {
220220
run cloe-engine check test_engine_no_vehicle.json
221221
assert_check_failure $status $output
222222
test $status -eq $CLOE_EXIT_UNKNOWN
223223
}
224224

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')" {
226226
run cloe-engine run test_engine_no_vehicle.json
227227
test $status -eq $CLOE_EXIT_UNKNOWN
228228
}
229229

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')" {
231231
run cloe-engine check test_engine_unknown_vehicle.json
232232
assert_check_failure $status $output
233233
test $status -eq $CLOE_EXIT_UNKNOWN
234234
}
235235

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')" {
237237
run cloe-engine run test_engine_unknown_vehicle.json
238238
test $status -eq $CLOE_EXIT_UNKNOWN
239239
}
240240

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')" {
242242
cloe-engine check test_engine_pause.json
243243
}
244244

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')" {
246246
if ! type curl &>/dev/null; then
247247
skip "required program curl not present"
248248
fi
@@ -253,38 +253,38 @@ check_engine_with_server() {
253253
cloe-engine run test_engine_pause.json
254254
}
255255

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')" {
257257
cloe-engine check test_engine_sticky_trigger.json
258258
}
259259

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')" {
261261
skip "not implemented yet"
262262
cloe-engine run test_engine_sticky_trigger.json
263263
}
264264

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')" {
266266
cloe-engine check test_engine_stuck_controller.json
267267
}
268268

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')" {
270270
run cloe-engine run test_engine_stuck_controller.json
271271
assert_exit_failure $status
272272
echo "$output" | grep '"outcome": "aborted"'
273273
}
274274

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')" {
276276
cloe-engine check test_engine_stuck_controller_continue.json
277277
}
278278

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')" {
280280
cloe-engine run test_engine_stuck_controller_continue.json
281281
}
282282

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')" {
284284
cloe-engine check test_engine_watchdog.json
285285
}
286286

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')" {
288288
if ! type curl &>/dev/null; then
289289
skip "required program curl not present"
290290
fi
@@ -299,13 +299,13 @@ check_engine_with_server() {
299299
test $status -eq $CLOE_EXIT_SYSKILL
300300
}
301301

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')" {
303303
local timestep_stack="${CLOE_ROOT}/tests/option_timestep_5.json"
304304
cloe-engine check test_engine_smoketest.json "${timestep_stack}"
305305
cloe-engine run test_engine_smoketest.json "${timestep_stack}"
306306
}
307307

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')" {
309309
local timestep_stack="${CLOE_ROOT}/tests/option_timestep_60.json"
310310
cloe-engine check test_engine_smoketest.json "${timestep_stack}"
311311
cloe-engine run test_engine_smoketest.json "${timestep_stack}"

engine/tests/test_engine_replica_smoketest.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ teardown() {
1414
rm -r "${CLOE_TMP_REGISTRY}" || true
1515
}
1616

17-
@test "$(testname "Expect exact replication" "test_engine_replica_smoketest.json" "f4fa1794-cc78-4ae6-aa5e-6a3ed3c7913c")" {
17+
@test "$(testname 'Expect exact replication' 'test_engine_replica_smoketest.json' 'f4fa1794-cc78-4ae6-aa5e-6a3ed3c7913c')" {
1818
# Clean up in case temporary registry already exists.
1919
if [[ -d "$CLOE_TMP_REGISTRY" ]]; then
2020
rm -r "$CLOE_TMP_REGISTRY" || true

0 commit comments

Comments
 (0)