uncompress.tests 458 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # Copyright 2011 by Denys Vlasenko
  3. # Licensed under GPLv2, see file LICENSE in this source tree.
  4. . ./testing.sh
  5. # testing "test name" "commands" "expected result" "file input" "stdin"
  6. testing "uncompress < \x1f\x9d\x90 \x01 x N" \
  7. 'uncompress 2>&1 1>/dev/null; echo $?' \
  8. "\
  9. uncompress: corrupted data
  10. 1
  11. " \
  12. "" "\
  13. \x1f\x9d\x90\
  14. \01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\01\
  15. "
  16. exit $FAILCOUNT