summaryrefslogtreecommitdiffstats
path: root/tests/ts/libsmartcols
diff options
context:
space:
mode:
authorKarel Zak2016-09-15 12:32:58 +0200
committerKarel Zak2016-09-15 12:32:58 +0200
commit73bcb64f1abe9aa26953152aed500a4d349987b5 (patch)
tree9953064a0868c646dc54a9e1c344545b9ba43b29 /tests/ts/libsmartcols
parenttests: add tree libsmartcols test files (diff)
downloadkernel-qcow2-util-linux-73bcb64f1abe9aa26953152aed500a4d349987b5.tar.gz
kernel-qcow2-util-linux-73bcb64f1abe9aa26953152aed500a4d349987b5.tar.xz
kernel-qcow2-util-linux-73bcb64f1abe9aa26953152aed500a4d349987b5.zip
tests: add libsmartcols wrap and wrapnl tree tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/libsmartcols')
-rwxr-xr-xtests/ts/libsmartcols/fromfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/ts/libsmartcols/fromfile b/tests/ts/libsmartcols/fromfile
index 67371b313..e57e63bc0 100755
--- a/tests/ts/libsmartcols/fromfile
+++ b/tests/ts/libsmartcols/fromfile
@@ -117,6 +117,21 @@ $TESTPROG --nlines 10 --width 40 \
>> $TS_OUTPUT 2>&1
ts_finalize_subtest
+ts_init_subtest "wrap-tree"
+$TESTPROG --nlines 10 --width 45 \
+ --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-wrap \
+ $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 "wrapnl"
$TESTPROG --nlines 10 \
--column $TS_SELF/files/col-name \
@@ -128,5 +143,20 @@ $TESTPROG --nlines 10 \
>> $TS_OUTPUT 2>&1
ts_finalize_subtest
+ts_init_subtest "wrapnl-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-wrapnl \
+ $TS_SELF/files/data-string \
+ $TS_SELF/files/data-id \
+ $TS_SELF/files/data-parent \
+ $TS_SELF/files/data-string-nl \
+ >> $TS_OUTPUT 2>&1
+ts_finalize_subtest
+
ts_log "...done."
ts_finalize