test-0070.sh 411 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 70
  4. # ------------------------------- Test 70 ------------------------------------
  5. # No rotation should occur because file is too young
  6. preptest test.log 70 2
  7. # Put in place a state file that will force a rotation
  8. cat > state <<EOF
  9. logrotate state -- version 2
  10. "$PWD/test.log" 2000-1-1
  11. EOF
  12. $RLR test-config.70
  13. checkoutput <<EOF
  14. test.log 0 zero
  15. test.log.1 0 first
  16. EOF