test-0013.sh 498 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. . ./test-common.sh
  3. # check rotation into a directory given as an absolute pathname
  4. cleanup 13
  5. # ------------------------------- Test 13 ------------------------------------
  6. preptest test.log 13 1 0
  7. rm -rf testdir
  8. $RLR test-config.13 --force
  9. ls -l|grep testdir|grep "drwx------." 2>/dev/null >/dev/null
  10. if [ $? != 0 ]; then
  11. echo "testdir should have mode 2700, but it has:"
  12. ls -l|grep testdir
  13. exit 3
  14. fi
  15. checkoutput <<EOF
  16. test.log 0
  17. testdir/test.log.1 0 zero
  18. EOF
  19. rm -rf testdir