jaggededgedjustice
81a854a13e
date: Catch format string that is not supported by chrono ( #4244 )
...
* Catch format string that is not supported by chrono
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-05-27 15:41:12 +02:00
Daniel Hofstetter
b248b9d34c
tail: disable some tests on Android
2023-05-27 08:02:03 +02:00
Daniel Hofstetter
79df3937c2
Merge pull request #4896 from shinhs0506/mkdir-test
...
Mkdir: explicit umask and sequential tests
2023-05-25 07:15:48 +02:00
John Shin
90ed91608e
mkdir: document why a mutex is necessary
2023-05-24 16:50:08 -07:00
Daniel Hofstetter
81e3b04b11
Merge pull request #4888 from Ludmuterol/more-panic-4886
...
fix(#4886 ) more: panics if file is not readable
2023-05-24 17:42:27 +02:00
tpeters
7cad501c2c
more: add output check to test
2023-05-24 16:32:29 +02:00
Ludmuterol
ccdb76aef7
more: Update tests/by-util/test_more.rs
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-24 15:57:55 +02:00
tpeters
53ffd55bdf
more: run test only on unix systems
2023-05-24 13:40:30 +02:00
Moïse Valvassori
b29f8b011b
chown: show "ownership of 'foo' retained" message
...
* Display a message when the owner is not changed.
* Display a message when the current user/group doesn't match those specified in the `--from` args.
* print messages to stdout
* Show the message "ownership of 'foo' retained as 'bar'" for every path entry when `chown -v -R --from=`
* fix chown tests: test stdout and not stderr
* factorize duplicate code in a function
* Display a message when the owner is not changed.
* Display a message when the current user/group doesn't match those specified in the `--from` args.
* print messages to stdout
* Show the message "ownership of 'foo' retained as 'bar'" for every path entry when `chown -v -R --from=`
* fix chown tests: test stdout and not stderr
* factorize duplicate code in a function
* display the retained ownership details according to the destination ownership.
2023-05-24 09:45:19 +02:00
John Shin
f8a5dbc41c
mkdir: run tests sequentially by adding a mutex
2023-05-23 15:56:51 -07:00
John Shin
c561074425
mkdir: explicitly set umask when testing mode
2023-05-23 15:45:04 -07:00
Sylvestre Ledru
9a6d47759b
Merge pull request #4890 from shinhs0506/rm-i
...
fix rm/interactive-always.sh
2023-05-23 18:59:37 +02:00
tpeters
50bff30c67
more: add test and change error type
2023-05-23 18:03:25 +02:00
Daniel Hofstetter
2f4b57ca97
mv: add missing semicolons to tests
2023-05-23 07:23:42 +02:00
John Shin
421b2f2581
rm: test prompts when --interactive is once
2023-05-22 21:27:43 -07:00
John Shin
eeb3341101
rm: add tests for --interactive with empty when
2023-05-22 21:23:44 -07:00
Sylvestre Ledru
92f4849b60
date: bring back the test
2023-05-22 23:29:55 +02:00
Sylvestre Ledru
08c71fc80c
Merge pull request #4880 from cakebaker/more_remove_empty_else_branches
...
more: remove empty "else"-branches in tests
2023-05-22 09:31:21 +02:00
Sylvestre Ledru
e5419ade96
Merge pull request #4878 from cakebaker/mktemp_4874
...
mktemp: prioritize TMPDIR over -p when using -t
2023-05-22 09:31:11 +02:00
Sylvestre Ledru
c91520768e
Merge pull request #4876 from shinhs0506/mkdir-p
...
mkdir: set correct permissions on dirs created by -p
2023-05-22 07:43:52 +02:00
John Shin
33ac653ce5
mkdir: correctly set umask so that tests fail without the fix
2023-05-21 21:07:00 -07:00
Moïse Valvassori
0130a07579
chown: show message if file doesn't exist
...
* print the message "failed to change ownership of" when we try to change a non existing file.
* replace the 4-tuple returned by parse_gid_uid_and_filter by GidUidOwnerFilter struct.
* chain the test in one expression.
* chown: remove unused var "result" in test
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-21 17:54:32 +02:00
Daniel Hofstetter
e844bdfebe
more: remove empty "else"-branches in tests
2023-05-20 16:26:11 +02:00
Daniel Hofstetter
70765eea82
Merge pull request #4872 from Ideflop/more_implement_print_over_and_clean_print
...
more: add arguments print over and clean print
2023-05-20 15:32:50 +02:00
Ideflop
2d1a9f6709
fix behavior of -c and -p commands
2023-05-20 08:56:50 +02:00
Daniel Hofstetter
698fafad68
mktemp: prioritize TMPDIR over -p when using -t
2023-05-20 08:02:37 +02:00
Daniel Hofstetter
a01dc20c30
mktemp: remove TEST_TEMPLATE9
2023-05-19 10:42:52 +02:00
Daniel Hofstetter
5be5f85043
mktemp: simplify test_default_missing_value()
2023-05-19 10:38:04 +02:00
John Shin
f592dff46a
mkdir: skip setting dir permissions on windows
2023-05-18 19:34:57 -07:00
John Shin
5e1a6c1f13
mkdir: add test for checking mode of parent dirs with -p
2023-05-18 19:12:38 -07:00
Daniel Hofstetter
74e73bee06
Merge pull request #4832 from sylvestre/issue_4821
...
mktemp -t foo.XXXX should create in TMPDIR
2023-05-18 14:12:40 +02:00
Sylvestre Ledru
cd189b2391
Fix mktemp -t -p ~/projects/playground foo.XXXX
2023-05-18 11:08:55 +02:00
Sylvestre Ledru
35b5fd6a40
mktemp -t foo.XXXX should create in TMPDIR
2023-05-18 11:08:55 +02:00
Ideflop
1a12ffaa79
Add check for terminal in test_valid_arg() function
2023-05-18 09:18:33 +02:00
Jed Denlea
db5696f64b
rm: support non-UTF-8 paths
...
Addresses #4868 .
2023-05-17 23:01:21 -07:00
Ideflop
1ce52903b0
Merge branch 'uutils:main' into more_implement_print_over_and_clean_print
2023-05-17 22:47:07 +02:00
Ideflop
b676875c0c
more: add arguments print over and clean print
2023-05-17 20:38:03 +02:00
Jed Denlea
3870ee252a
yes: support non-UTF-8 args
...
Also, tighten the creation of the output buffer. Rather than copy "y\n"
8192 times, or any other input some number of times, it can be doubled
in place using Vec::extend_from_within.
2023-05-15 11:29:14 -07:00
Sylvestre Ledru
3e7594632b
ls: when facing an invalid utf-8, don't panic
...
Fails with
```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "invalid-\xE0-"', src/uu/ls/src/ls.rs:1932:53
```
2023-05-14 22:11:44 +02:00
Daniel Hofstetter
690fff2fc9
cksum: implement --untagged
2023-05-14 16:43:14 +02:00
John Shin
a817186e10
cp: preserve permissions on -r -p --parents
2023-05-12 11:34:51 -07:00
Sylvestre Ledru
64c49de0cc
Merge pull request #4432 from jfinkels/dd-nocache
...
dd: support the [io]flag=nocache option
2023-05-12 09:53:57 +02:00
Daniel Hofstetter
98fa941250
Merge pull request #4759 from sylvestre/clippy4
...
fix some clippy warnings in tests
2023-05-12 07:15:44 +02:00
Sylvestre Ledru
d98293bdaa
bring back the empty line
2023-05-11 18:20:28 +02:00
Sylvestre Ledru
536d12d20d
simplify code
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-11 18:19:49 +02:00
Sylvestre Ledru
22a7f98a47
Merge pull request #4856 from cakebaker/cksum_fix_algorithm_output
...
cksum: fix output of --algorithm
2023-05-11 18:18:24 +02:00
John Shin
7a31d841ba
cp: preserve permission on -p --parents ( #4853 )
2023-05-11 16:44:23 +02:00
Daniel Hofstetter
0781ad0a65
cksum: fix output of --algorithm
...
for the algorithms md5, sha[1,224,256,384,512], blake2b, and sm3 from
<digest> <filesize> <filename>
to
<algo name> (<filename>) = <digest>
to use the same format as GNU cksum
2023-05-11 14:24:43 +02:00
SteveLauC
452be5a220
ls: device number for BSDs and solarishOS ( #4841 )
2023-05-11 12:58:36 +02:00
leone
d8f1f1c16c
date: bugfix test_date_for_no_permission_file ( #4544 )
2023-05-10 18:40:58 +02:00