unlzma.tests 482 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. . ./testing.sh
  3. # testing "test name" "commands" "expected result" "file input" "stdin"
  4. # file input will be file called "input"
  5. # test can create a file "actual" instead of writing to stdout
  6. # Damaged encrypted streams
  7. testing "unlzma (bad archive 1)" \
  8. "unlzma <unlzma_issue_1.lzma >/dev/null; echo \$?" \
  9. "1
  10. " "" ""
  11. # Damaged encrypted streams
  12. testing "unlzma (bad archive 2)" \
  13. "unlzma <unlzma_issue_2.lzma >/dev/null; echo \$?" \
  14. "1
  15. " "" ""
  16. exit $FAILCOUNT