aboutsummaryrefslogtreecommitdiffstats
path: root/test/afb-test.sh
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2018-11-06 16:52:03 +0100
committerFrédéric Marec <frederic.marec@iot.bzh>2018-11-07 09:45:34 +0000
commit0c33fe612cefa4949c643e38c6bb4edd6ded0bc7 (patch)
tree93361de5b1e3f1ef1b9605fd64cb1e3ef87e527f /test/afb-test.sh
parent63ffbac48be3a055186c66cfcaeee6247c7f3a05 (diff)
Improve tests for data-persistence
Change-Id: Ie964ae5411b90ab21f0bb5ccc48fd45d6b63fded Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'test/afb-test.sh')
-rwxr-xr-xtest/afb-test.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/afb-test.sh b/test/afb-test.sh
deleted file mode 100755
index 38c46ff..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-persistence"
-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-persistence-binding.so" \
- --binding="$AFBTEST" \
- --call="aft-persistence/launch_all_tests:{}" \
- --call="aft-persistence/exit:{}" \
- -vvv > "${LOGFILE}" 2>&1
-
-find "${BUILDDIR}" -name test_results.log -exec cat {} \;