test: initial refactor to support running in parallel in an unshare

The release suite fails with no permissions to dump loopback, so let's
run tests in an unshare, one per test, with and start as many syslogd as
needed for each test -- also easier to debug since all are then fully
stand-alone.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-11-22 04:59:23 +01:00
parent 81eee2185e
commit 523926a07d
8 changed files with 91 additions and 45 deletions

View File

@ -1,9 +1,5 @@
#!/bin/sh
set -ex
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/test.rc
. ./start.sh
export MSG="no-openlog-apitest"
@ -42,3 +38,4 @@ echo "= Phase 4 - Verify RFC5424 API with logger(1) ==========="
sleep 2
grep "exampleSDID@32473" ${LOGV1} || (echo "== ${LOGV1}"; tail -10 ${LOGV1}; false)
. ./stop.sh