test-0027.sh 444 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 27
  4. # ------------------------------- Test 27 ------------------------------------
  5. # logrotate fails to find the correct file to mail, when using "mailfirst" in
  6. # combination with "delaycompress" and "dateext" option.
  7. preptest test.log 27 1 0
  8. DATESTRING=$(/bin/date +%Y%m%d)
  9. $RLR test-config.27 --force
  10. checkoutput <<EOF
  11. test.log 0
  12. test.log-$DATESTRING 0 zero
  13. EOF
  14. checkmail test.log-$DATESTRING zero