From: Karel Zak Date: Thu, 23 Aug 2018 11:41:05 +0000 (+0200) Subject: tests: add column --table-empty-lines test X-Git-Tag: v2.33-rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11159cca217a9a1a950f3f531b8e305f708135ad;p=thirdparty%2Futil-linux.git tests: add column --table-empty-lines test Signed-off-by: Karel Zak --- diff --git a/tests/expected/column/table-empty-lines b/tests/expected/column/table-empty-lines new file mode 100644 index 0000000000..5e8fb21e1d --- /dev/null +++ b/tests/expected/column/table-empty-lines @@ -0,0 +1,6 @@ + +A B CCC +AA BBB AA +AAA BB C + +AAAA BBBB CCCC diff --git a/tests/expected/column/table-noempty-lines b/tests/expected/column/table-noempty-lines new file mode 100644 index 0000000000..6a45feedde --- /dev/null +++ b/tests/expected/column/table-noempty-lines @@ -0,0 +1,4 @@ +A B CCC +AA BBB AA +AAA BB C +AAAA BBBB CCCC diff --git a/tests/ts/column/files/table-empty-lines b/tests/ts/column/files/table-empty-lines new file mode 100644 index 0000000000..9429b4dab1 --- /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 b6dbd5d923..bd1f16f3ff 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