diff options
author | Karel Zak | 2016-09-15 12:12:18 +0200 |
---|---|---|
committer | Karel Zak | 2016-09-15 12:12:18 +0200 |
commit | 18ff51547d8dec7e37c034c5f9b6cb529470069e (patch) | |
tree | 68f089f70988fdb076c61fef8d2bb9bdb9d02686 /tests/ts/libsmartcols/fromfile | |
parent | Merge branch 'patch-1' of https://github.com/ignatenkobrain/util-linux (diff) | |
download | kernel-qcow2-util-linux-18ff51547d8dec7e37c034c5f9b6cb529470069e.tar.gz kernel-qcow2-util-linux-18ff51547d8dec7e37c034c5f9b6cb529470069e.tar.xz kernel-qcow2-util-linux-18ff51547d8dec7e37c034c5f9b6cb529470069e.zip |
libsmartcols: add support for trees to the sample application
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/libsmartcols/fromfile')
-rwxr-xr-x | tests/ts/libsmartcols/fromfile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/ts/libsmartcols/fromfile b/tests/ts/libsmartcols/fromfile index 074ebf86b..67371b313 100755 --- a/tests/ts/libsmartcols/fromfile +++ b/tests/ts/libsmartcols/fromfile @@ -23,6 +23,21 @@ ts_init "$*" TESTPROG="$TS_HELPER_LIBSMARTCOLS_FROMFILE" ts_check_test_command "$TESTPROG" +ts_init_subtest "tree" +$TESTPROG --nlines 10 \ + --tree-id-column 1 \ + --tree-parent-column 2 \ + --column $TS_SELF/files/col-tree \ + --column $TS_SELF/files/col-id \ + --column $TS_SELF/files/col-parent \ + --column $TS_SELF/files/col-string \ + $TS_SELF/files/data-string \ + $TS_SELF/files/data-id \ + $TS_SELF/files/data-parent \ + $TS_SELF/files/data-string-long \ + >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + ts_init_subtest "trunc" $TESTPROG --nlines 10 --width 40 \ --column $TS_SELF/files/col-name \ @@ -113,6 +128,5 @@ $TESTPROG --nlines 10 \ >> $TS_OUTPUT 2>&1 ts_finalize_subtest - ts_log "...done." ts_finalize |