test-0049.sh 371 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 49
  4. # ------------------------------- Test 49 ------------------------------------
  5. # Test that state files without hours/minutes/seconds still works properly
  6. preptest test.log 49 1 0
  7. cat > state << EOF
  8. logrotate state -- version 2
  9. "test.log" 2012-8-19
  10. EOF
  11. $RLR test-config.49
  12. checkoutput <<EOF
  13. test.log 0
  14. test.log.1 0 zero
  15. EOF