aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-02-19 11:12:04 -0600
committerRob Landley <rob@landley.net>2021-02-19 11:13:02 -0600
commitc42089fed7adbf3ae1a0fd73b3a7b1e4f10e31db (patch)
treedf4c3c7d08d63fe94a1705bb82cab44ffffab42c /tests
parent9c7085f484dba1e14f47fc05e249c18922b8db5d (diff)
downloadtoybox-c42089fed7adbf3ae1a0fd73b3a7b1e4f10e31db.tar.gz
Fix cp -t with one argument and make --parents work with -t.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cp.test b/tests/cp.test
index 293f0348..3fcea3be 100755
--- a/tests/cp.test
+++ b/tests/cp.test
@@ -131,6 +131,11 @@ testing "-P symlink" "cp -P lnk ldst && stat -c %F ldst" "symbolic link\n" "" ""
testing "follow symlink" "cp lnk ldst2 && stat -c %F ldst2" "regular file\n" "" ""
rm file fdst lnk ldst ldst2
+mkdir sub
+testing "-t one arg" 'cp -t sub/ input && cat sub/input' 'yes\n' 'yes\n' ''
+toyonly testing "-Dt" 'cp -Dt sub2 input && cat sub2/input' 'and\n' 'and\n' ''
+rm -rf sub sub2
+
# cp -r ../source destdir
# cp -r one/two/three missing
# cp -r one/two/three two