Use the unified script to launch tests
[apps/agl-service-can-low-level.git] / test / afb-test.sh
diff --git a/test/afb-test.sh b/test/afb-test.sh
deleted file mode 100755 (executable)
index 317c615..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh -x
-
-BINDER=$(command -v afb-daemon)
-CLIENT=$(command -v afb-client-demo)
-AFBTEST="$(pkg-config --variable libdir afb-test)/aft.so"
-PROCNAME="aft-low-can"
-PORT=1234
-TOKEN=
-LOGPIPE="test.log"
-[ "$1" ] && BUILDDIR="$1" || exit 1
-
-[ ! -p $LOGPIPE ] && mkfifo $LOGPIPE
-
-pkill $PROCNAME
-
-${BINDER} --name="${PROCNAME}" \
---port="${PORT}" \
---roothttp=. \
---tracereq=common \
---token=${TOKEN} \
---workdir="${BUILDDIR}/package-test" \
---binding="../package/lib/afb-low-can.so" \
---binding="$AFBTEST" \
--vvv \
---call="aft-low-can/launch_all_tests:{}" \
--vvv > ${LOGPIPE} 2>&1 &
-
-while read -r line
-do
-       [ "$(echo "${line}" | grep 'NOTICE: Browser URL=')" ] && break
-done < ${LOGPIPE}
-
-${CLIENT} ws://localhost:${PORT}/api?token=${TOKEN} aft-low-can exit
-
-rm -f ${LOGPIPE}