diff options
author | Karel Zak | 2018-02-12 14:19:47 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-12 14:19:47 +0100 |
commit | 1800de76baf2f1a455d9d25402a72c51df7c91be (patch) | |
tree | d3221445cddbb86c14d50afed01227d57ade35dd /tests | |
parent | tests: column(1) test non-space separator at begin of line (diff) | |
download | kernel-qcow2-util-linux-1800de76baf2f1a455d9d25402a72c51df7c91be.tar.gz kernel-qcow2-util-linux-1800de76baf2f1a455d9d25402a72c51df7c91be.tar.xz kernel-qcow2-util-linux-1800de76baf2f1a455d9d25402a72c51df7c91be.zip |
tests: column(1) test for space-char separator
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expected/column/table-input-separator-space | 6 | ||||
-rw-r--r-- | tests/ts/column/files/table-sep-space | 6 | ||||
-rwxr-xr-x | tests/ts/column/table | 3 |
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/expected/column/table-input-separator-space b/tests/expected/column/table-input-separator-space new file mode 100644 index 000000000..8a6513c11 --- /dev/null +++ b/tests/expected/column/table-input-separator-space @@ -0,0 +1,6 @@ +AAA BBBB C DDDD +BBB CCCC DDD +AA BB DD +AAAA B CC D +AA CC DD +AAAAA BBB CCC DDDD diff --git a/tests/ts/column/files/table-sep-space b/tests/ts/column/files/table-sep-space new file mode 100644 index 000000000..25d9b5ab0 --- /dev/null +++ b/tests/ts/column/files/table-sep-space @@ -0,0 +1,6 @@ +AAA BBBB C DDDD + BBB CCCC DDD +AA BB DD +AAAA B CC D +AA CC DD +AAAAA BBB CCC DDDD diff --git a/tests/ts/column/table b/tests/ts/column/table index f11c1d794..27b52e7c8 100755 --- a/tests/ts/column/table +++ b/tests/ts/column/table @@ -36,6 +36,9 @@ ts_init_subtest "input-separator" $TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep >> $TS_OUTPUT 2>&1 ts_finalize_subtest +ts_init_subtest "input-separator-space" +$TS_CMD_COLUMN --separator ',' --table $TS_SELF/files/table-sep-space >> $TS_OUTPUT 2>&1 +ts_finalize_subtest ts_init_subtest "long" $TS_CMD_COLUMN --table $TS_SELF/files/mountinfo >> $TS_OUTPUT 2>&1 |