summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-03-24 16:01:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-04-13 21:35:57 +0200
commit4eb46e1be6d88eaf077252ce93127ebf00aa8ef2 (patch)
treec393cd49d6c017fbde105101f29ed760c053696a /testsuite
parent7b5cbfd6d624e19ac296089b3d675b20bda429a4 (diff)
downloadbusybox-4eb46e1be6d88eaf077252ce93127ebf00aa8ef2.tar.gz
dd: support iflag=count_bytes
It allows passing amount of bytes in the count= function old new delta packed_usage 33599 33617 +18 static.iflag_words 29 41 +12 dd_main 1601 1607 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 36/0) Total: 36 bytes Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/dd/dd-count-bytes1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/dd/dd-count-bytes b/testsuite/dd/dd-count-bytes
new file mode 100644
index 000000000..0730cba5e
--- /dev/null
+++ b/testsuite/dd/dd-count-bytes
@@ -0,0 +1 @@
+test "$(echo I WANT | busybox dd count=3 iflag=count_bytes 2>/dev/null)" = "I W"