test-0016.sh 432 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 16
  4. # ------------------------------- Test 16 ------------------------------------
  5. preptest test.log 16 1 0
  6. # log with 1 byte should not be rotated
  7. echo "a" > test.log
  8. $RLR test-config.16
  9. if [ -f test.log.1 ]; then
  10. echo "file $file does exist!"
  11. exit 2
  12. fi
  13. # log with 4 bytes should be rotated
  14. echo "zero" > test.log
  15. $RLR test-config.16
  16. checkoutput <<EOF
  17. test.log 0
  18. test.log.1 0 zero
  19. EOF