aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-26 14:31:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-26 14:31:04 +0200
commit48f116198d53697d59d03f4e0ff6cd8c04e79660 (patch)
treed5d8bec787ec70bf90338d2d3c4d9060e3495dc2 /testsuite
parent67f7186403dec3f61f6ea9e9a3f555bd0b0541bc (diff)
downloadbusybox-48f116198d53697d59d03f4e0ff6cd8c04e79660.tar.gz
cp: add support for --parents and long option synonyms of short opts
By Ian Wienand (ianw AT vmware.com) function old new delta cp_main 257 369 +112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 112/0) Total: 112 bytes text data bss dec hex filename 823000 458 6948 830406 cabc6 busybox_old 823283 458 6948 830689 cace1 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/cp/cp-parents5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/cp/cp-parents b/testsuite/cp/cp-parents
new file mode 100644
index 000000000..a721ceaf2
--- /dev/null
+++ b/testsuite/cp/cp-parents
@@ -0,0 +1,5 @@
+mkdir -p foo/bar/baz
+touch foo/bar/baz/file
+mkdir dir
+busybox cp --parents foo/bar/baz/file dir
+test -f dir/foo/bar/baz/file