test-0030.sh 420 B

12345678910111213141516171819
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 30
  4. # ------------------------------- Test 30 ------------------------------------
  5. # the file with the same date already exists, so it should not be overwritten
  6. # and log should not be rotated
  7. preptest test.log 30 1 0
  8. DATESTRING=$(/bin/date +%Y%m%d)
  9. echo "one" > test.log-$DATESTRING
  10. $RLR test-config.30 --force
  11. checkoutput <<EOF
  12. test.log 0 zero
  13. test.log-$DATESTRING 0 one
  14. EOF