@@ -28,6 +28,18 @@ GMAKE=$(which gmake)
28
28
MKDIR=$( which mkdir)
29
29
PERL=$( which perl)
30
30
31
+ RUN_TESTS=yes
32
+
33
+ if [ " $1 " = " --notest" ]; then
34
+ RUN_TESTS=no
35
+ fi
36
+
37
+ function make_check() {
38
+ if [ " ${RUN_TESTS} " = " yes" ]; then
39
+ ${GMAKE} ${MAKEARGS} check
40
+ fi
41
+ }
42
+
31
43
# Try to get the OS distributor such as "Fedora"
32
44
if [ " ${OS} " = " Linux" -a -n " ${LSB_RELEASE} " ]; then
33
45
DISTRIB=" $( ${LSB_RELEASE} -i -s) "
@@ -95,7 +107,7 @@ case "${OS}-${ARCH}-${DISTRIB}" in
95
107
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
96
108
./autogen.sh ${STATIC} ${VERBOSE} ${DEBUG} ${SSL} ${SASL} ${HARDEN} ${OPTIMIZE} --prefix=${PWD} /_install/usr --libdir=${PWD} /_install/usr/lib
97
109
${GMAKE} ${MAKEARGS} all
98
- ${GMAKE} ${MAKEARGS} check
110
+ make_check
99
111
${GMAKE} ${MAKEARGS} install
100
112
${GMAKE} ${MAKEARGS} clean
101
113
@@ -105,7 +117,7 @@ case "${OS}-${ARCH}-${DISTRIB}" in
105
117
export PKG_CONFIG_PATH=/usr/lib/${ALT_ARCH} /pkgconfig
106
118
./configure ${STATIC} ${VERBOSE} ${DEBUG} ${SSL} ${SASL} ${HARDEN} ${OPTIMIZE} --prefix=${PWD} /_install/usr --libdir=${PWD} /_install/usr/lib/${ALT_ARCH}
107
119
${GMAKE} ${MAKEARGS} all
108
- ${GMAKE} ${MAKEARGS} check
120
+ make_check
109
121
${GMAKE} ${MAKEARGS} install
110
122
111
123
VERSION=$( cat build/version)
156
168
# Bootstrap, build, and run unit tests.
157
169
./autogen.sh ${STATIC} ${VERBOSE} ${DEBUG} ${SSL} ${SASL} ${MAN} ${HARDEN} ${OPTIMIZE}
158
170
${GMAKE} ${MAKEARGS} all
159
- ${GMAKE} ${MAKEARGS} check
171
+ make_check
160
172
161
173
# Extract the major.minor.micro triplet.
162
174
VERSION=" $( cat build/version) "
205
217
* )
206
218
./autogen.sh ${STATIC} ${VERBOSE} ${DEBUG} ${SSL} ${SASL} ${HARDEN} ${OPTIMIZE}
207
219
${GMAKE} ${MAKEARGS} all
208
- ${GMAKE} ${MAKEARGS} check
220
+ make_check
209
221
;;
210
222
esac
211
223
0 commit comments