Anthony and GitHub
36ac85b1f3
tests: add WASI integration test support via wasmtime
2026-04-12 15:19:04 +02:00
Sylvestre Ledru
3ed1f47de3
add more emoji tests
2025-09-03 22:39:21 +02:00
Nicolas Boichat
22d474f275
test_basename: Fix test_invalid_utf8_args
...
The test was not really testing for the right thing. If a non-unicode
string is passed, the basename should be printed as-is.
2025-07-23 21:06:02 +08:00
Sylvestre Ledru
c5268a897e
basename: handle a corner case with /. - Closes #8373
2025-07-23 13:53:34 +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
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
Daniel Hofstetter
32c88b4b96
basename,realpath: update spell-checker:ignore
2024-08-09 14:58:12 +02:00
Ben Wiederhake
db61684bc0
basename+tests: remove unused spell-checker:disable
2024-04-30 18:28:20 +02:00
Ben Wiederhake
f905d9ce41
basename: implement and test repeated flags and arguments
...
Note in particular that `args_override_self` would *NOT* work here,
since it would in all cases cause `options::NAME` to override itself,
or interfere with `trailing_var_arg`.
2024-02-25 19:45:32 +01:00
Ben Wiederhake
9441806a23
basename: test flag implications, document -z correctly
2024-02-25 19:14:17 +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
Terts Diepraam
649dab36f1
basename: update to clap 4
2022-10-13 16:22:45 +02:00
Sylvestre Ledru
6e14dea73b
Fix some clippy warnings
...
Fixed with `cargo clippy --features unix --fix`
and manually
2022-10-13 09:07:22 +02:00
Terts Diepraam
9177cb7b24
all: add tests for usage error exit code
2022-09-10 20:59:42 +02:00
Niyaz Nigmatullin and GitHub
5f3f1112d1
Basename arguments simple format ( #3736 )
...
* basename: support simple format
* tests/basename: add tests for simple format
* basename: follow clippy advice
2022-07-22 13:28:54 +02:00
Terts Diepraam
18369dc0be
all: use array intoiterator
2022-04-05 10:39:31 +02:00
Daniel Eades
a2d5f06be4
remove needless pass by value
2022-01-30 15:08:26 +01:00
Terts Diepraam
2412e4cbf7
add some tests for Clap's InferLongArgs setting
2022-01-29 02:06:32 +01:00
Thomas Queiroz
c9624725ab
tests: use CmdResult::usage_error
2021-11-09 17:37:05 -03:00
Sylvestre Ledru and GitHub
9f3debeda3
Merge pull request #2534 from jfinkels/basename-handle-slashes
...
basename: handle paths comprising only slashes
2021-08-22 22:49:30 +02:00
Michael Debertol
5f2335829a
refactor ~ revert to single quotes for "Try '{0 --help'"
...
This is a test expectation for gnu.
2021-08-14 17:22:09 +02:00
Roy Ivy III and Michael Debertol
4da46d93c7
tests ~ fix tests for new execution_phrase!() and usage phrasing
2021-08-14 14:01:34 +02:00