Use dedicated API name for the test 63/16163/1
authorRomain Forlot <romain.forlot@iot.bzh>
Mon, 13 Aug 2018 08:49:36 +0000 (10:49 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Mon, 20 Aug 2018 13:02:04 +0000 (15:02 +0200)
Use dedicated API name for the test and not using the generic
one already used by the raw afb-test.

Change-Id: I79eb590a9a1d8c2538bd1b9d8bfc5a8537cf6c00
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
test/afb-test.sh
test/afb-test/etc/aft-low-can_config.json

index e60f2de..317c615 100755 (executable)
@@ -18,10 +18,11 @@ ${BINDER} --name="${PROCNAME}" \
 --roothttp=. \
 --tracereq=common \
 --token=${TOKEN} \
---workdir="${BUILDDIR}/package" \
---binding="lib/afb-low-can.so" \
+--workdir="${BUILDDIR}/package-test" \
+--binding="../package/lib/afb-low-can.so" \
 --binding="$AFBTEST" \
---call="afTest/launch_all_tests:{}" \
+-vvv \
+--call="aft-low-can/launch_all_tests:{}" \
 -vvv > ${LOGPIPE} 2>&1 &
 
 while read -r line
@@ -29,6 +30,6 @@ do
        [ "$(echo "${line}" | grep 'NOTICE: Browser URL=')" ] && break
 done < ${LOGPIPE}
 
-${CLIENT} ws://localhost:${PORT}/api?token=${TOKEN} afTest exit
+${CLIENT} ws://localhost:${PORT}/api?token=${TOKEN} aft-low-can exit
 
 rm -f ${LOGPIPE}
index 3fd06d4..ebe7ed4 100644 (file)
@@ -4,7 +4,7 @@
     "metadata": {
         "uid": "Test",
         "version": "1.0",
-        "api": "afTest",
+        "api": "aft-low-can",
         "info": "AFB-test binding configuration file to test low-can api.",
         "require": [
             "low-can"