]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Wed, 27 Sep 2006 14:55:51 +0000 (14:55 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 27 Sep 2006 14:55:51 +0000 (14:55 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3510 91ce42f0-d328-0410-95d8-f526ca767f89

regress/all-non-root-tape-tests
regress/scripts/functions
regress/scripts/win32-bacula-dir-tape.conf.in
regress/scripts/win32-bacula-sd-tape.conf
regress/tests/backup-bacula-tape
regress/tests/bscan-fast-tape [new file with mode: 0755]
regress/tests/bscan-tape
regress/tests/two-pool-test
regress/tests/two-volume-tape
regress/tests/win32-to-linux-tape

index 79870318e232549f63a5d9faba9762fdeb0d4184..1adf56d1e8f9a933ddbe0fdfeb1cdb9f8808a9e7 100755 (executable)
@@ -2,14 +2,13 @@
 #
 # Run all tape tests
 #
-. config.out
+. ./config.out
 if test ! x$AUTOCHANGER = x/dev/null ; then
    mtx -f $AUTOCHANGER load 1 >/dev/null &2>/dev/null
 fi
 cp test.out test1.out
 tests/test0
 tests/backup-bacula-tape
-tests/bscan-tape
 tests/btape-fill-tape
 tests/fixed-block-size-tape
 tests/four-concurrent-jobs-tape
@@ -21,6 +20,7 @@ tests/small-file-size-tape
 tests/truncate-bug-tape
 tests/two-pool-tape
 tests/2drive-incremental-2tape
+#tests/bscan-tape
 echo " "
 echo " "
 echo "Test results"
index d3f8f85456108823ef016448d7d52cb375dc2412..ff4501d35062b06a3fe6dc70a9cb6b3321b77bb2 100644 (file)
@@ -50,6 +50,15 @@ run_btape()
    fi
 }
 
+run_bscan()
+{
+   if test "$debug" -eq 1 ; then
+      bin/bscan $* | tee tmp/log.out
+   else
+      bin/bscan $* 2>&1 >/dev/null
+   fi
+}
+
 
 stop_bacula()
 {
index bc3162b0c82b574f07c2d21f37363e694dd7598f..692e8452fa270600505b46b3330d154bcf5e4771 100644 (file)
@@ -5,7 +5,7 @@
 #   file or directory names in the Include directive of the
 #   FileSet resource.
 #
-#  For Bacula release 1.33
+#  For Bacula release 1.39.23
 #
 #  You might also want to change the default email address
 #   from root to your address.  See the "mail" and "operator"
@@ -13,7 +13,7 @@
 #
 
 Director {                            # define myself
-  Name = rufus-dir
+  Name = localhost-dir
   DIRport = 8101                # where we listen for UA connections
   QueryFile = "@scriptdir@/query.sql"
   WorkingDirectory = "@working_dir@"
index 8589d6762934ce387f968cf566e44a89bd370b77..638b402cd8a9e219870d1fa22ac161d95a985569 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Default Bacula Storage Daemon Configuration file
 #
-#  For Bacula release 1.33
+#  For Bacula release 1.39.23
 #
 # You may need to change the name of your tape drive
 #   on the "Archive Device" directive in the Device
@@ -22,7 +22,7 @@ Storage {                             # definition of myself
 # List Directors who are permitted to contact Storage daemon
 #
 Director {
-  Name = rufus-dir
+  Name = localhost-dir
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
 }
 
index 1494bcac9c195718249a7b9ade598cb2021142ea..21d521d56355a93567432a56b426aab2f83cd992 100755 (executable)
@@ -25,6 +25,7 @@ cat <<END_OF_DATA >tmp/bconcmds
 @output /dev/null
 messages
 @$out tmp/log1.out
+@#setdebug level=200 storage=DDS-4
 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
 purge volume=TestVolume001
 relabel pool=Default storage=DDS-4 oldVolume=TestVolume001 volume=TestVolume002 slot=0
diff --git a/regress/tests/bscan-fast-tape b/regress/tests/bscan-fast-tape
new file mode 100755 (executable)
index 0000000..c6d2679
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/sh
+#
+# Run a simple backup of the Bacula build directory using the compressed option
+#   then backup four times, each with incremental then 
+#   do a bscan and restore.
+#   It should require at least 4 different bsrs.
+#
+TestName="bscan-tape"
+JobName=bscantape
+. scripts/functions
+set_debug 1
+
+copy_tape_confs
+
+echo "${cwd}/build" >/tmp/file-list
+
+cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
+# sed "s%# Maximum File Size%  Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
+
+change_jobname NightlySave $JobName
+start_test
+
+cat <<END_OF_DATA >tmp/bconcmds
+@output /dev/null
+messages
+@$out tmp/log1.out
+setdebug level=100 storage=DDS-4
+label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
+run job=$JobName yes
+wait
+messages
+quit
+END_OF_DATA
+
+run_bacula
+check_for_zombie_jobs storage=DDS-4
+stop_bacula
+
+#
+# now drop and recreate the database
+#
+cd bin
+./drop_bacula_tables >/dev/null 2>&1
+./make_bacula_tables >/dev/null 2>&1
+./grant_bacula_privileges 2>&1 >/dev/null
+cd ..
+
+echo "volume=TestVolume001" >tmp/bscan.bsr
+bin/bscan -d200 -w working -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4
+
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
+messages
+@$out tmp/log2.out
+@# 
+@# now do a restore
+@#
+restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
+yes
+wait
+messages
+@$out
+quit
+END_OF_DATA
+
+run_bacula
+check_for_zombie_jobs storage=DDS-4
+stop_bacula
+rm -f  ${cwd}/build/src/lib/dummy
+
+check_two_logs
+check_restore_diff
+end_test
index 7f7e708c1e6d45bf64a9862fbba91f936a8d1fd6..a678206394d05d850de8b9d3b0d58da1d7947bab 100755 (executable)
@@ -8,7 +8,7 @@
 TestName="bscan-tape"
 JobName=bscantape
 . scripts/functions
-set_debug 0
+set_debug 1
 
 copy_tape_confs
 
index bec846f2363bbcf814ba7d1636ba3f0a091eb22b..4cd29d8a34c4660e7aa7d6bb847cbbe8c180d3d7 100755 (executable)
@@ -15,10 +15,6 @@ JobName=Two-pool
 set_debug 0
 
 . config.out
-if test x${AUTOCHANGER} = x/dev/null ; then
-   echo "two-pool-test skipped. No autochanger."
-   exit
-fi
 cwd=`pwd`
 scripts/cleanup
 scripts/copy-2disk-confs
index 8d896e36df16e068b319420cfc1d7a4fc9911806..b26e0a9d858a2540149c951c1b8fe92d0a9fefa4 100755 (executable)
@@ -43,6 +43,20 @@ update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
 run job=$JobName yes
 wait
 messages
+quit
+END_OF_DATA
+
+run_bacula
+check_for_zombie_jobs storage=DDS-4
+stop_bacula
+
+mt -f ${TAPE_DRIVE} rewind
+mtx -f ${AUTOCHANGER} unload
+sleep 15
+
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
+messages
 @# 
 @# now do a restore
 @#
index 66e4814e0abd21c709609c92d691cd2fe79de501..780c7dfb8ca412491397a5b6936428685c237075 100755 (executable)
@@ -7,7 +7,7 @@
 TestName="win32-to-linux-tape"
 JobName=AutoLabel
 . scripts/functions
-set_debug 0
+set_debug 1
 
 scripts/copy-win32-confs
 scripts/cleanup-tape
@@ -33,7 +33,7 @@ messages
 @# now do a restore
 @#
 @$out tmp/log2.out
-restore where=c:/tmp/bacula-restores client=Tibs select all storage=DDS-4 done
+restore where=/tmp/bacula-restores client=Tibs select all storage=DDS-4 done
 yes
 wait
 messages