Debian Codegraph @

tests/ts/colcrt/functional

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 #
4 # This file is part of util-linux.
5 #
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This file is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 TS_TOPDIR="${0%/*}/../.."
17 TS_DESC="functional"
18
19 export LC_CTYPE='C'
20
21 . "$TS_TOPDIR"/functions.sh
22 ts_init "$*"
23 ts_check_wcsspn
24
25 ts_check_test_command "$TS_CMD_COLCRT"
26
27 ts_init_subtest 'no-options'
28 $TS_CMD_COLCRT < $TS_SELF/nasty-input >> $TS_OUTPUT 2>> $TS_ERRLOG
29 $TS_CMD_COLCRT < $TS_SELF/underlines >> $TS_OUTPUT 2>> $TS_ERRLOG
30 echoscip-shell system . . echo. "return value: $?" >> $TS_OUTPUT
31 ts_finalize_subtest
32
33 ts_init_subtest 'no-underlining'
34 $TS_CMD_COLCRT --no-underlining < $TS_SELF/nasty-input >> $TS_OUTPUT 2>> $TS_ERRLOG
35 $TS_CMD_COLCRT --no-underlining < $TS_SELF/underlines >> $TS_OUTPUT 2>> $TS_ERRLOG
36 echoscip-shell system . . echo. "return value: $?" >> $TS_OUTPUT
37 ts_finalize_subtest
38
39 ts_init_subtest 'half-lines'
40 $TS_CMD_COLCRT --half-lines < $TS_SELF/nasty-input >> $TS_OUTPUT 2>> $TS_ERRLOG
41 $TS_CMD_COLCRT --half-lines < $TS_SELF/underlines >> $TS_OUTPUT 2>> $TS_ERRLOG
42 echoscip-shell system . . echo. "return value: $?" >> $TS_OUTPUT
43 ts_finalize_subtest
44
45 ts_init_subtest 'short-options'
46 $TS_CMD_COLCRT - -2 $TS_SELF/nasty-input >> $TS_OUTPUT 2>> $TS_ERRLOG
47 $TS_CMD_COLCRT - -2 $TS_SELF/underlines >> $TS_OUTPUT 2>> $TS_ERRLOG
48 echoscip-shell system . . echo. "return value: $?" >> $TS_OUTPUT
49 ts_finalize_subtest
50
51 ts_finalize