]> git.sur5r.net Git - bacula/bacula/commitdiff
Update tests for new doc structure
authorKern Sibbald <kern@sibbald.com>
Mon, 11 Apr 2005 13:16:42 +0000 (13:16 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 11 Apr 2005 13:16:42 +0000 (13:16 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1925 91ce42f0-d328-0410-95d8-f526ca767f89

regress/Makefile.in
regress/all-tape-and-file-tests
regress/do_all
regress/kern.conf
regress/scripts/do_sed
regress/scripts/flist
regress/scripts/prepare-two-tapes.in
regress/tests/backup-bacula-tape
regress/tests/two-volume-tape

index 4e63dfbe4f348b8397a455c61f38133770149cf9..6d228421508743a04fcbfed9b3818b6d38264f13 100644 (file)
@@ -24,7 +24,7 @@ setup: bacula
 # 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 ;\
@@ -32,6 +32,8 @@ bacula: all
        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
index 9bc3e7676c77210026dae379c0ad5a8ade274510..62573465e206079166ebf95d013b7b6798ee4ce1 100755 (executable)
@@ -3,4 +3,7 @@
 # Run all tests
 #
 ./all-non-root-tests
+if [ ! -e bin/tape_options ] ; then
+  touch bin/tape_options
+fi
 ./all-non-root-tape-tests
index 8df3b966fa2d7ca0b1498bbefea6e416ff792512..ad511a4a7d47fbe8da5487f80832f6cddecaec62 100755 (executable)
@@ -1,5 +1,13 @@
 #!/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
index 866014cabf15aaf1f85009d3c93a3a91d6878fc7..b87dd8e8b5b7f8fed9ce75b4cb222af80ffb8ffc 100644 (file)
@@ -12,7 +12,7 @@ TAPE_DRIVE="/dev/nst0"
 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}"
@@ -20,4 +20,3 @@ WHICHDB="--with-sqlite=${SQLITE_DIR}"
 
 # Set this to "--with-tcp-wrappers" or "--without-tcp-wrappers"
 TCPWRAPPERS="--with-tcp-wrappers"
-
index e999a521fc17d301947e6aede325376c0cd4b6e9..c5df3acaa54d1e314c47d3a426763070db14cb3a 100755 (executable)
@@ -48,11 +48,12 @@ sed "s%^MTX.*$%MTX=${4}%g" /tmp/bac$$ >${cwd}/bin/mtx-changer
 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}
index 7e7e1f0bf850297beaa69d1d5cac9949d66be4f3..aa390099d9ec8a2cc4cb5885b39e1115d0ddecb0 100644 (file)
@@ -1,4 +1,6 @@
-/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
index 44cb7f90c6cdb6496ed18cf177c3f8ed73e364c3..f31c0abe557df188a65562742d5e86879350714d 100755 (executable)
@@ -10,4 +10,4 @@ mt -f @tape_drive@ weof
 @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
index 304559d758972c22c4ce0ceb1364943bda469e20..a8343e0a3c43cf150af3fcc0d38836d0e53bc361 100755 (executable)
@@ -12,8 +12,8 @@ echo "${cwd}/build" >/tmp/file-list
 
 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
@@ -104,11 +104,11 @@ diff -r build tmp/bacula-restores${cwd}/build 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
index 1c57efd21bb2bbe403c89bda87f6b23e95cf1362..8c28f19dc5a4c0d63d74abe47fecc65d8e1b1e25 100755 (executable)
@@ -2,17 +2,16 @@
 #
 # 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
@@ -47,6 +46,7 @@ messages
 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=$?