mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
b47b3ce1bd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
40 lines
624 B
Bash
Executable File
40 lines
624 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2008 by Denys Vlasenko
|
|
# Licensed under GPLv2, see file LICENSE in this source tree.
|
|
|
|
. ./testing.sh
|
|
|
|
# testing "test name" "commands" "expected result" "file input" "stdin"
|
|
|
|
optional DESKTOP
|
|
testing "od -b" \
|
|
"od -b" \
|
|
"\
|
|
0000000 110 105 114 114 117
|
|
0000005
|
|
" \
|
|
"" "HELLO"
|
|
SKIP=
|
|
|
|
optional DESKTOP LONG_OPTS
|
|
testing "od -b --traditional" \
|
|
"od -b --traditional" \
|
|
"\
|
|
0000000 110 105 114 114 117
|
|
0000005
|
|
" \
|
|
"" "HELLO"
|
|
SKIP=
|
|
|
|
optional DESKTOP LONG_OPTS
|
|
testing "od -b --traditional FILE" \
|
|
"od -b --traditional input" \
|
|
"\
|
|
0000000 110 105 114 114 117
|
|
0000005
|
|
" \
|
|
"HELLO" ""
|
|
SKIP=
|
|
|
|
exit $FAILCOUNT
|