test-0076.sh 426 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 76
  4. # ------------------------------- Test 76 ------------------------------------
  5. # compress and mail should work when logrotate runs with closed stdin/stdout
  6. # https://github.com/logrotate/logrotate/issues/154
  7. preptest test.log 76 2 2
  8. $RLR test-config.76 --verbose <&- >&-
  9. checkoutput <<EOF
  10. test.log 0
  11. test.log.1.gz 1 zero
  12. test.log.2.gz 1 first
  13. EOF
  14. checkmail test.log.3.gz second