summaryrefslogtreecommitdiffstats
path: root/coverage/scripts/run-test.sh
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-06-22 18:30:43 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-06-22 18:30:43 +0200
commit57e09344b57d98515bf02165e0e33a1d43134af0 (patch)
treee135a770ca7d0357c3d3ef9c25b2987fa30681ab /coverage/scripts/run-test.sh
parent1f9e60c26a10bc4232b4827e85235dafcee17120 (diff)
coverage: Add coverage testflounder_5.99.1flounder/5.99.15.99.1
This is a first version of the coverage tests. Change-Id: Iec2feaba12c369b2ff5fb82e246fa0cad87813f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/scripts/run-test.sh')
-rwxr-xr-xcoverage/scripts/run-test.sh53
1 files changed, 53 insertions, 0 deletions
diff --git a/coverage/scripts/run-test.sh b/coverage/scripts/run-test.sh
new file mode 100755
index 00000000..ef280b64
--- /dev/null
+++ b/coverage/scripts/run-test.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+export R=$(realpath $(dirname $0)/..)
+export PATH="$R/bin:$R/scripts:$PATH"
+
+$R/bin/afb-daemon-cov --help > /dev/null
+
+$R/bin/afb-daemon-cov --version > /dev/null
+
+$R/bin/afb-daemon-cov --fake-option > /dev/null
+
+$R/bin/afb-daemon-cov \
+ --verbose \
+ --verbose \
+ --verbose \
+ --verbose \
+ --quiet \
+ --quiet \
+ --quiet \
+ --quiet \
+ --quiet \
+ --quiet \
+ --log error,warning,notice,info,debug,critical,alert-error,warning,notice,info,debug,critical,alert+error,warning,notice,info,debug,critical,alert \
+ --foreground \
+ --name binder-cov \
+ --roothttp $R/www \
+ --rootbase /opx \
+ --rootapi /api \
+ --alias /icons:$R/www \
+ --apitimeout 90 \
+ --cntxtimeout 3600 \
+ --cache-eol 200 \
+ --workdir . \
+ --uploaddir . \
+ --rootdir . \
+ --ldpaths $R/ldpath/strong \
+ --binding $R/bin/demat.so \
+ --weak-ldpaths $R/ldpath/weak \
+ --auto-api $R/apis/auto \
+ --token HELLO \
+ --random-token \
+ --session-max 1000 \
+ --tracereq all \
+ --traceapi all \
+ --traceses all \
+ --traceevt all \
+ --call demat/ping:true \
+ --ws-server unix:$R/apis/ws/hello \
+ --ws-server unix:$R/apis/ws/salut \
+ --exec $R/scripts/run-parts.sh @p @t
+
+exit 0
+