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

# The environment
uname -a
5

Andrew Murray's avatar
Andrew Murray committed
6
if [ -n "$IS_MACOS" ]; then
7
8
9
10
11
12
13
14
15
16
17
18
    # Building on macOS
    export BUILD_PREFIX="${PWD}/builds"
    rm_mkdir $BUILD_PREFIX
    source configure_build.sh
    source library_builders.sh
else
    # Building on Linux
    # Glibc version
    ldd --version
    # configure_build.sh, library_builders.sh sourced in
    # docker_build_wrap.sh
fi
Matthew Brett's avatar
Matthew Brett committed
19

20
source tests/utils.sh
21

22
23
start_spinner

Matthew Brett's avatar
Matthew Brett committed
24
suppress build_bzip2
xoviat's avatar
xoviat committed
25
suppress build_openssl
26
suppress build_libpng
xoviat's avatar
xoviat committed
27
28
suppress build_libwebp
suppress build_szip
29
suppress build_swig
30
# We need to find a failable test for build_github
Matthew Brett's avatar
Matthew Brett committed
31
# It needs a standalone C library with ./configure script.
32
33
34
# 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
35
    build_github fredrik-johansson/arb 2.19.0 ;
Andrew Murray's avatar
Andrew Murray committed
36
    build_github glennrp/libpng v1.6.37 ;
37
38
    build_github wbhart/mpir mpir-3.0.0
    )
39
suppress build_flex
xoviat's avatar
xoviat committed
40
suppress build_openblas
Matthew Brett's avatar
Matthew Brett committed
41
42
suppress build_tiff
suppress build_lcms2
43
suppress ensure_xz
Matthew Brett's avatar
Matthew Brett committed
44
45
suppress build_freetype
suppress build_libyaml
Andrew Murray's avatar
Andrew Murray committed
46
if [ -z "$IS_MACOS" ]; then
47
48
49
50
51
    # 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
52
suppress build_ragel
Andrew Murray's avatar
Andrew Murray committed
53
if [ -z "$IS_MACOS" ]; then
54
55
56
    # already installed in the macOS image, so `brew install cfitsio` fails
    suppress build_cfitsio
fi
Matthew Brett's avatar
Matthew Brett committed
57
suppress build_new_zlib
Tom Kooij's avatar
Tom Kooij committed
58
suppress build_hdf5
59
suppress get_modern_cmake
60

61
62
63
[ ${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"

64
stop_spinner
65
66

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