]> git.ipfire.org Git - thirdparty/util-linux.git/blob - tests/ts/colcrt/regressions
15117609a447ed88f1dc7799e0d2f0ef0b93ce84
[thirdparty/util-linux.git] / tests / ts / colcrt / regressions
1 #!/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="regressions"
18
19 . $TS_TOPDIR/functions.sh
20 ts_init "$*"
21
22 ts_check_test_command "$TS_CMD_COLCRT"
23 ts_check_prog "timeout"
24
25 check_input_file() {
26 ts_init_subtest ${1##*/}
27 LC_ALL=C.UTF-8 timeout 2 $TS_CMD_COLCRT < $1 >> $TS_OUTPUT 2>> $TS_ERRLOG
28 echo "return value: $?" >> $TS_OUTPUT
29 ts_finalize_subtest
30 }
31
32 check_input_file "$TS_SELF/crash1"
33 check_input_file "$TS_SELF/crash2"
34 check_input_file "$TS_SELF/hang1"
35
36 ts_finalize