aboutsummaryrefslogtreecommitdiff
path: root/testsuite/od.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-21 17:43:06 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-21 17:43:06 +0200
commit5c10fa5c241b116b8c623189a42673754b21dc8c (patch)
treea373490b460d40c02073b6f1f04450af281ea842 /testsuite/od.tests
parent232ebaa5681790291154cf8e8203a02eec04f6d8 (diff)
downloadbusybox-w32-5c10fa5c241b116b8c623189a42673754b21dc8c.tar.gz
busybox-w32-5c10fa5c241b116b8c623189a42673754b21dc8c.tar.bz2
busybox-w32-5c10fa5c241b116b8c623189a42673754b21dc8c.zip
od: code shrink, fix "od --traditional FILE"
function old new delta parse_old_offset 107 125 +18 packed_usage 28715 28691 -24 od_main 2312 2275 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rwxr-xr-xtestsuite/od.tests22
1 files changed, 21 insertions, 1 deletions
diff --git a/testsuite/od.tests b/testsuite/od.tests
index 138efedea..fa47b4790 100755
--- a/testsuite/od.tests
+++ b/testsuite/od.tests
@@ -4,7 +4,7 @@
4 4
5. ./testing.sh 5. ./testing.sh
6 6
7# testing "test name" "options" "expected result" "file input" "stdin" 7# testing "test name" "commands" "expected result" "file input" "stdin"
8 8
9optional DESKTOP 9optional DESKTOP
10testing "od -b" \ 10testing "od -b" \
@@ -16,4 +16,24 @@ testing "od -b" \
16 "" "HELLO" 16 "" "HELLO"
17SKIP= 17SKIP=
18 18
19optional DESKTOP
20testing "od -b --traditional" \
21 "od -b --traditional" \
22"\
230000000 110 105 114 114 117
240000005
25" \
26 "" "HELLO"
27SKIP=
28
29optional DESKTOP
30testing "od -b --traditional FILE" \
31 "od -b --traditional input" \
32"\
330000000 110 105 114 114 117
340000005
35" \
36 "HELLO" ""
37SKIP=
38
19exit $FAILCOUNT 39exit $FAILCOUNT