]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add tests for column --table-header-as-columns
authorKarel Zak <kzak@redhat.com>
Mon, 16 Feb 2026 10:22:12 +0000 (11:22 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Feb 2026 10:22:12 +0000 (11:22 +0100)
commit293c446e9b75a291cbc26236d0b7e07de48edea2
tree80950d8c4809c638d76eb3fffa9700396f3564fb
parente36048f52f5fd72eb2539d9cc5618636553fd578
tests: add tests for column --table-header-as-columns

Add test coverage for the --table-header-as-columns (-K) option
added in PR #4003.

Tests cover:
- Basic tab-separated input with header line
- CSV input with comma separator
- JSON output with header-derived column names
- Empty column names in header

Addresses: https://github.com/util-linux/util-linux/pull/4003
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/column/table-header-as-columns [new file with mode: 0644]
tests/expected/column/table-header-as-columns-csv [new file with mode: 0644]
tests/expected/column/table-header-as-columns-empty [new file with mode: 0644]
tests/expected/column/table-header-as-columns-json [new file with mode: 0644]
tests/ts/column/table