diff options
author | Rob Landley <rob@landley.net> | 2021-04-07 07:00:13 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-04-07 07:00:13 -0500 |
commit | 2a6f03eb088b21a68ee4f5fa45b7cd4f7c7bc558 (patch) | |
tree | 6e8f0e5249844efc8a9b7ac702ddaea9402be559 /tests | |
parent | cecc41a3c52519ac1d65989b266fec32a2bd6ff7 (diff) | |
download | toybox-2a6f03eb088b21a68ee4f5fa45b7cd4f7c7bc558.tar.gz |
Add cp -u
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cp.test b/tests/cp.test index 3fcea3be..b0d5d3a4 100755 --- a/tests/cp.test +++ b/tests/cp.test @@ -136,6 +136,11 @@ 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 +testing '-u1' 'echo one>one; sleep .1; echo two>two; cp -u one two; cat two' \ + 'two\n' '' '' +testing '-u2' 'echo two>two; sleep .1; echo one>one; cp -u one two; cat two' \ + 'one\n' '' '' + # cp -r ../source destdir # cp -r one/two/three missing # cp -r one/two/three two |