test_library_builders.sh 1.34 KB
Newer Older
1
2
# Test some library builders
# Smoke test
3
4
export BUILD_PREFIX="${PWD}/builds"
rm_mkdir $BUILD_PREFIX
5
source configure_build.sh
6
source library_builders.sh
7
source tests/utils.sh
8

9
10
start_spinner

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

43
44
45
[ ${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"

46
stop_spinner
47
48
49

# Exit 1 if any test errors
barf