Daniel Hofstetter
c8b0c8b612
cp: remove some sleep() calls in tests
2024-11-26 10:35:13 +01:00
Daniel Hofstetter
e947c713c8
cp: separate tests with empty line
2024-10-31 10:55:22 +01:00
mhead
ff586b47d4
cp: Duplicate source error message specify the type of file.
2024-10-31 11:49:29 +05:30
mhead
4d5bf4205f
cp: skip duplicate source check when --backup is given
2024-10-27 14:18:20 +05:30
mhead
74cd797c8a
cp: normalize path when checking for duplicate source
2024-10-26 12:09:38 +05:30
Luv-Ray
85b0ef132b
cp: fix symlink-overwrite error-priority ( #6586 )
2024-10-16 08:55:43 +02:00
David Campbell
353eb53367
Fix clippy::uninlined_format_args .
2024-09-19 17:56:27 -04:00
Andrew Liebenow
b8150f5ba5
cp: show mode if target does not have S_IWUSR (PR #6696 ) ( #6700 )
...
* cp: show mode if target does not have S_IWUSR
If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.
This should get the "i-2" test to pass. See
https://github.com/uutils/coreutils/issues/6658 .
* cp: with -i, delete destination if needed
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-09-18 10:23:54 +02:00
sreehari prasad
8a9fb84a8e
mv: gnu test case mv-n compatibility ( #6599 )
...
* uucore: add update control `none-fail`
* uucore: show suggestion when parse errors occurs because of an ambiguous value
* added tests for fail-none and ambiguous parse error
* uucore: ambiguous value code refractor
* cp: no-clobber fail silently and outputs skipped message in debug
* mv: add --debug support
* minor changes
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-09-14 09:11:17 +02:00
LoricAndre
399384062d
chore: add non-regression tests for cp arg count
2024-09-10 12:20:47 +02:00
Samuel Tardieu
af86aee6b8
cp: look for specific error messages in tests
2024-09-08 13:27:24 +02:00
Samuel Tardieu
dd9e7ad363
cp: treat an empty file name as a non-existing file
2024-09-08 13:27:24 +02:00
mhead
36237a2568
cp: fix cp throwing error when dest is symlink and options backup and --rem is given
2024-07-26 00:49:34 +02:00
Ben Wiederhake
42b3baf32f
clippy: simplify code according to nightly 'needless_borrows_for_generic_args' lint
...
https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrows_for_generic_args
2024-07-18 15:59:36 +02:00
Laurent Cheylus
91f5533bc5
tests: disable failed tests for cp on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:14 +02:00
Sylvestre Ledru
9c0f2f84ab
Merge pull request #6505 from Its-Just-Nans/fix-clippy-errors
...
Fix clippy errors
2024-06-30 18:55:51 +02:00
n4n5
ab67947321
fix clippy tests
2024-06-30 16:27:08 +02:00
Moïse Valvassori
2e223dfdfc
cp: fix preserved hardlinks are not reported in --verbose
2024-06-26 06:44:55 +02:00
sreehari prasad
e46ad30434
gnu cp-parents
test case ( #6446 )
2024-06-17 11:16:26 +02:00
sreehari prasad
8cac375ddd
cp: gnu test case preserve-mode fix ( #6432 )
2024-05-30 21:12:55 +02:00
sreehari prasad
f2f4a424de
cp: parent-perm-race gnu fix ( #6403 )
2024-05-20 08:17:17 +02:00
sreehari prasad
3c096ee6ac
util: added umask manipulation ( #6404 )
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2024-05-19 21:56:41 +02:00
sreehari prasad
2e16cbbd7a
cp: link-deref gnu test fix ( #6378 )
...
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-05-19 10:14:29 +02:00
Daniel Hofstetter
692cdfac34
cp/tail: use #[ignore] to disable tests
...
instead of a cfg attribute
2024-05-12 15:15:44 +02:00
Jadi
9303f8e5b1
Disabling compare_xattrs cp and mv related tests on OpenBSD
...
The test_cp and test_mv have xattr related tests. They should
be disabled on OpenBSD after commit 19d42c0339
disabled the
compare_xattrs function on OpenBSD.
Fixes #6348
2024-05-09 18:24:39 +02:00
Anirban Halder
97f8361737
Switched to using at.symlink_file instead of ln in tests
2024-05-08 23:50:33 +02:00
Anirban Halder
88d9d46abc
Added test for dangling symlink in target directory
2024-05-08 23:50:33 +02:00
Anirban Halder
1f81912b3c
Added assertion of stderr strings for macos and windows and fixed lints
2024-05-08 23:50:33 +02:00
Anirban Halder
f7e55b1322
Added overwrite detection for existing symlinks
2024-05-08 23:50:33 +02:00
Anirban Halder
c5a530f4a1
Changed `/sys/kernel/address_bits
to
/sys/kernel/profiling
` in test_cp ( #6294 )
...
* Changed sys/kernel/address_bits to sys/kernel/profiling
* Added comments and fixed formatting
---------
Co-authored-by: Anirban <anirban@pop-os.localdomain>
2024-05-02 18:25:22 +02:00
Daniel Hofstetter
96ed764fda
cp: remove panics in tests
2024-04-30 16:22:49 +02:00
Daniel Hofstetter
fabe9ac128
cp: remove unnecessary calls of touch() in tests
2024-04-23 15:28:22 +02:00
Anirban Halder
421b820ec2
Fix the debug results in cp --debug
( #6220 )
2024-04-22 17:02:21 +02:00
sreehari prasad
a1717436a4
cp: gnu "same-file" test case compatibility ( #6190 )
...
* cp: -b doesn't ignore "version control" env
* cp: gnu "same-file" test compatibility fix
2024-04-21 09:49:45 +02:00
Ben Wiederhake
d4546ced26
cp: accept shortcuts for stringly-enum arguments
2024-04-14 15:39:46 +02:00
Vikrant2691
9b9c0cc237
cp: handle update prompt with and without interactive mode enabled
2024-04-09 15:14:33 +02:00
Krysztal112233
ef8c379370
lint: fix clippy::redundant_clone
of test_dd.rs
test_cp.rs
2024-03-22 17:38:54 +08:00
Sylvestre Ledru
89b326fe1e
cp: improve the support of --attributes-only ( #6051 )
...
* cp: improve the support of --attributes-only
* remove useless comments
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-11 08:35:27 +01:00
Sylvestre Ledru
dcfb03aad6
Fix clippy warnings
2024-03-09 22:31:33 +01:00
Ben Wiederhake
ba1c6b0044
cp: fix flaky test test_cp_arg_interactive_update, document adjacent bug
2024-03-01 11:41:22 +01:00
kralo
5dccfc2441
cp: test_cp_preserve_xattr_fails_on_android disabled as its now failing to fail
2024-01-28 08:56:08 +01:00
Sylvestre Ledru
69c8753f80
cp test: use compare_xattrs from tests/utils
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
fff83995fb
cp: --preserve should keep xattr ( #5834 )
...
* cp: --preserve should keep xattr
Should help with tests/cp/acl.sh
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-15 10:59:04 +01:00
Sylvestre Ledru
36039a819d
Merge pull request #5739 from cakebaker/cp_backup_with_symlink_to_source
...
cp: backup dest symlink linking to source
2024-01-14 23:30:06 +01:00
Sylvestre Ledru
e3beda08ac
Merge pull request #5762 from cakebaker/cp_link_same_file
...
cp: show no "same file" error for `--link a a`
2024-01-14 23:29:33 +01:00
Sylvestre Ledru
aabf5fa577
cp: manages target with trailing '/'
2024-01-05 12:56:27 +01:00
Daniel Hofstetter
7ddeba4b98
cp: show no "same file" error for --link a a
2024-01-01 14:30:27 +01:00
Daniel Hofstetter
5673f32c63
cp: show error if source & dest are same file
2023-12-31 16:01:34 +01:00
Daniel Hofstetter
2c42623b6e
cp: backup dest symlink linking to source
2023-12-31 14:09:08 +01:00
Sylvestre Ledru
193bcf86b7
cp: Disable a test failing on freebsd
2023-12-30 17:00:44 +01:00