3 export R=$(realpath $(dirname $0)/..)
4 export PATH="$R/bin:$R/scripts:$PATH"
8 lcov -c -i -d $R/bin -o $R/lcov-out.info
12 echo "*******************************************************************"
14 echo "*******************************************************************"
15 lcov -c -i -d $R/bin -o $R/fake.info
17 lcov -c -d $R/bin -o $R/tmp.info
18 mv $R/lcov-out.info $R/previous.info
19 lcov -a $R/tmp.info -a $R/previous.info -o $R/lcov-out.info
20 rm $R/previous.info $R/fake.info $R/tmp.info
24 export AFB_LDPATHS=/tmp/ldpaths
25 export AFB_TRACEAPI=no
27 ##########################################################
28 # test to check options
29 ##########################################################
30 mk $R/bin/afb-daemon-cov --help
32 mk $R/bin/afb-daemon-cov --version
34 mk $R/bin/afb-daemon-cov --no-httpd --fake-option
36 mk $R/bin/afb-daemon-cov --daemon --session-max
38 mk $R/bin/afb-daemon-cov --ws-client fake --session-max toto
40 mk $R/bin/afb-daemon-cov --foreground --port -55
42 mk $R/bin/afb-daemon-cov --foreground --port 9999999
44 mk $R/bin/afb-daemon-cov --no-ldpath --traceapi fake
46 mk $R/bin/afb-daemon-cov --traceditf all --tracesvc all --log error,alarm
48 mk $R/bin/afb-daemon-cov --call noapi/noverb:false
50 mk $R/bin/afb-daemon-cov --call not-a-call
52 LISTEN_FDNAMES=toto,demat LISTEN_FDS=5
53 typeset -x LISTEN_FDNAMES LISTEN_FDS
54 mk $R/bin/afb-daemon-cov --no-ldpath --binding $R/bin/demat.so --ws-server sd:demat --call "demat/exit:0"
55 typeset +x LISTEN_FDNAMES LISTEN_FDS
57 mk $R/bin/afb-daemon-cov --weak-ldpaths $R/ldpath/weak --binding $R/bin/demat.so --ws-server sd:demat --call "demat/exit:0"
59 AFB_DEBUG_BREAK=zero,one,two,main-start AFB_DEBUG_WAIT="here I am"
60 typeset -x AFB_DEBUG_BREAK AFB_DEBUG_WAIT
61 mk $R/bin/afb-daemon-cov --rootdir $R/i-will-never-exist
62 typeset +x AFB_DEBUG_BREAK AFB_DEBUG_WAIT
64 mk $R/bin/afb-daemon-cov --workdir=/etc/you/should/not/be/able/to/create/me
66 mk $R/bin/afb-daemon-cov --exec $R/it-doesn-t-exist
68 ##########################################################
70 ##########################################################
73 mk $R/bin/test-session
75 mk $R/bin/test-wrap-json
77 ##########################################################
79 ##########################################################
82 --log-file=$R/valgrind.out \
86 --show-leak-kinds=all \
88 $R/bin/afb-daemon-cov \
99 --log error,warning,notice,info,debug,critical,alert-error,warning,notice,info,debug,critical,alert+error,warning,notice,info,debug,critical,alert \
106 --alias /icons:$R/www \
113 --ldpaths $R/ldpath/strong \
114 --binding $R/bin/demat.so \
115 --auto-api $R/apis/auto \
125 --set hello/key:a-kind-of-text \
126 --call demat/ping:true \
127 --call hello/ping:false \
128 --ws-server unix:$R/apis/ws/hello \
129 --ws-server unix:$R/apis/ws/salut \
130 --exec $R/scripts/run-parts.sh @p @t
132 ##########################################################
134 ##########################################################
137 --log-file=$R/valgrind.out \
138 --trace-children=no \
141 --show-leak-kinds=all \
143 $R/bin/afb-daemon-cov \
148 --alias /icons:$R/www \
152 --ldpaths $R/ldpath/strong \
153 --binding $R/bin/demat.so \
154 --auto-api $R/apis/auto \
156 --ws-server unix:$R/apis/ws/hello \
157 --ws-server unix:$R/apis/ws/salut \
158 --ws-server localhost:9595/salut \
161 --auto-api $R/apis/auto \
162 --auto-api $R/apis/ws \
163 --ws-client localhost:@p/salut2 \
164 $R/scripts/run-parts.sh @@p @@t