test_library_builders.sh 446 Bytes
Newer Older
1
2
# Test some library builders
# Smoke test
3
4
export BUILD_PREFIX="${PWD}/builds"
rm_mkdir $BUILD_PREFIX
5
6
source library_builders.sh

xoviat's avatar
xoviat committed
7
# set -e -x
8

xoviat's avatar
xoviat committed
9
function suppress {
xoviat's avatar
xoviat committed
10
    # Suppress the output of a bash command unless it fails
xoviat's avatar
xoviat committed
11
    rm -f $HOME/suppress.out 2> /dev/null || true
xoviat's avatar
xoviat committed
12
13
    $* 2>&1 > $HOME/suppress.out || cat $HOME/suppress.out
    rm $HOME/suppress.out
xoviat's avatar
xoviat committed
14
15
}

xoviat's avatar
xoviat committed
16
17
18
suppress build_openssl
suppress build_libwebp
suppress build_szip
19
suppress build_swig