test_library_builders.sh 1.42 KB
Newer Older
1
# Test some library builders
Matthew Brett's avatar
Matthew Brett committed
2
3
4

# The environment
uname -a
5
6
7

# Glibc version
(which ldd && ldd --version) || true
Matthew Brett's avatar
Matthew Brett committed
8

9
# Smoke test
10
11
export BUILD_PREFIX="${PWD}/builds"
rm_mkdir $BUILD_PREFIX
12
source configure_build.sh
13
source library_builders.sh
14
source tests/utils.sh
15

16
17
start_spinner

Matthew Brett's avatar
Matthew Brett committed
18
suppress build_bzip2
xoviat's avatar
xoviat committed
19
suppress build_openssl
20
suppress build_libpng
xoviat's avatar
xoviat committed
21
22
suppress build_libwebp
suppress build_szip
23
suppress build_swig
24
# We need to find a failable test for build_github
Matthew Brett's avatar
Matthew Brett committed
25
# It needs a standalone C library with ./configure script.
26
27
28
# E.g. arb (below) requires a couple of other libraries.
# Run here just for the output, even though they fail.
(set +e ;
Andrew Murray's avatar
Andrew Murray committed
29
    build_github fredrik-johansson/arb 2.16.0 ;
Andrew Murray's avatar
Andrew Murray committed
30
    build_github glennrp/libpng v1.6.37 ;
31
32
    build_github wbhart/mpir mpir-3.0.0
    )
33
suppress build_flex
xoviat's avatar
xoviat committed
34
suppress build_openblas
Matthew Brett's avatar
Matthew Brett committed
35
36
37
38
39
suppress build_tiff
suppress build_lcms2
suppress build_xz
suppress build_freetype
suppress build_libyaml
40
41
42
43
44
45
if [ -z "$IS_OSX" ]; then
    # Gives compiler conformance error on macOS Sierra:
    # https://gist.github.com/5e20e137ea51fa8ca9fc443191f9d463
    # https://gist.github.com/ad86c474f3c0b7ec74290bb13f9414af
    suppress build_lzo
fi
Matthew Brett's avatar
Matthew Brett committed
46
suppress build_ragel
Matthew Brett's avatar
Matthew Brett committed
47
suppress build_cfitsio
Matthew Brett's avatar
Matthew Brett committed
48
suppress build_new_zlib
49

50
51
52
[ ${MB_PYTHON_VERSION+x} ] || ingest "\$MB_PYTHON_VERSION is not set"
[ "$MB_PYTHON_VERSION" == "$PYTHON_VERSION" ] || ingest "\$MB_PYTHON_VERSION must be equal to \$PYTHON_VERSION"

53
stop_spinner
54
55

# Exit 1 if any test errors
Matthew Brett's avatar
Matthew Brett committed
56
barf