123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/bin/bash
- . ./test-common.sh
- cleanup 1
- preptest test.log 1 2
- $RLR test-config.1
- checkoutput <<EOF
- test.log 0 zero
- test.log.1 0 first
- EOF
- cat > state <<EOF
- logrotate state -- version 1
- "$PWD/test.log" 2000-1-1
- EOF
- $RLR test-config.1
- checkoutput <<EOF
- test.log 0
- test.log.1 0 zero
- test.log.2 0 first
- EOF
- $RLR test-config.1
- checkoutput <<EOF
- test.log
- test.log.1 0 zero
- test.log.2 0 first
- EOF
|