diff options
author | Karel Zak | 2016-09-13 14:12:11 +0200 |
---|---|---|
committer | Karel Zak | 2016-09-13 14:12:11 +0200 |
commit | a414a1709387298c633d0f549bde5d0459b43a31 (patch) | |
tree | 14e155ce107e54be84e513c98daab160c125da3e /tests | |
parent | libsmartcols: add functions to control terminal usage (diff) | |
download | kernel-qcow2-util-linux-a414a1709387298c633d0f549bde5d0459b43a31.tar.gz kernel-qcow2-util-linux-a414a1709387298c633d0f549bde5d0459b43a31.tar.xz kernel-qcow2-util-linux-a414a1709387298c633d0f549bde5d0459b43a31.zip |
tests: improve libsmartcols test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expected/libsmartcols/fromfile-right-maxout | 11 | ||||
-rwxr-xr-x | tests/ts/libsmartcols/fromfile | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/expected/libsmartcols/fromfile-right-maxout b/tests/expected/libsmartcols/fromfile-right-maxout new file mode 100644 index 000000000..3bcb65abd --- /dev/null +++ b/tests/expected/libsmartcols/fromfile-right-maxout @@ -0,0 +1,11 @@ +NAME NUM +aaaa 0 +bbb 100 +ccccc 21 +dddddd 3 +ee 411 +ffff 5111 +gggggg 678993321 +hhh 7666666 +iiiiii 8765 +jj 987456 diff --git a/tests/ts/libsmartcols/fromfile b/tests/ts/libsmartcols/fromfile index 456ca4367..b8297ae7d 100755 --- a/tests/ts/libsmartcols/fromfile +++ b/tests/ts/libsmartcols/fromfile @@ -35,6 +35,15 @@ $TESTPROG --nlines 10 \ >> $TS_OUTPUT 2>&1 ts_finalize_subtest +ts_init_subtest "right-maxout" +$TESTPROG --nlines 10 --maxout --width 80\ + --column $TS_SELF/files/col-name \ + --column $TS_SELF/files/col-number \ + $TS_SELF/files/data-string \ + $TS_SELF/files/data-number \ + >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + ts_init_subtest "wrapnl" $TESTPROG --nlines 10 \ --column $TS_SELF/files/col-name \ |