# Some machines cannot handle the sticky bit and other garbage that
# is in weird-files, so we load and run it only on Linux machines.
#
-bacula: all
+bacula: all sed
@rm -rf bin build weird-files tmp
(if test x`uname` = xLinux -o x`uname` = xFreeBSD ; then \
tar xfz weird-files.tar.gz ;\
rm -rf tmp working
mkdir tmp working
scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB} ${TCPWRAPPERS}
+
+sed:
scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH}
# Run all non-root userid tests
# Run all tests
#
./all-non-root-tests
+if [ ! -e bin/tape_options ] ; then
+ touch bin/tape_options
+fi
./all-non-root-tape-tests
#!/bin/sh
+/home/kern/bacula/bin/startmysql
make setup
./starttime
+if [ ! -e bin/tape_options ] ; then
+ touch bin/tape_options
+fi
./all-tape-and-file-tests
+if [ ! -e bin/tape_options ] ; then
+ touch bin/tape_options
+fi
+./all-non-root-2tape-tests
./endtime
AUTOCHANGER="/dev/sg0"
# This must be the path to the autochanger including its name
-AUTOCHANGER_PATH="/usr/local/bin/mtx"
+AUTOCHANGER_PATH="/usr/sbin/mtx"
# Set your database here
WHICHDB="--with-sqlite=${SQLITE_DIR}"
# Set this to "--with-tcp-wrappers" or "--without-tcp-wrappers"
TCPWRAPPERS="--with-tcp-wrappers"
-
chmod 777 ${cwd}/bin/mtx-changer
# get proper SD tape definitions
+touch ${cwd}/bin/tape_options
if test x`uname` = xLinux ; then \
- cp -f scripts/linux_tape_options bin/tape_options ; \
+ cp -f ${cwd}/scripts/linux_tape_options ${cwd}/bin/tape_options ; \
fi
if test x`uname` = xFreeBSD ; then \
- cp -f scripts/freebsd_tape_options bin/tape_options ; \
+ cp -f ${cwd}/scripts/freebsd_tape_options ${cwd}/bin/tape_options ; \
fi
rm -f ${out}
-/build/doc/bacula.pdf
+/build/doc/Makefile.in
+/build/doc/latex/bacula.tex
+/build/doc/images/win32-welcome.pdf
/build/configure
/build/src/stored/bextract
/build/src/tools/testfind
@changer_path@ -f @autochanger@ load 2
mt -f @tape_drive@ rewind
mt -f @tape_drive@ weof
-@changer_path@ -f @autochanger@ unload
+#@changer_path@ -f @autochanger@ unload
echo " "
echo " "
-echo " === Starting Bacula tape test at `date +%R:%S` ==="
-echo " === Starting Bacula tape test at `date +%R:%S` ===" >>working/log
+echo " === Starting Backup Bacula tape test at `date +%R:%S` ==="
+echo " === Starting Backup Bacula tape test at `date +%R:%S` ===" >>working/log
echo " "
bin/bacula start 2>&1 >/dev/null
if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
echo " "
echo " "
- echo " !!!!! Bacula tape test Bacula source failed!!! !!!!! "
- echo " !!!!! Bacula tape test failed!!! !!!!! " >>test.out
+ echo " !!!!! Backup Bacula tape test failed!!! !!!!! "
+ echo " !!!!! Backup Bacula tape test failed!!! !!!!! " >>test.out
echo " "
else
- echo " ===== Bacula tape test Bacula source OK ===== "
- echo " ===== Bacula tape test OK ===== " >>test.out
+ echo " ===== Backup Bacula tape test OK ===== "
+ echo " ===== Backup Bacula tape test OK ===== " >>test.out
scripts/cleanup
fi
#
# Run a simple backup of the Bacula build directory
# to two tapes where the maximum tape file size is set to 1M
+# Note, this test simulates the tape filling and writing to
+# the next tape.
#
cwd=`pwd`
-bin/bacula stop 2>&1 >/dev/null
+scripts/cleanup
scripts/copy-2tape-confs
scripts/prepare-two-tapes
+
echo "${cwd}/build" >/tmp/file-list
-cd bin
-./drop_bacula_tables >/dev/null 2>&1
-./make_bacula_tables >/dev/null 2>&1
-./grant_bacula_privileges 2>&1 >/dev/null
-cd ..
+
out="tmp/sed_tmp"
echo "s%# Maximum File Size% Maximum File Size%g" >${out}
cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
quit
END_OF_DATA
scripts/check_for_zombie_jobs storage=DDS-4
+
bin/bacula stop 2>&1 >/dev/null
grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
bstat=$?