test_library_builders.sh 1.93 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

24
25
26
fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/2.7.4/harfbuzz-2.7.4.tar.xz
[ -d harfbuzz-2.7.4 ] || ingest ".tar.xz should have been unpacked"

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

66
67
68
[ ${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"

69
stop_spinner
70
71

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