-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.cfg
79 lines (62 loc) · 2.18 KB
/
init.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This file is sourced by init.sh, *before* its initialization.
##
## The file was copied from GNU coreutils, with the following license:
##
# Copyright (C) 2010-2014 Free Software Foundation, Inc.
# Modifications for GNU Datamash are
# Copyright (C) 2014-2021 Assaf Gordon <[email protected]>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This goes hand in hand with the "exec 9>&2;" in tests/Makefile.am's
# TESTS_ENVIRONMENT definition.
stderr_fileno_=9
# Skip the current test if valgrind doesn't work,
# which could happen if not installed,
# or hasn't support for the built architecture,
# or hasn't appropriate error suppressions installed etc.
require_valgrind_()
{
valgrind --error-exitcode=1 true 2>/dev/null ||
skip_ "requires a working valgrind"
}
# Skip the current test if 'paste' doesn't work.
# Alpine linux does not have 'paste' in the default minimal installation.
require_paste_()
{
paste - </dev/null 2>/dev/null ||
skip_ "requires a working paste(1)"
}
openbsd_seq_replacement_()
{
## Wrap jot on OpenBSD since it doesn't have seq
test "$(uname -s)" = OpenBSD || return
seq()
{
if [ $# -eq 1 ]; then
jot "$1"
elif [ $# -eq 2 ]; then
jot - "$1" "$2"
fi
}
}
expensive_()
{
if test "$RUN_EXPENSIVE_TESTS" != yes; then
skip_ 'expensive: disabled by default
This test is relatively expensive, so it is disabled by default.
To run it anyway, rerun make check with the RUN_EXPENSIVE_TESTS
environment variable set to yes. E.g.,
env RUN_EXPENSIVE_TESTS=yes make check
or use the shortcut target of the toplevel Makefile,
make check-expensive
'
fi
}