xtqqczze and Daniel Hofstetter
0626a4d103
clippy: fix map_unwrap_or lint
...
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
2026-04-17 07:24:13 +02:00
Chris Dryden and GitHub
5df49ac4fd
df: fallback when proc masked ( #10417 )
2026-02-03 22:10:11 +01:00
Ramon and GitHub
ea64612efb
df: add binfmt_misc to is_dummy_filesystem ( #9975 )
...
* df: add binfmt_misc to is_dummy_filesystem
* df: add spell-checker ignore for binfmt
* uucore: rmaix flag
2026-01-03 11:47:06 +01:00
Kornél Csernai and GitHub
eed7a0aca7
parser: add binary support to determine_number_system and parse_size ( #9659 )
...
* parser: add binary support to determine_number_system and parse_size
* docs
* tests
* tests: threshold
2025-12-22 09:24:44 +01:00
Laurent Cheylus
0fabf825e1
df: disable test_type_option_with_file on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr >
2025-11-09 08:53:55 +01:00
Christopher Armstrong
6015c8fa31
df: treat env var with zero block size as invalid
2025-10-17 09:32:37 -04:00
alexander and GitHub
6e422b728e
df: add tracing zero and rounding ( #8685 )
2025-10-15 22:11:44 -04:00
naoNao89
d1d5e7a5fa
tests(df): Fix test_total to avoid whitespace parsing issues
...
Improve test_total robustness by using --output=size,used,avail to get
numeric-only columns, avoiding fragile whitespace parsing of Filesystem
and Mounted on columns which can contain spaces in mount point names.
This makes the test more reliable across different filesystem configurations
and mount point naming conventions.
2025-10-03 16:40:14 +07:00
Alexander Bakanovskii
d6985039c9
tests/df: test follow symlinks
...
Signed-off-by: Alexander Bakanovskii <skotttt228@gmail.com >
2025-09-28 23:06:31 +03:00
Nicolas Boichat
6884e29f97
test_df: Use lossy stdout string
...
The tests fail when a non-UTF8 path is mounted, that's... not a
common case, but using a lossy string works just as well for the
tests, so let's use that.
2025-07-24 09:39:18 +08:00
Dorian Peron
6e23d4e979
tests: patch tests to simplify imports
2025-07-01 03:36:46 +02:00
Sergei Patiakin and GitHub
4190fe22ef
fix: df: filter filesystem types after mount point resolution ( #7452 )
...
Closes : #6194
2025-04-17 22:06:20 +02:00
Sylvestre Ledru
a0179ea239
uutests: adjust the tests to use them
2025-03-28 21:40:31 +01:00
Sylvestre Ledru
117fea23ba
selinux test: disable some tests (not a big deal)
2025-03-14 09:54:29 +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
d66932f593
issues: 7158, 7159 and 7174 - ignore linux arm64 specific test
2025-01-20 08:13:35 +01:00
n4n5
ab67947321
fix clippy tests
2024-06-30 16:27:08 +02:00
Daniel Hofstetter
8d3181fed5
df: fix incorrect test & add another test
2024-05-27 11:53:12 +02:00
Daniel Hofstetter and Sylvestre Ledru
0164934afe
df: fix rounding issue in test
...
Set block size to 1 so the returned values are the same values as
used for the calculation of the percentage values
2023-12-21 10:46:11 +01:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
2d76a3b88e
df: disable failing tests on Windows
2023-06-28 14:43:35 +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
Joining7943
1fadeb43b2
tests/util: Do not trim stderr in CmdResult::stderr_is. Add method stderr_trimmed_is.
...
Fix tests assert whitespace instead of trimming it. Disable some tests in `test_tr` because `tr`
produces too many newlines.
2023-01-22 14:56:19 +01:00
dd0daa5e06
df: remove trailing spaces in rightmost column ( #3882 )
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2022-09-22 08:37:20 +02:00