aboutsummaryrefslogtreecommitdiff
path: root/tests/xxd.test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-07-05 15:05:09 -0700
committerRob Landley <rob@landley.net>2016-07-05 17:48:17 -0500
commitff0e8cb15c39d59b0530ac0e0a1243a510ae5c06 (patch)
tree58c2d3349d50934f9180fee204e4fd6fd66542db /tests/xxd.test
parent8a34cbb5666a80153ea06ba8d59f7406f311bb7a (diff)
downloadtoybox-ff0e8cb15c39d59b0530ac0e0a1243a510ae5c06.tar.gz
Implement xxd -s.
Diffstat (limited to 'tests/xxd.test')
-rw-r--r--tests/xxd.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/xxd.test b/tests/xxd.test
index 187bda51..5f43b8b5 100644
--- a/tests/xxd.test
+++ b/tests/xxd.test
@@ -27,6 +27,8 @@ testing "-c 8 -g 3 file1" "xxd -c 8 -g 3 file1" \
testing "-p" "xxd -p file1" "7468697320697320736f6d6520746578740a\n" "" ""
+testing "-s" "xxd -s 13 file1" "0000000d: 7465 7874 0a text.\n" "" ""
+
testing "-r" "xxd file1 | xxd -r" "this is some text\n" "" ""
testing "-r -p" "xxd -p file1 | xxd -r -p" "this is some text\n" "" ""