summaryrefslogtreecommitdiff
path: root/tests/007-bytes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/007-bytes')
-rw-r--r--tests/007-bytes10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/007-bytes b/tests/007-bytes
new file mode 100644
index 0000000..ca0cfc6
--- /dev/null
+++ b/tests/007-bytes
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Check that the byte counter counts.
+
+dd if=/dev/zero bs=100 count=1 2>/dev/null \
+| LANG=C $PROG -f -b >/dev/null 2>$TMP1
+NUM=`tr '\r' '\n' < $TMP1 | tr -d ' '`
+test "$NUM" = "100B"
+
+# EOF