#!/bin/sh
#
# Run a simple connection test
# with an instance of the webui
# PHP BareosBSock class
#
TestName="webui-bsock-connection-test"

PHP=/usr/bin/php
WEBUI_TESTS_DIR=/usr/share/bareos-webui/tests/regress
WEBUI_DIR=/usr/share/bareos-webui

. scripts/functions

scripts/cleanup

copy_configs

start_test

run_bareos

cd ${WEBUI_DIR}
${PHP} ${WEBUI_TESTS_DIR}/webui-bsock-connection-test.php ${REGRESS_DEBUG}
cd - > /dev/null

estat_plain=$?

stop_bareos

export estat

let estat=estat_plain

end_test
