diff options
author | 2018-10-24 16:12:37 +0200 | |
---|---|---|
committer | 2018-11-09 10:38:31 +0100 | |
commit | 1594db372602c5859484b5f75ab6fb89f6c55550 (patch) | |
tree | 7708cd1f34c65b719689700f50afd7d1514ca5e9 /test/afb-test.sh | |
parent | d1845cf62f850f6ef8ed9c344df431fc8195a098 (diff) |
Improve iiodevices test
ADD $SUDO variable to be able to run test natively and on target
ADD afterall script to remove dummy devices
ADD new tests
Remove test/afb-test.sh following new afm-test process
Change-Id: Ib04e21f23518e8836c7bec00999f15f5d8212ae9
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'test/afb-test.sh')
-rwxr-xr-x | test/afb-test.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/afb-test.sh b/test/afb-test.sh deleted file mode 100755 index fa4f821..0000000 --- a/test/afb-test.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -BINDER=$(command -v afb-daemon) -AFBTEST="$(pkg-config --variable libdir afb-test)/aft.so" -PROCNAME="aft-iiodevices" -PORT=1234 -TOKEN= -LOGFILE="test.log" -[ "$1" ] && BUILDDIR="$1" || exit 1 - -TESTPACKAGEDIR="${BUILDDIR}/package-test" -export AFT_CONFIG_PATH="${TESTPACKAGEDIR}/etc" -export AFT_PLUGIN_PATH="${TESTPACKAGEDIR}/var:${TESTPACKAGEDIR}/lib/plugins" - -pkill $PROCNAME - -timeout -s 9 10 "${BINDER}" --name="${PROCNAME}" \ - --port="${PORT}" \ - --roothttp=. \ - --tracereq=common \ - --token=${TOKEN} \ - --workdir="${TESTPACKAGEDIR}" \ - --binding="../package/lib/afb-iiodevices.so" \ - --binding="$AFBTEST" \ - --call="aft-iiodevices/launch_all_tests:{}" \ - --call="aft-iiodevices/exit:{}" \ - -vvv > "${LOGFILE}" 2>&1 - -find "${BUILDDIR}" -name test_results.log -exec cat {} \; |