You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fail "${testCaseNumber}.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
59
+
fail "2.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
63
60
fi
64
61
65
-
testCaseNumber=$((testCaseNumber +1))
66
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect a changed file when the hashfile contains a different value as the current one."
62
+
echo"testDetectChangedFiles: 3.) Detect a changed file when the hashfile contains a different value as the current one."
67
63
echo"Some CHANGED Test Content">"${testFileForChangeDetection}"
fail "${testCaseNumber}.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
66
+
fail "3.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
71
67
fi
72
68
73
-
testCaseNumber=$((testCaseNumber +1))
74
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect a changed directory when the hashfile contains a different value as the current one."
69
+
echo"testDetectChangedFiles: 4.) Detect an unchanged file when the hashfile contains the same value as the current one again. Same as 2.) but different after 3.)."
fail "4.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
73
+
fi
74
+
75
+
echo"testDetectChangedFiles: 5.) Detect a changed directory when the hashfile contains a different value as the current one."
75
76
echo"Some CHANGED Test Directory Content">"${testFileForChangeDetection}"
fail "${testCaseNumber}.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
79
+
fail "5.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
79
80
fi
80
81
81
-
testCaseNumber=$((testCaseNumber +1))
82
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect an unchanged directory when the hashfile contains the same value as the newly calculated one."
82
+
echo"testDetectChangedFiles: 6.) Detect an unchanged directory when the hashfile contains the same value as the newly calculated one."
fail "${testCaseNumber}.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
86
-
fi
87
-
88
-
testCaseNumber=$((testCaseNumber +1))
89
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect an unchanged file when the hashfile contains the same value as the current one again. Same as 2.) but different after 3.)."
fail "${testCaseNumber}.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
85
+
fail "6.) Tests failed: Expected return code 0 for an existing hash file with matching value (no change detected), but got ${changeDetectionReturnCode}."
93
86
fi
94
87
95
-
testCaseNumber=$((testCaseNumber +1))
96
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect a changed file when the hashfile contains a different value as the current one in read-only mode."
88
+
echo"testDetectChangedFiles: 7.) Detect a changed file when the hashfile contains a different value as the current one in read-only mode."
97
89
echo"Some CHANGED AGAIN Test Content">"${testFileForChangeDetection}"
fail "${testCaseNumber}.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
92
+
fail "7.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
101
93
fi
102
94
103
-
testCaseNumber=$((testCaseNumber +1))
104
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Detect a changed file when the hashfile hadn't been update with the last change detection in read-only mode."
95
+
echo"testDetectChangedFiles: 8.) Detect a changed file when the hashfile hadn't been update with the last change detection in read-only mode."
fail "${testCaseNumber}.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
98
+
fail "8.) Tests failed: Expected return code 2 for an existing hash file with differing value (change detected), but got ${changeDetectionReturnCode}."
108
99
fi
109
100
110
-
testCaseNumber=$((testCaseNumber +1))
111
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Fail on not existing first path"
101
+
echo"testDetectChangedFiles: 9.) Fail on not existing first path"
112
102
if changeDetectionReturnCode=$(source"${SCRIPTS_DIR}/detectChangedFiles.sh" --hashfile "${testHashFile}" --paths "./nonExistingFile.txt,${testFileForChangeDetection}");then
113
-
fail "${testCaseNumber}.) Tests failed: Expected to fail due to a wrong paths option, but got ${changeDetectionReturnCode}."
103
+
fail "9.) Tests failed: Expected to fail due to a wrong paths option, but got ${changeDetectionReturnCode}."
114
104
fi
115
105
116
106
testCaseNumber=$((testCaseNumber +1))
117
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Fail on not existing second path"
107
+
echo"testDetectChangedFiles: 10.) Fail on not existing second path"
118
108
if changeDetectionReturnCode=$(source"${SCRIPTS_DIR}/detectChangedFiles.sh" --hashfile "${testHashFile}" --paths "${testFileForChangeDetection},./nonExistingFile2.txt");then
119
-
fail "${testCaseNumber}.) Tests failed: Expected to fail due to a wrong paths option, but got ${changeDetectionReturnCode}."
109
+
fail "10.) Tests failed: Expected to fail due to a wrong paths option, but got ${changeDetectionReturnCode}."
120
110
fi
121
111
122
112
testCaseNumber=$((testCaseNumber +1))
123
-
echo"testDetectChangedFiles: ${testCaseNumber}.) Interpret missing paths as 'nothing changed'."
0 commit comments