2008-04-15 01:20:06 +05:30
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2008 by Denys Vlasenko
|
2010-08-16 23:44:46 +05:30
|
|
|
# Licensed under GPLv2, see file LICENSE in this source tree.
|
2008-04-15 01:20:06 +05:30
|
|
|
|
2009-11-05 05:11:22 +05:30
|
|
|
. ./testing.sh
|
2008-04-15 01:20:06 +05:30
|
|
|
|
2011-05-21 21:13:06 +05:30
|
|
|
# testing "test name" "commands" "expected result" "file input" "stdin"
|
2008-04-15 01:20:06 +05:30
|
|
|
|
2010-05-11 07:23:57 +05:30
|
|
|
optional DESKTOP
|
2008-04-15 01:20:06 +05:30
|
|
|
testing "od -b" \
|
2008-04-15 01:26:46 +05:30
|
|
|
"od -b" \
|
2008-04-15 01:20:06 +05:30
|
|
|
"\
|
2008-04-15 01:26:46 +05:30
|
|
|
0000000 110 105 114 114 117
|
2009-07-18 19:52:26 +05:30
|
|
|
0000005
|
2008-04-15 01:20:06 +05:30
|
|
|
" \
|
|
|
|
"" "HELLO"
|
2010-05-11 07:23:57 +05:30
|
|
|
SKIP=
|
2008-04-15 01:20:06 +05:30
|
|
|
|
2011-05-21 21:13:06 +05:30
|
|
|
optional DESKTOP
|
|
|
|
testing "od -b --traditional" \
|
|
|
|
"od -b --traditional" \
|
|
|
|
"\
|
|
|
|
0000000 110 105 114 114 117
|
|
|
|
0000005
|
|
|
|
" \
|
|
|
|
"" "HELLO"
|
|
|
|
SKIP=
|
|
|
|
|
|
|
|
optional DESKTOP
|
|
|
|
testing "od -b --traditional FILE" \
|
|
|
|
"od -b --traditional input" \
|
|
|
|
"\
|
|
|
|
0000000 110 105 114 114 117
|
|
|
|
0000005
|
|
|
|
" \
|
|
|
|
"HELLO" ""
|
|
|
|
SKIP=
|
|
|
|
|
2008-04-15 01:20:06 +05:30
|
|
|
exit $FAILCOUNT
|