aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-03-12 10:02:08 -0700
committerRob Landley <rob@landley.net>2018-03-12 14:18:46 -0500
commit30e23c72a12fa3a95d25b15cf9a0517dae07db8b (patch)
tree3506c20fbd74f7a897db313f0614b2ba9015ae7d /tests
parentf71f8485efbed0ecdd213c4e6d0c9403aa1fcd79 (diff)
downloadtoybox-30e23c72a12fa3a95d25b15cf9a0517dae07db8b.tar.gz
Add xxd -o.
Diffstat (limited to 'tests')
-rw-r--r--tests/xxd.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xxd.test b/tests/xxd.test
index 97634e86..48ed319d 100644
--- a/tests/xxd.test
+++ b/tests/xxd.test
@@ -15,7 +15,6 @@ testing "file1" "xxd file1" \
testing "file1 -l" "xxd -l 2 file1" \
"00000000: 7468 th\n" \
"" ""
-testing "file2" "xxd file2" "" "" ""
testing "-" "xxd -" \
"00000000: 6865 6c6c 6f hello\n" "" "hello"
testing "xxd" "xxd" \
@@ -27,6 +26,8 @@ testing "-c 8 -g 3 file1" "xxd -c 8 -g 3 file1" \
testing "-i" "cat file1 | xxd -i -" " 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x73, 0x6f, 0x6d, 0x65,\n 0x20, 0x74, 0x65, 0x78, 0x74, 0x0a\n" "" ""
+testing "-o 0x8000" "xxd -o 0x8000 file1" "00008000: 7468 6973 2069 7320 736f 6d65 2074 6578 this is some tex\n00008010: 740a t.\n" "" ""
+
testing "-p" "xxd -p file1" "7468697320697320736f6d6520746578740a\n" "" ""
testing "-s" "xxd -s 13 file1" "0000000d: 7465 7874 0a text.\n" "" ""