Five tests for logger with result check.

This commit is contained in:
swg
2023-11-24 23:02:09 +01:00
parent 3db5c7fd0f
commit 5350db8dc3
2 changed files with 80 additions and 9 deletions

View File

@@ -8,9 +8,14 @@ Checks a given folder for certain file extensions recursively. All found files w
The [check_folder_for_extension test folder](cffe_test) contains of 13 files, 12 of them images, which should be found by the test.
function call:
Function call:
```
check_folder ./cffe_test "*.jpg *.JPG"
check_folder $my_folder $extension_list
```
To test the function call:
```
check_folder_for_extension.sh ./cffe_test "*.jpg *.JPG"
```
For multiple extensions (or other parts of the file name to match) space separate the list, like shown above.
@@ -59,3 +64,8 @@ produces the following message in the log file:
```
logger 20231122_22:43:19 Warning: This is my message!
```
For testing the function call the script with just:
```
logger.sh
```