]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: add wrap-zero test
authorKarel Zak <kzak@redhat.com>
Mon, 23 Oct 2023 12:47:35 +0000 (14:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Oct 2023 19:54:01 +0000 (21:54 +0200)
commitd585a4159d5dac1889bccfc8d3b17e3795ef8de6
tree0684159b9ffb904a77f090999b104e83dbd489cc
parent301d02816f070ad4c66f7b8fb789d5d5e121ab9b
libsmartcols: add wrap-zero test

* modify samples/fromfile.c to use scols_wrapzero_nextchunk() callback
  if "wrapzero" specified for the test colum
* add col-wrapzero and data-string-zero to define the column and zero
  separated data

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/samples/fromfile.c
tests/expected/libsmartcols/fromfile-wrapzero [new file with mode: 0644]
tests/expected/libsmartcols/fromfile-wrapzero-tree [new file with mode: 0644]
tests/ts/libsmartcols/files/col-wrapzero [new file with mode: 0644]
tests/ts/libsmartcols/files/data-string-zero [new file with mode: 0644]
tests/ts/libsmartcols/fromfile