coreutils/tests
Cả thế giới là Rust 0554a20474
tests(ls): Add GNU-compat TIME_STYLE tests (#8796)
* tests(ls): Add GNU-compat TIME_STYLE tests (#4627)

Add comprehensive test coverage for ls TIME_STYLE behavior to align with GNU coreutils:

- test_ls_time_style_env_full_iso: TIME_STYLE environment variable with full-iso format
- test_ls_time_style_iso_recent_and_older: --time-style=iso formatting for recent vs older files
- test_ls_time_style_posix_locale_override: Locale-based fallback with LC_ALL=POSIX
- test_ls_time_style_precedence_last_wins: Precedence between --full-time and --time-style
- test_ls_time_sort_without_long: Time-based sorting without -l flag

These tests directly address remaining gaps highlighted in #4627 for tests/ls/ls-time.sh
from the GNU test suite.

* tests(ls): use set_modified instead of touch; simplify assertions

- Replace #[cfg(feature = "touch")] with set_modified(UNIX_EPOCH) in test_ls_time_style_iso_recent_and_older
- Remove conditional blocks in test_ls_time_sort_without_long and set mtimes via set_modified
- Simplify assertion to assert_ne!(def, t) to compare full outputs

Rationale: Improves determinism, portability, and reduces branching as suggested by maintainer cakebaker in PR review comments.
2025-10-04 07:42:15 +02:00
..
benches/factor chore: cleanup unused dependencies 2025-07-02 19:47:23 -04:00
by-util tests(ls): Add GNU-compat TIME_STYLE tests (#8796) 2025-10-04 07:42:15 +02:00
fixtures test(ptx): Add regression tests for TeX and chunking bugs 2025-10-03 10:53:16 +02:00
uutests who: honor locale settings 2025-09-01 22:36:54 +08:00
test_localization_and_colors.rs clap/locale: fix the colors for all programs (Closes: #8501) 2025-09-05 08:25:59 +02:00
test_util_name.rs link musl libc statically 2025-09-09 12:53:32 +02:00
tests.rs uutests: fix the doc 2025-03-29 09:28:54 +01:00