@@ -225,38 +225,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
225
225
[[ " ${lines[0]} " =~ $outputRegex ]]
226
226
}
227
227
228
- # check_sketch_structure
229
-
230
- @test " check_sketch_structure \" ./check_library_structure/DoesntExist\" " {
231
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_FOLDER_DOESNT_EXIST_EXIT_STATUS
232
- run check_sketch_structure " ./check_library_structure/DoesntExist"
233
- echo " Exit status: $status | Expected: $expectedExitStatus "
234
- [ " $status " -eq $expectedExitStatus ]
235
- [ " ${# lines[@]} " -eq 1 ]
236
- outputRegex=' ^'
237
- [[ " ${lines[0]} " =~ $outputRegex ]]
238
- }
239
-
240
- @test " check_sketch_structure \" ./check_library_structure/PdeSketchExtension\" " {
241
- expectedExitStatus=$ARDUINO_CI_SCRIPT_SUCCESS_EXIT_STATUS
242
- run check_sketch_structure " ./check_library_structure/PdeSketchExtension"
243
- echo " Exit status: $status | Expected: $expectedExitStatus "
244
- [ " $status " -eq $expectedExitStatus ]
245
- [ " ${# lines[@]} " -eq 1 ]
246
- outputRegex=' ^'
247
- [[ " ${lines[0]} " =~ $outputRegex ]]
248
- }
249
-
250
- @test " check_sketch_structure \" ./check_library_structure/IncorrectSketchExtensionCase\" " {
251
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_INCORRECT_EXTENSION_CASE_EXIT_STATUS
252
- run check_sketch_structure " ./check_library_structure/IncorrectSketchExtensionCase"
253
- echo " Exit status: $status | Expected: $expectedExitStatus "
254
- [ " $status " -eq $expectedExitStatus ]
255
- [ " ${# lines[@]} " -eq 1 ]
256
- outputRegex=' ^'
257
- [[ " ${lines[0]} " =~ $outputRegex ]]
258
- }
259
-
260
228
@test " check_library_structure \" ./check_library_structure/IncorrectSketchExtensionCase\" " {
261
229
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_INCORRECT_SKETCH_EXTENSION_CASE_EXIT_STATUS
262
230
run check_library_structure " ./check_library_structure/IncorrectSketchExtensionCase"
@@ -267,26 +235,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
267
235
[[ " ${lines[0]} " =~ $outputRegex ]]
268
236
}
269
237
270
- @test " check_sketch_structure \" ./check_library_structure/SketchFolderStartsWithNumber\" " {
271
- expectedExitStatus=$ARDUINO_CI_SCRIPT_SUCCESS_EXIT_STATUS
272
- run check_sketch_structure " ./check_library_structure/SketchFolderStartsWithNumber"
273
- echo " Exit status: $status | Expected: $expectedExitStatus "
274
- [ " $status " -eq $expectedExitStatus ]
275
- [ " ${# lines[@]} " -eq 1 ]
276
- outputRegex=' ^'
277
- [[ " ${lines[0]} " =~ $outputRegex ]]
278
- }
279
-
280
- @test " check_sketch_structure \" ./check_library_structure/InvalidCharactersAtStartOfSketchFolder\" " {
281
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_FOLDER_NAME_HAS_INVALID_FIRST_CHARACTER_EXIT_STATUS
282
- run check_sketch_structure " ./check_library_structure/InvalidCharactersAtStartOfSketchFolder"
283
- echo " Exit status: $status | Expected: $expectedExitStatus "
284
- [ " $status " -eq $expectedExitStatus ]
285
- [ " ${# lines[@]} " -eq 1 ]
286
- outputRegex=' ^'
287
- [[ " ${lines[0]} " =~ $outputRegex ]]
288
- }
289
-
290
238
@test " check_library_structure \" ./check_library_structure/InvalidCharactersAtStartOfSketchFolder\" " {
291
239
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_SKETCH_FOLDER_NAME_HAS_INVALID_FIRST_CHARACTER_EXIT_STATUS
292
240
run check_library_structure " ./check_library_structure/InvalidCharactersAtStartOfSketchFolder"
@@ -297,16 +245,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
297
245
[[ " ${lines[0]} " =~ $outputRegex ]]
298
246
}
299
247
300
- @test " check_sketch_structure \" ./check_library_structure/InvalidCharactersInSketchFolder\" " {
301
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_FOLDER_NAME_HAS_INVALID_CHARACTER_EXIT_STATUS
302
- run check_sketch_structure " ./check_library_structure/InvalidCharactersInSketchFolder"
303
- echo " Exit status: $status | Expected: $expectedExitStatus "
304
- [ " $status " -eq $expectedExitStatus ]
305
- [ " ${# lines[@]} " -eq 1 ]
306
- outputRegex=' ^'
307
- [[ " ${lines[0]} " =~ $outputRegex ]]
308
- }
309
-
310
248
@test " check_library_structure \" ./check_library_structure/InvalidCharactersInSketchFolder\" " {
311
249
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_SKETCH_FOLDER_NAME_HAS_INVALID_CHARACTER_EXIT_STATUS
312
250
run check_library_structure " ./check_library_structure/InvalidCharactersInSketchFolder"
@@ -317,16 +255,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
317
255
[[ " ${lines[0]} " =~ $outputRegex ]]
318
256
}
319
257
320
- @test " check_sketch_structure \" ./check_library_structure/SketchFolderNameTooLong\" " {
321
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_FOLDER_NAME_TOO_LONG_EXIT_STATUS
322
- run check_sketch_structure " ./check_library_structure/SketchFolderNameTooLong"
323
- echo " Exit status: $status | Expected: $expectedExitStatus "
324
- [ " $status " -eq $expectedExitStatus ]
325
- [ " ${# lines[@]} " -eq 1 ]
326
- outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.'
327
- [[ " ${lines[0]} " =~ $outputRegex ]]
328
- }
329
-
330
258
@test " check_library_structure \" ./check_library_structure/SketchFolderNameTooLong\" " {
331
259
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_SKETCH_FOLDER_NAME_TOO_LONG_EXIT_STATUS
332
260
run check_library_structure " ./check_library_structure/SketchFolderNameTooLong"
@@ -337,16 +265,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
337
265
[[ " ${lines[0]} " =~ $outputRegex ]]
338
266
}
339
267
340
- @test " check_sketch_structure \" ./check_library_structure/SketchFolderNameTooLongExtras\" " {
341
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_FOLDER_NAME_TOO_LONG_EXIT_STATUS
342
- run check_sketch_structure " ./check_library_structure/SketchFolderNameTooLongExtras"
343
- echo " Exit status: $status | Expected: $expectedExitStatus "
344
- [ " $status " -eq $expectedExitStatus ]
345
- [ " ${# lines[@]} " -eq 1 ]
346
- outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.'
347
- [[ " ${lines[0]} " =~ $outputRegex ]]
348
- }
349
-
350
268
@test " check_library_structure \" ./check_library_structure/SketchFolderNameTooLongExtras\" " {
351
269
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_SKETCH_FOLDER_NAME_TOO_LONG_EXIT_STATUS
352
270
run check_library_structure " ./check_library_structure/SketchFolderNameTooLongExtras"
@@ -357,16 +275,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
357
275
[[ " ${lines[0]} " =~ $outputRegex ]]
358
276
}
359
277
360
- @test " check_sketch_structure \" ./check_library_structure/SketchFolderNameMismatch\" " {
361
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_SKETCH_NAME_MISMATCH_EXIT_STATUS
362
- run check_sketch_structure " ./check_library_structure/SketchFolderNameMismatch"
363
- echo " Exit status: $status | Expected: $expectedExitStatus "
364
- [ " $status " -eq $expectedExitStatus ]
365
- [ " ${# lines[@]} " -eq 1 ]
366
- outputRegex=' ^ERROR: Sketch folder name \./check_library_structure/SketchFolderNameMismatch/examples/example1 does not match the sketch filename\.'
367
- [[ " ${lines[0]} " =~ $outputRegex ]]
368
- }
369
-
370
278
@test " check_library_structure \" ./check_library_structure/SketchFolderNameMismatch\" " {
371
279
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_SKETCH_NAME_MISMATCH_EXIT_STATUS
372
280
run check_library_structure " ./check_library_structure/SketchFolderNameMismatch"
@@ -377,16 +285,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
377
285
[[ " ${lines[0]} " =~ $outputRegex ]]
378
286
}
379
287
380
- @test " check_sketch_structure \" ./check_library_structure/MultipleSketchesInSameFolderUnix\" " {
381
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_MULTIPLE_SKETCHES_EXIT_STATUS
382
- run check_sketch_structure " ./check_library_structure/MultipleSketchesInSameFolderUnix"
383
- echo " Exit status: $status | Expected: $expectedExitStatus "
384
- [ " $status " -eq $expectedExitStatus ]
385
- [ " ${# lines[@]} " -eq 1 ]
386
- outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderUnix/examples/example1\)\.'
387
- [[ " ${lines[0]} " =~ $outputRegex ]]
388
- }
389
-
390
288
@test " check_library_structure \" ./check_library_structure/MultipleSketchesInSameFolderUnix\" " {
391
289
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_MULTIPLE_SKETCHES_EXIT_STATUS
392
290
run check_library_structure " ./check_library_structure/MultipleSketchesInSameFolderUnix"
@@ -397,16 +295,6 @@ TESTS_BATS_APPLICATION_FOLDER="$APPLICATION_FOLDER"
397
295
[[ " ${lines[0]} " =~ $outputRegex ]]
398
296
}
399
297
400
- @test " check_sketch_structure \" ./check_library_structure/MultipleSketchesInSameFolderMac\" " {
401
- expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_SKETCH_STRUCTURE_MULTIPLE_SKETCHES_EXIT_STATUS
402
- run check_sketch_structure " ./check_library_structure/MultipleSketchesInSameFolderMac"
403
- echo " Exit status: $status | Expected: $expectedExitStatus "
404
- [ " $status " -eq $expectedExitStatus ]
405
- [ " ${# lines[@]} " -eq 1 ]
406
- outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderMac/examples/example1\)\.'
407
- [[ " ${lines[0]} " =~ $outputRegex ]]
408
- }
409
-
410
298
@test " check_library_structure \" ./check_library_structure/MultipleSketchesInSameFolderMac\" " {
411
299
expectedExitStatus=$ARDUINO_CI_SCRIPT_CHECK_LIBRARY_STRUCTURE_MULTIPLE_SKETCHES_EXIT_STATUS
412
300
run check_library_structure " ./check_library_structure/MultipleSketchesInSameFolderMac"
0 commit comments