blob: 6a72840debcd4bb6888008e7c982c3bf7232df06 (
plain)
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
|
#!/usr/bin/env bash
set -ex
./contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
if [ "x$label" = "xFreeBSD_amd64" ]; then
ENABLE_SANITIZE=""
else
ENABLE_SANITIZE="--enable-sanitize"
fi
autoreconf --install --force
./configure --enable-static $ENABLE_SANITIZE CFLAGS="-Werror" CPPFLAGS="-Werror"
$MAKE $PARALLEL_MAKE check \
|| cat-testlogs.sh
$MAKE distcheck \
|| cat-testlogs.sh
# verify build in dir other than source tree
rm -rf *
git checkout .
autoreconf --install --force
mkdir builddir
cd builddir
../configure --enable-static CFLAGS="-Werror" CPPFLAGS="-Werror"
$MAKE $PARALLEL_MAKE check \
|| cat-testlogs.sh
$MAKE distcheck \
|| cat-testlogs.sh
|