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
Daniel Hofstetter
7025619325
cp: adapt warning if source is used more than once
2023-12-29 10:24:08 +01:00
Daniel Hofstetter
0701f535ac
cp: fix backup of destination symlink
2023-12-27 15:39:54 +01:00
Sylvestre Ledru
167acb5147
Merge pull request #5484 from cakebaker/cp_l_with_dest_hardlink_to_source
...
cp --link: don't fail if destination is hardlink to source
2023-12-26 16:12:15 +01:00
Daniel Hofstetter
f10c6f1d56
Merge pull request #5699 from sylvestre/mv-cp-seen
...
cp/mv/ln: add support for the "will not overwrite just-created"
2023-12-25 14:58:50 +01:00
Daniel Hofstetter
4946478409
cp: -l don't fail if dest is hardlink to source
2023-12-25 13:03:11 +01:00
Sylvestre Ledru
356023b055
Merge pull request #5431 from cakebaker/cp_remove_destination_shouldnt_fail_hardlink
...
cp --remove-destination: don't fail if destination is hardlink to source
2023-12-25 13:02:50 +01:00
Sylvestre Ledru
15573579cc
Fix the windows tests
2023-12-24 15:18:31 +01:00
Sylvestre Ledru
8685e05f4e
cp: debug with --update=none should show 'skipped'
2023-12-23 17:58:05 +01:00
Sylvestre Ledru
06c98fbdd3
cp: don't fail when --backup=numbered is passed
2023-12-23 12:48:38 +01:00
Sylvestre Ledru
837640bc02
cp: manages the 'seen' file list before copying
...
Should help with tests/mv/childproof.sh
2023-12-23 12:11:35 +01:00
Nathan Houghton
0ea1a7cd88
tests/cp, tests/test: Don't attempt to set sticky file bit on FreeBSD
...
On FreeBSD (and OpenBSD), only the superuser can set the file sticky
bit.
2023-12-02 16:58:27 +01:00
Piotr Kwiecinski
c6e7fdcabe
skip test_cp_arg_update_interactive on FreeBSD
2023-11-30 18:45:06 +01:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Daniel Hofstetter
761213f1d2
cp: make test_closes_file_descriptors Linux-only
2023-11-08 09:33:49 +01:00
Daniel Hofstetter
91b19b7c56
cp,tail: fix warnings in tests on Android
2023-11-05 13:56:39 +01:00
Terts Diepraam
98ad01b1cc
Merge pull request #5471 from cakebaker/cp_fix_unused_variable_warnings
...
cp: restrict two test functions to linux/mac/win
2023-11-01 09:11:38 +01:00
tommady
a4775d288b
cp: fix cp -rT dir dir2 leads to different result than with GNU cp ( #5467 )
...
* add a test case test_cp_treat_dest_as_a_normal_file
* fix 5457
* cp: fix comment
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-10-30 17:55:03 +01:00
Daniel Hofstetter
a7cc3b6dca
cp: restrict two test functions to linux/mac/win
2023-10-29 14:37:47 +01:00