summaryrefslogtreecommitdiff
path: root/test/run-tests.sh
blob: 7796bb2a1c78da2903fbf360a81a8a4c775be9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# This script can be used to run the installed neon test suite
# against an installed copy of the neon library.
# 

# enable glibc malloc safety checks
MALLOC_CHECK_=2
MALLOC_PERTURB_=242
export MALLOC_CHECK_ MALLOC_PERTURB_

cd data

if test -x ../bin/ssl; then
    rm -rf ca

    echo "INIT: generating SSL ceritifcates..."
    if sh ./makekeys.sh 2> makekeys.out; then :; else
        echo FAIL: could not generate SSL certificates
        exit 2
    fi
fi

for t in ../bin/*; do
    if ${t}; then :; else
        echo FAIL: ${t}
        exit 1
    fi
done

echo "PASS: all tests passed"

exit 0