test_library_builders.sh 1.45 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
Matthew Brett's avatar
Matthew Brett committed
14
15
16
17

echo "Lookee here"
echo $PATH

18
source tests/utils.sh
19

20
21
start_spinner

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

54
55
56
[ ${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"

57
stop_spinner
58
59

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