1c023bfad9
readlink: Set silent mode as default ( #10711 )
...
* readlink: Set silent mode as default
* readlink: Add tests for verbose and silent options
* readlink: Change test to work with Windows-specific error message
* readlink: Add additional test cases
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org >
2026-02-12 02:51:28 -08:00
mattsu
6ec43a69ce
chore(tests): update spell-checker ignore list in test_readlink.rs
...
Add 'parentdir' to the ignored words to suppress spell-checker warnings, as it's used in test scenarios and not a misspelled term.
2025-12-11 20:19:24 +09:00
mattsu
04a6737e5d
fix(readlink): use physical resolution for canonicalize flags to match GNU behavior
...
Changed ResolveMode from Logical to Physical for -f, -e, and -m flags in readlink to ensure symlinks are followed before resolving '..' (parent directory), matching GNU readlink's physical resolution order for compatibility. Added a test case to verify the symlink resolution occurs before parent directory evaluation.
2025-12-11 19:02:11 +09:00
Daniel Hofstetter
f264a40aa8
readlink: test calling without args
2025-11-11 17:36:17 +01:00
karanabe and GitHub
690405d72f
fix(readlink): emit GNU-style Invalid argument for non-symlinks ( #9189 )
...
* fix(readlink): emit GNU-style Invalid argument for non-symlinks
* Replace format! with translate! and test skip on Windows
2025-11-08 15:09:20 +01:00
Sylvestre Ledru
71b4de24e6
test: improve support non-utf-8
2025-08-14 10:54:04 +02:00
Sylvestre Ledru
f15dac138e
chmod/readlink/du: improve non-UTF-8 filename handling and code style
2025-08-14 10:52:24 +02:00
Sylvestre Ledru
5c77fe1ab5
readlink: fix handling of non-UTF-8 filenames
2025-08-14 10:52:24 +02:00
Dorian Peron
6e23d4e979
tests: patch tests to simplify imports
2025-07-01 03:36:46 +02:00
Sylvestre Ledru
a0179ea239
uutests: adjust the tests to use them
2025-03-28 21:40:31 +01:00
Sylvestre Ledru
a85539f530
Run cargo fmt on the tree
2025-03-24 21:33:12 +01:00
Daniel Hofstetter
df4dfea852
tests: replace run() with succeeds() or fails()
2025-03-09 16:53:56 +01:00
Sylvestre Ledru
18cb7dcf9e
Use the new function fails_with_code
...
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00
Daniel Hofstetter
f6b646e4e5
clippy: fix warnings introduced with Rust 1.67.0
2023-01-27 17:37:56 +01:00
Terts Diepraam
9177cb7b24
all: add tests for usage error exit code
2022-09-10 20:59:42 +02:00
Niyaz Nigmatullin
5d4ad4de13
tests/readlink: add test for delimiters usage
2022-08-16 08:21:43 +03:00
Niyaz Nigmatullin
6879ed7b34
tests/readlink: refactor added tests
2022-08-15 23:33:41 +03:00
Niyaz Nigmatullin
38add34d31
tests/readlink: fix for Windows
2022-08-15 23:31:45 +03:00
Niyaz Nigmatullin
a5e0a14415
tests/readlink: fix Windows "Not a directory" error message
2022-08-15 23:04:51 +03:00
Niyaz Nigmatullin
b74e2f9d9b
tests/readlink: follow clippy advice
2022-08-15 22:48:35 +03:00
Niyaz Nigmatullin
e826ab5f0f
tests/readlink: follow clippy advice
2022-08-15 22:47:03 +03:00
Niyaz Nigmatullin
df403334c0
tests/readlink: add spell-checker ignore
2022-08-15 22:47:03 +03:00
Niyaz Nigmatullin
1c6f71e0e1
tests/readlink: add tests for trailing slashes and canonicalize -e and
...
-f usages
2022-08-15 22:47:03 +03:00