test-0060.sh 522 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 60
  4. # ------------------------------- Test 60 ------------------------------------
  5. # Test we log debug output using -l option when passed.
  6. preptest test.log 60 1 0
  7. $RLR test-config.60 --force -l ./logrotate.log
  8. DATESTRING=$(/bin/date +%Y-%m-%d-%H)
  9. grep "reading config file test-config.60" logrotate.log >/dev/null
  10. if [ $? != 0 ]; then
  11. echo "There is no log output in logrotate.log"
  12. exit 3
  13. fi
  14. rm -f logrotate.log
  15. checkoutput <<EOF
  16. test.log 0
  17. test.log.$DATESTRING 0 zero
  18. EOF