@@ -8,7 +8,7 @@ source ../arduino-ci-script.sh
8
8
echo " Exit status: $status | Expected: $expectedExitStatus "
9
9
[ " $status " -eq $expectedExitStatus ]
10
10
[ " ${# lines[@]} " -eq 1 ]
11
- outputRegex=' ^ '
11
+ outputRegex=" ^ERROR: Specified folder: \./check_library_structure/DoesntExist doesn't exist\.$ "
12
12
[[ " ${lines[0]} " =~ $outputRegex ]]
13
13
}
14
14
@@ -18,7 +18,7 @@ source ../arduino-ci-script.sh
18
18
echo " Exit status: $status | Expected: $expectedExitStatus "
19
19
[ " $status " -eq $expectedExitStatus ]
20
20
[ " ${# lines[@]} " -eq 1 ]
21
- outputRegex=' ^ '
21
+ outputRegex=" ^WARNING: File \./check_library_structure/PdeSketchExtension/examples/example1/foo\.pde uses the \.pde extension\. For Arduino sketches, it's recommended to use the \.ino extension instead\. If this is a Processing sketch then \.pde is the correct extension\.$ "
22
22
[[ " ${lines[0]} " =~ $outputRegex ]]
23
23
}
24
24
@@ -28,7 +28,7 @@ source ../arduino-ci-script.sh
28
28
echo " Exit status: $status | Expected: $expectedExitStatus "
29
29
[ " $status " -eq $expectedExitStatus ]
30
30
[ " ${# lines[@]} " -eq 1 ]
31
- outputRegex=' ^'
31
+ outputRegex=' ^ERROR: Sketch file ./check_library_structure/IncorrectSketchExtensionCase/examples/example1/example1\.Ino has incorrect extension case, which causes it to not be recognized on a filename case-sensitive OS such as Linux\.$ '
32
32
[[ " ${lines[0]} " =~ $outputRegex ]]
33
33
}
34
34
@@ -38,7 +38,7 @@ source ../arduino-ci-script.sh
38
38
echo " Exit status: $status | Expected: $expectedExitStatus "
39
39
[ " $status " -eq $expectedExitStatus ]
40
40
[ " ${# lines[@]} " -eq 1 ]
41
- outputRegex=' ^'
41
+ outputRegex=' ^WARNING: Discouraged folder name: 1example1\. Folder name beginning with a number is only supported by Arduino IDE 1\.8\.4 and newer\.$ '
42
42
[[ " ${lines[0]} " =~ $outputRegex ]]
43
43
}
44
44
@@ -48,7 +48,7 @@ source ../arduino-ci-script.sh
48
48
echo " Exit status: $status | Expected: $expectedExitStatus "
49
49
[ " $status " -eq $expectedExitStatus ]
50
50
[ " ${# lines[@]} " -eq 1 ]
51
- outputRegex=' ^'
51
+ outputRegex=' ^ERROR: Invalid folder name: -example1\. Folder name beginning with a - or \. is not allowed\.$ '
52
52
[[ " ${lines[0]} " =~ $outputRegex ]]
53
53
}
54
54
@@ -58,7 +58,7 @@ source ../arduino-ci-script.sh
58
58
echo " Exit status: $status | Expected: $expectedExitStatus "
59
59
[ " $status " -eq $expectedExitStatus ]
60
60
[ " ${# lines[@]} " -eq 1 ]
61
- outputRegex=' ^'
61
+ outputRegex=' ^ERROR: Invalid folder name: example 1\. Only letters, numbers, dots, dashes, and underscores are allowed\.$ '
62
62
[[ " ${lines[0]} " =~ $outputRegex ]]
63
63
}
64
64
@@ -68,7 +68,7 @@ source ../arduino-ci-script.sh
68
68
echo " Exit status: $status | Expected: $expectedExitStatus "
69
69
[ " $status " -eq $expectedExitStatus ]
70
70
[ " ${# lines[@]} " -eq 1 ]
71
- outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.'
71
+ outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.$ '
72
72
[[ " ${lines[0]} " =~ $outputRegex ]]
73
73
}
74
74
@@ -78,7 +78,7 @@ source ../arduino-ci-script.sh
78
78
echo " Exit status: $status | Expected: $expectedExitStatus "
79
79
[ " $status " -eq $expectedExitStatus ]
80
80
[ " ${# lines[@]} " -eq 1 ]
81
- outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.'
81
+ outputRegex=' ^ERROR: Folder name asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf exceeds the maximum of 63 characters\.$ '
82
82
[[ " ${lines[0]} " =~ $outputRegex ]]
83
83
}
84
84
@@ -88,7 +88,7 @@ source ../arduino-ci-script.sh
88
88
echo " Exit status: $status | Expected: $expectedExitStatus "
89
89
[ " $status " -eq $expectedExitStatus ]
90
90
[ " ${# lines[@]} " -eq 1 ]
91
- outputRegex=' ^ERROR: Sketch folder name \./check_library_structure/SketchFolderNameMismatch/examples/example1 does not match the sketch filename\.'
91
+ outputRegex=' ^ERROR: Sketch folder name \./check_library_structure/SketchFolderNameMismatch/examples/example1 does not match the sketch filename\.$ '
92
92
[[ " ${lines[0]} " =~ $outputRegex ]]
93
93
}
94
94
@@ -98,7 +98,7 @@ source ../arduino-ci-script.sh
98
98
echo " Exit status: $status | Expected: $expectedExitStatus "
99
99
[ " $status " -eq $expectedExitStatus ]
100
100
[ " ${# lines[@]} " -eq 1 ]
101
- outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderUnix/examples/example1\)\.'
101
+ outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderUnix/examples/example1\)\.$ '
102
102
[[ " ${lines[0]} " =~ $outputRegex ]]
103
103
}
104
104
@@ -108,6 +108,6 @@ source ../arduino-ci-script.sh
108
108
echo " Exit status: $status | Expected: $expectedExitStatus "
109
109
[ " $status " -eq $expectedExitStatus ]
110
110
[ " ${# lines[@]} " -eq 1 ]
111
- outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderMac/examples/example1\)\.'
111
+ outputRegex=' ^ERROR: Multiple sketches found in the same folder \(\./check_library_structure/MultipleSketchesInSameFolderMac/examples/example1\)\.$ '
112
112
[[ " ${lines[0]} " =~ $outputRegex ]]
113
113
}
0 commit comments