test-0041.sh 387 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 41
  4. # ------------------------------- Test 41 ------------------------------------
  5. # Test that prerotate and postrotate scripts are called only when the log files
  6. # are actually rotated
  7. preptest test.log 41 1
  8. echo x > test2.log
  9. $RLR test-config.41
  10. checkoutput <<EOF
  11. test.log 0
  12. test.log.1 0 zero
  13. test2.log 0 x
  14. scriptout 0 test.log;test.log;
  15. EOF