summaryrefslogtreecommitdiffstats
path: root/test/afb-test.sh
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-27 20:02:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-28 02:31:40 +0200
commit88281216540f5f61bcee7076259a25573c1cb50e (patch)
treee5ee4ee963de23972aca9e45b4bad7e905721bfe /test/afb-test.sh
parentab1adbd3a5d69dced58ef2a37d5defea600452e9 (diff)
Several tests improvements and fixes
- New tests about authenticate and write on CAN bus. - Fixes diagnostic messages handling, all diagnostic messages are received through the same handle then in its data there is the detailled message name. - Set after and before method the same between the both file then they could be played separately. About now setting multiple times those methods will override them and the latest set wins - Disable the Step3 for now because of segfault - Fix unsubscribe argument to match the previous subscription else it doesn't match and verb call fails - Fix: typo,wrong variable Change-Id: I2f4c2873e57611c946a99d4313021bb7bfea679c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'test/afb-test.sh')
-rwxr-xr-xtest/afb-test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/afb-test.sh b/test/afb-test.sh
index eaebbe08..e60f2deb 100755
--- a/test/afb-test.sh
+++ b/test/afb-test.sh
@@ -21,6 +21,7 @@ ${BINDER} --name="${PROCNAME}" \
--workdir="${BUILDDIR}/package" \
--binding="lib/afb-low-can.so" \
--binding="$AFBTEST" \
+--call="afTest/launch_all_tests:{}" \
-vvv > ${LOGPIPE} 2>&1 &
while read -r line
@@ -28,4 +29,6 @@ do
[ "$(echo "${line}" | grep 'NOTICE: Browser URL=')" ] && break
done < ${LOGPIPE}
-${CLIENT} ws://localhost:${PORT}/api?token=${TOKEN} afTest launch_all_tests
+${CLIENT} ws://localhost:${PORT}/api?token=${TOKEN} afTest exit
+
+rm -f ${LOGPIPE}