1234567891011121314151617181920212223242526 |
- #!/bin/bash
- . ./test-common.sh
- cleanup 54
- # ------------------------------- Test 54 ------------------------------------
- # removing last log file when using %Y-%m-%d
- rm -f *test.log*
- preptest test.log 54 1 0
- DATE=""
- for i in $(seq 1 60)
- do
- DATE=$(/bin/date "+%Y-%m-%d" --date "$i day ago" 2>/dev/null)
- echo "x" > test.log-$DATE
- done
- $RLR test-config.54 --force
- if [ -e test.log-$DATE ]; then
- echo "File test.log-$DATE should not exist (it should be deleted)"
- exit 3
- fi
- rm -f *test.log*
|