test-0057.sh 647 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. . ./test-common.sh
  3. cleanup 57
  4. # ------------------------------- Test 57 ------------------------------------
  5. # When compressing program prints something to stderr, we should prepend it
  6. # with the log name.
  7. preptest test.log 57 1
  8. $RLR test-config.57 --force 2>error.log
  9. grep "error: Compressing" error.log >/dev/null
  10. if [ $? != 0 ]; then
  11. cat error.log
  12. echo "No error printed, but there should be one."
  13. exit 3
  14. fi
  15. grep "compression error" error.log >/dev/null
  16. if [ $? != 0 ]; then
  17. cat error.log
  18. echo "No error printed, but there should be one."
  19. exit 3
  20. fi
  21. rm -f error.log
  22. checkoutput <<EOF
  23. test.log 0
  24. test.log.1.gz 1 zero
  25. EOF