diff options
author | Karel Zak | 2018-08-23 13:41:05 +0200 |
---|---|---|
committer | Karel Zak | 2018-08-23 13:41:05 +0200 |
commit | 11159cca217a9a1a950f3f531b8e305f708135ad (patch) | |
tree | 388535a6d2d7a085890d5fe388d37f9200d96605 /tests/ts | |
parent | column: add --table-empty-lines (diff) | |
download | kernel-qcow2-util-linux-11159cca217a9a1a950f3f531b8e305f708135ad.tar.gz kernel-qcow2-util-linux-11159cca217a9a1a950f3f531b8e305f708135ad.tar.xz kernel-qcow2-util-linux-11159cca217a9a1a950f3f531b8e305f708135ad.zip |
tests: add column --table-empty-lines test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts')
-rw-r--r-- | tests/ts/column/files/table-empty-lines | 6 | ||||
-rwxr-xr-x | tests/ts/column/table | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ts/column/files/table-empty-lines b/tests/ts/column/files/table-empty-lines new file mode 100644 index 000000000..9429b4dab --- /dev/null +++ b/tests/ts/column/files/table-empty-lines @@ -0,0 +1,6 @@ + +A B CCC +AA BBB AA +AAA BB C + +AAAA BBBB CCCC diff --git a/tests/ts/column/table b/tests/ts/column/table index b6dbd5d92..bd1f16f3f 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -40,6 +40,14 @@ ts_init_subtest "input-separator-space" $TS_CMD_COLUMN --separator "$(echo -e '\t')" --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1 ts_finalize_subtest +ts_init_subtest "empty-lines" +$TS_CMD_COLUMN --table --table-empty-lines $TS_SELF/files/table-empty-lines >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + +ts_init_subtest "noempty-lines" +$TS_CMD_COLUMN --table $TS_SELF/files/table-empty-lines >> $TS_OUTPUT 2>&1 +ts_finalize_subtest + ts_init_subtest "long" $TS_CMD_COLUMN --table $TS_SELF/files/mountinfo >> $TS_OUTPUT 2>&1 ts_finalize_subtest |