du: expand suffix-only block size regression coverage #15008
<!-- __CODSPEED_PERFORMANCE_REPORT_COMMENT__ -->
Merging this PR will not alter performance
✅ 8 untouched benchmarks ⏩ 444 skipped benchmarks[^skipped]
---
<sub>Comparing <code>mattsu2020:codex/du-block-size-units</code> (15121bc) with <code>main</code> (e88a115)[^unexpected-base]</sub>
<a href="https://app.codspeed.io/uutils/coreutils/branches/mattsu2020%3Acodex%2Fdu-block-size-units?utm_source=github&utm_medium=comment-v2&utm_content=button">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://codspeed.io/pr-report/open-in-codspeed-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://codspeed.io/pr-report/open-in-codspeed-light.svg">
<img alt="Open in CodSpeed" src="https://codspeed.io/pr-report/open-in-codspeed-light.svg" width="169" height="32">
</picture>
</a>
[^skipped]: 444 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.
[^unexpected-base]: No successful run was found on <code>main</code> (9edd4e3) during the generation of this report, so e88a115 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
<!-- gnu-comment-bot -->
GNU testsuite comparison:
Skip an intermittent issue tests/misc/usage_vs_getopt (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/pr/options is no longer failing!
@mattsu2020 please drop merge commit and then rebase
four nested loops and ~130 du runs, this is hard to read
could you please make it a flat table like test_du_suffix_only_block_size? or just extend that one
do we need every unit through all 5 sources? the source precedence is already covered by test_du_env_block_size_hierarchy
please add a short comment on why kD shows K and not kB
fixed it
fixed it
add comment
consider using rstest cases
consider using rstest cases
consider using rstest cases
fixed it
fixed it
fixed it
sylvestre
mattsu2020
The suffix-only block-size display is already fixed on main. Add regression coverage for unit spelling, rounding, environment variables, and option overrides.
Refs #7738.