]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: use scols_column_set_properties() in 'fromfile' sample
authorKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 13:58:08 +0000 (14:58 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
commit762298be2ca78ddbf3fa02de8c41ab3fcffaca85
tree8a9698e7b0e6042992a6c35b9002fc7c8dd45c81
parent8abcb04dab6314782e649b81a130e418affb7790
tests: use scols_column_set_properties() in 'fromfile' sample

The library already can read column properties from a column separated
string. Let's use it in 'fromfile' sample to avoid duplicate code and
to test this function too.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 files changed:
libsmartcols/samples/fromfile.c
tests/expected/libsmartcols/fromfile-tree-json
tests/ts/libsmartcols/files/col-hidden
tests/ts/libsmartcols/files/col-id
tests/ts/libsmartcols/files/col-name
tests/ts/libsmartcols/files/col-noextremes
tests/ts/libsmartcols/files/col-number
tests/ts/libsmartcols/files/col-parent
tests/ts/libsmartcols/files/col-strict
tests/ts/libsmartcols/files/col-string
tests/ts/libsmartcols/files/col-tree
tests/ts/libsmartcols/files/col-trunc
tests/ts/libsmartcols/files/col-wrap
tests/ts/libsmartcols/files/col-wrapnl
tests/ts/libsmartcols/files/col-wrapzero