diff options
author | Denys Vlasenko | 2011-05-21 17:43:06 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-05-21 17:43:06 +0200 |
commit | 5c10fa5c241b116b8c623189a42673754b21dc8c (patch) | |
tree | a373490b460d40c02073b6f1f04450af281ea842 /testsuite | |
parent | 232ebaa5681790291154cf8e8203a02eec04f6d8 (diff) | |
download | busybox-5c10fa5c241b116b8c623189a42673754b21dc8c.zip busybox-5c10fa5c241b116b8c623189a42673754b21dc8c.tar.gz |
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 'testsuite')
-rwxr-xr-x | testsuite/od.tests | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/testsuite/od.tests b/testsuite/od.tests index 138efed..fa47b47 100755 --- a/testsuite/od.tests +++ b/testsuite/od.tests @@ -4,7 +4,7 @@ . ./testing.sh -# testing "test name" "options" "expected result" "file input" "stdin" +# testing "test name" "commands" "expected result" "file input" "stdin" optional DESKTOP testing "od -b" \ @@ -16,4 +16,24 @@ testing "od -b" \ "" "HELLO" SKIP= +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= + exit $FAILCOUNT |