test-0024.sh 503 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 24
  4. # ------------------------------- Test 24 ------------------------------------
  5. # symlinks 2 - now copytruncate is used, but symlinks rotation is not allowed for
  6. # security reasons.
  7. # since logrotate-3.8.2, we don't support symlinks rotation officially.
  8. preptest test.log.original 24 1
  9. ln -s test.log.original test.log
  10. $RLR test-config.24 --force 2>error.log
  11. checkoutput <<EOF
  12. test.log 0 zero
  13. test.log.original 0 zero
  14. EOF
  15. rm -f test.log 2>/dev/null || true