mirror of
https://git.busybox.net/busybox.git
synced 2024-11-30 17:13:32 +08:00
a1870f4807
function old new delta unpack_lzma_stream 2647 2653 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
22 lines
482 B
Bash
Executable File
22 lines
482 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./testing.sh
|
|
|
|
# testing "test name" "commands" "expected result" "file input" "stdin"
|
|
# file input will be file called "input"
|
|
# test can create a file "actual" instead of writing to stdout
|
|
|
|
# Damaged encrypted streams
|
|
testing "unlzma (bad archive 1)" \
|
|
"unlzma <unlzma_issue_1.lzma >/dev/null; echo \$?" \
|
|
"1
|
|
" "" ""
|
|
|
|
# Damaged encrypted streams
|
|
testing "unlzma (bad archive 2)" \
|
|
"unlzma <unlzma_issue_2.lzma >/dev/null; echo \$?" \
|
|
"1
|
|
" "" ""
|
|
|
|
exit $FAILCOUNT
|