aboutsummaryrefslogtreecommitdiff
path: root/testsuite/hexdump.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/hexdump.tests')
-rwxr-xr-xtestsuite/hexdump.tests18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/hexdump.tests b/testsuite/hexdump.tests
new file mode 100755
index 000000000..45a0c1300
--- /dev/null
+++ b/testsuite/hexdump.tests
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com>
+# Licensed under GPLv2, see file LICENSE in this source tree.
+
+. ./testing.sh
+
+# testing "description" "command" "result" "infile" "stdin"
+testing 'hexdump -C with four NULs' \
+ 'hexdump -C' \
+ "\
+00000000 00 00 00 00 |....|
+00000004
+" \
+ '' \
+ '\0\0\0\0'
+
+exit $FAILCOUNT