From 298a9eaf659bdddff7145e9f800b3a0b712fc0a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vojt=C4=9Bch=20Eichler?= Date: Mon, 4 Oct 2021 16:46:22 +0200 Subject: [PATCH] tests: split test into subtest --- tests/expected/col/io | 238 -------------------------- tests/expected/col/io-allocate-here | 2 + tests/expected/col/io-cr | 1 + tests/expected/col/io-cs-alternate | 1 + tests/expected/col/io-cs-normal | 2 + tests/expected/col/io-esc-backspace | 1 + tests/expected/col/io-esc-tab | 2 + tests/expected/col/io-flushing | 199 +++++++++++++++++++++ tests/expected/col/io-half-line | 2 + tests/expected/col/io-reverse-lf | 2 + tests/expected/col/io-so-si | 0 tests/expected/col/io-tab-backspace | 1 + tests/expected/col/io-trailing-spaces | 2 + tests/expected/col/io-various-spaces | 1 + tests/expected/col/io-vt1 | 3 + tests/expected/col/io-vt2 | 5 + tests/ts/col/io | 45 +++-- 17 files changed, 254 insertions(+), 253 deletions(-) create mode 100644 tests/expected/col/io-allocate-here create mode 100644 tests/expected/col/io-cr create mode 100644 tests/expected/col/io-cs-alternate create mode 100644 tests/expected/col/io-cs-normal create mode 100644 tests/expected/col/io-esc-backspace create mode 100644 tests/expected/col/io-esc-tab create mode 100644 tests/expected/col/io-flushing create mode 100644 tests/expected/col/io-half-line create mode 100644 tests/expected/col/io-reverse-lf create mode 100644 tests/expected/col/io-so-si create mode 100644 tests/expected/col/io-tab-backspace create mode 100644 tests/expected/col/io-trailing-spaces create mode 100644 tests/expected/col/io-various-spaces create mode 100644 tests/expected/col/io-vt1 create mode 100644 tests/expected/col/io-vt2 diff --git a/tests/expected/col/io b/tests/expected/col/io index d74a8586dd..e69de29bb2 100644 --- a/tests/expected/col/io +++ b/tests/expected/col/io @@ -1,238 +0,0 @@ -trailing spaces -1 -2 -tab backspace -1 2 -various spaces -1 2 -cr -12 -vt1 -1 -243 -5 -vt2 - c - - b - -a -reverse lf -13 -2 -so si -esc-tab - -1 -esc-backspace -12 -cs_normal - 0 -> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "tab backspace" +ts_init_subtest "tab-backspace" printf "1\t\x082\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "various spaces" +ts_init_subtest "various-spaces" printf "1 \t\f2\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "cr" +ts_init_subtest "cr" printf "1\r2\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "vt1" +ts_init_subtest "vt1" printf "1\n23\v\n4\n5\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "vt2" +ts_init_subtest "vt2" printf "a\v\vb\v\vc" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "reverse lf" +ts_init_subtest "reverse-lf" printf "1\n2\e\x073\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "so si" +ts_init_subtest "so-si" printf "\x0e\x0f" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "esc-tab" +ts_init_subtest "esc-tab" printf "\e\t\b1\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "esc-backspace" +ts_init_subtest "esc-backspace" printf "1\e\b2\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "cs_normal" +ts_init_subtest "cs-normal" printf "> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "cs_alternate" +ts_init_subtest "cs-alternate" printf "1\t\x0E2\n" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "allocate here" +ts_init_subtest "allocate-here" printf "1\t\v2\t\n3" | ts_run $TS_CMD_COL >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "half line" +ts_init_subtest "half-line" printf "\e\t\b1\n" | ts_run $TS_CMD_COL --fine >> $TS_OUTPUT 2>&1 +ts_finalize_subtest -ts_log "flushing" +ts_init_subtest "flushing" seq 1 199 | ts_run $TS_CMD_COL --lines 8 >> $TS_OUTPUT 2>&1 +ts_finalize_subtest ts_finalize -- 2.47.3