coverage: Improve testing
[src/app-framework-binder.git] / coverage / scripts / run-test.sh
1 #!/bin/sh
2
3 export R=$(realpath $(dirname $0)/..)
4 export PATH="$R/bin:$R/scripts:$PATH"
5
6 $R/bin/afb-daemon-cov --help > /dev/null
7
8 $R/bin/afb-daemon-cov --version > /dev/null
9
10 $R/bin/afb-daemon-cov --fake-option > /dev/null
11
12 valgrind \
13         --log-file=$R/valgrind.out \
14         --trace-children=no \
15         --track-fds=yes \
16         --leak-check=full \
17          --show-leak-kinds=all \
18 $R/bin/afb-daemon-cov \
19         --verbose \
20         --verbose \
21         --verbose \
22         --verbose \
23         --quiet \
24         --quiet \
25         --quiet \
26         --quiet \
27         --quiet \
28         --quiet \
29         --log error,warning,notice,info,debug,critical,alert-error,warning,notice,info,debug,critical,alert+error,warning,notice,info,debug,critical,alert \
30         --foreground \
31         --name binder-cov \
32         --roothttp $R/www \
33         --rootbase /opx \
34         --rootapi /api \
35         --alias /icons:$R/www \
36         --apitimeout 90 \
37         --cntxtimeout 3600 \
38         --cache-eol 200 \
39         --workdir . \
40         --uploaddir . \
41         --rootdir . \
42         --ldpaths $R/ldpath/strong \
43         --binding $R/bin/demat.so \
44         --weak-ldpaths $R/ldpath/weak \
45         --auto-api $R/apis/auto \
46         --token HELLO \
47         --random-token \
48         --session-max 1000 \
49         --tracereq all \
50         --traceapi all \
51         --traceses all \
52         --traceevt all \
53         --call demat/ping:true \
54         --ws-server unix:$R/apis/ws/hello \
55         --ws-server unix:$R/apis/ws/salut \
56         --exec $R/scripts/run-parts.sh @p @t
57
58 exit 0
59