Five tests for logger with result check.
This commit is contained in:
14
README.md
14
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user