summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko2008-04-14 19:50:06 +0000
committerDenis Vlasenko2008-04-14 19:50:06 +0000
commit7089c31d578d683804598b405e2cdf375cd7ce33 (patch)
treed341e2416feb70de55b9684a8d03852f5f5f404c /testsuite
parentc7131c3e58c2cef17263d03ac542f7fbea1ce2db (diff)
downloadbusybox-7089c31d578d683804598b405e2cdf375cd7ce33.zip
busybox-7089c31d578d683804598b405e2cdf375cd7ce33.tar.gz
od: fix "od -b"
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/od.tests17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/od.tests b/testsuite/od.tests
new file mode 100755
index 0000000..60f22d5
--- /dev/null
+++ b/testsuite/od.tests
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Copyright 2008 by Denys Vlasenko
+# Licensed under GPL v2, see file LICENSE for details.
+
+. testing.sh
+
+# testing "test name" "options" "expected result" "file input" "stdin"
+
+testing "od -b" \
+ "echo HELLO | od -b" \
+"\
+0000000 110 105 114 114 117 012
+0000006
+" \
+ "" "HELLO"
+
+exit $FAILCOUNT