3 source dlog_test_header
7 if [ "$1" = "zero-copy" ]; then
8 echo "zero-copy not supported for this test"
12 PREAUTODETECT_CONFIG_PATH=$DLOG_CONFIG_PATH
13 export DLOG_CONFIG_PATH="@datadir@/dlog-$type.conf.autodetect"
14 TESTDIR=/var/lib/dlog-tests
16 if [ "$type" = "logger" ]; then
23 LOG_DETAILS="testing if backend autodetection works properly (1/2)"
24 dlogsend -b main -t DLOG_AUTODETECT "xd" && ok || fail
27 export DLOG_CONFIG_PATH=$PREAUTODETECT_CONFIG_PATH
28 LOG_DETAILS="testing if backend autodetection works properly (2/2)"
29 [ "$(dlogutil -db main -v raw)" = "xd" ] && ok || fail
31 kill $LOGGER > /dev/null