mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
251fc70e97
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
21 lines
458 B
Bash
Executable File
21 lines
458 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2011 by Denys Vlasenko
|
|
# Licensed under GPLv2, see file LICENSE in this source tree.
|
|
|
|
. ./testing.sh
|
|
|
|
# testing "test name" "commands" "expected result" "file input" "stdin"
|
|
|
|
testing "uncompress < \x1f\x9d\x90 \x01 x N" \
|
|
'uncompress 2>&1 1>/dev/null; echo $?' \
|
|
"\
|
|
uncompress: corrupted data
|
|
1
|
|
" \
|
|
"" "\
|
|
\x1f\x9d\x90\
|
|
\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\
|
|
"
|
|
|
|
exit $FAILCOUNT
|