+
SET(CTEST_CUSTOM_ERROR_EXCEPTION
${CTEST_CUSTOM_ERROR_EXCEPTION}
"ERROR: *database \".*\" already exists"
SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 10000)
SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 1048576)
SET (CTEST_NIGHTLY_START_TIME "23:00:00 CET")
+
+SET(CTEST_CUSTOM_PRE_TEST scripts/pretest)
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ]; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ]; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ]; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then
break;
fi
echo "Submit failed, waiting 5 mins"
rtn=$?
i=0
while [ $i -le 5 ]; do
- if [ $rtn = 0 ] ; then
+ if [ $rtn = 0 ] || [ "$rtn" = "8" ]; then
break;
fi
echo "Submit failed, waiting 5 mins"
bin/bacula-ctl-fd start
bin/bacula-ctl-dir start
cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
+ return $?
else
bin/bacula start 2>&1 >/dev/null
cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
+ return $?
fi
}
--- /dev/null
+#!/bin/sh
+#
+# Test if daemons start
+#
+
+TestName="pretest"
+JobName=backup
+error=0
+
+. scripts/functions
+
+copy_test_confs
+
+
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+messages
+quit
+END_OF_DATA
+
+start_test
+
+if ! run_bacula
+then
+ echo "error: bconsole error"
+ error=1
+fi
+
+for i in bacula-fd bacula-sd bacula-dir
+do
+ if ! ps -C $i >/dev/null
+ then
+ echo "error: $i not running"
+ error=1
+ fi
+done
+
+stop_bacula
+
+export dstat=0
+export bstat=$error
+export rstat=0
+
+end_test
+
+exit $error
--with-baseport=${BASEPORT}
exit 0
-#!/bin/sh
-#
-# This is the configuration script for regression testing
-#
-
-. ${1}/config
-
-CFLAGS="-g -O2 -Wall" \
- ./configure \
- --sbindir=${1}/bin \
- --sysconfdir=${1}/bin \
- --mandir=${1}/bin \
- --with-pid-dir=${1}/working \
- --with-subsys-dir=${1}/working \
- --enable-smartalloc \
- --disable-readline \
- --with-working-dir=${1}/working \
- --with-archivedir=${1}/tmp \
- --with-dump-email=${EMAIL} \
- --with-job-email=${EMAIL} \
- --with-smtp-host=${SMTP_HOST} \
- --with-db-name=regress \
- --with-db-user=regress \
- ${OPENSSL} \
- ${TCPWRAPPERS} \
- ${WHICHDB} \
- --with-baseport=${BASEPORT}
-
-exit 0