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

# The environment
uname -a
ldd --version

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

14
15
start_spinner

Matthew Brett's avatar
Matthew Brett committed
16
suppress build_bzip2
xoviat's avatar
xoviat committed
17
suppress build_openssl
18
suppress build_libpng
xoviat's avatar
xoviat committed
19
20
suppress build_libwebp
suppress build_szip
21
suppress build_swig
22
# We need to find a failable test for build_github
Matthew Brett's avatar
Matthew Brett committed
23
# It needs a standalone C library with ./configure script.
24
25
26
# 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
27
    build_github fredrik-johansson/arb 2.16.0 ;
Andrew Murray's avatar
Andrew Murray committed
28
    build_github glennrp/libpng v1.6.37 ;
29
30
    build_github wbhart/mpir mpir-3.0.0
    )
31
suppress build_flex
xoviat's avatar
xoviat committed
32
suppress build_openblas
Matthew Brett's avatar
Matthew Brett committed
33
34
35
36
37
suppress build_tiff
suppress build_lcms2
suppress build_xz
suppress build_freetype
suppress build_libyaml
38
39
40
41
42
43
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
44
suppress build_ragel
Matthew Brett's avatar
Matthew Brett committed
45
suppress build_cfitsio
Matthew Brett's avatar
Matthew Brett committed
46
suppress build_new_zlib
47

48
49
50
[ ${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"

51
stop_spinner
52
53

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