diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-10 19:20:36 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-10 19:20:36 +0300 |
commit | d21b9d3c3147eb12f115b1fd361da913a1177fba (patch) | |
tree | d8ec084c8d2c5facb5d9315720ece0784ac80408 /tests | |
parent | 854ddfac002e753a6389b48d3b9296fe32665ad3 (diff) | |
parent | 127cff38809ea6c3a37ed3ce7f428cafdc38e2e1 (diff) | |
download | toybox-d21b9d3c3147eb12f115b1fd361da913a1177fba.tar.gz |
merge upstream
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/cp.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cp.test b/tests/cp.test index b0d5d3a4..3e25f6c6 100755 --- a/tests/cp.test +++ b/tests/cp.test @@ -140,6 +140,14 @@ 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' '' '' +mkdir a b + +echo potato > a/one +echo potato > a/two +touch b/one b/two +testing '-i' 'cp -ri a/. b/. 2>/dev/null; cmp -s a/one b/one || cmp -s a/one b/two && echo yes' \ + 'yes\n' '' 'n\ny\n' +rm -rf one two a b # cp -r ../source destdir # cp -r one/two/three missing |