Debian Codegraph @

tests/ts/misc/boilerplate

raw
1 #!/bin/bash
2
3 # Copyright (C) 2023 Thomas Weißschuh <[email protected]>
4 #
5 # This file is part of util-linux.
6 #
7 # This file is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This file is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 TS_TOPDIR="${0%/*}/../.."
18 TS_DESC="Documentation/boilerplate"
19
20 . "$TS_TOPDIR"/functions.sh
21 ts_init "$*"
22
23 ts_check_test_command "$TS_HELPER_BOILERPLATE"
24
25 ts_init_subtest exec
26
27 "$TS_HELPER_BOILERPLATE" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
28 echo "ret=$?" >> "$TS_OUTPUT"
29
30 ts_finalize_subtest
31
32 ts_init_subtest help
33
34 "$TS_HELPER_BOILERPLATE" --help >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
35 echo "ret=$?" >> "$TS_OUTPUT"
36
37 ts_finalize_subtest
38
39 ts_finalize