]> git.sur5r.net Git - bacula/bacula/commitdiff
Upgrades
authorKern Sibbald <kern@sibbald.com>
Fri, 2 May 2008 13:05:18 +0000 (13:05 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 2 May 2008 13:05:18 +0000 (13:05 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6873 91ce42f0-d328-0410-95d8-f526ca767f89

19 files changed:
regress/experimental-all
regress/experimental-disk
regress/experimental-disk-and-tape
regress/experimental-tape
regress/nightly-all
regress/nightly-disk
regress/nightly-disk-and-tape
regress/nightly-tape
regress/prototype.conf
regress/scripts/bacula-dir-2d.conf.in
regress/scripts/bacula-dir-win32-tape.conf.in
regress/scripts/create_sed
regress/scripts/functions
regress/scripts/win32-bacula-dir-tape.conf.in
regress/scripts/win32-bacula-sd-tape.conf.in
regress/tests/accurate-test
regress/tests/bscan-fast-tape
regress/tests/bscan-tape
regress/tests/bscan-test

index 079d8901e809c7bd2e8f875fe50fae1efe9c3f86..ab5820c4289cb25f2b916960cdf30e1088a07e0d 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Experimental -R "^(disk|tape|changer):"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D ExperimentalSubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D ExperimentalSubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index 21852a6ba780e0b6035e0c52753f3a1cf2173fd2..806e653cd630d71bb6edc6016f3f5db07b0ea4c3 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Experimental -R "^disk:"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D ExperimentalSubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D ExperimentalSubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index cbe537639b472e90f821920a118c9501b193b604..3d12671185c83fb191485ba1896a247631572228 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Experimental -R "^(disk|tape):"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D ExperimentalSubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D ExperimentalSubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index b847d76f443528a6baecc10facb067a847656980..0f000f0d3d032343df42e336398ce3fb3e074e70 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Experimental -R "^tape:"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D ExperimentalSubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D ExperimentalSubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index ac3896529c48a92198368fb88e98cfa2108bf31d..868bc105800a2cb28daec916d809981974f2be3d 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Nightly -R "^(disk|tape|changer):"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D NightlySubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D NightlySubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index a353630cb5a4f23f4447bd5fbe3da60214140334..c0b677ba3680a7fcdf8864cbfb4f9e1516f31baa 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Nightly -R "^disk:"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D NightlySubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D NightlySubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index cbe537639b472e90f821920a118c9501b193b604..13ce71398846206b55faba9becd264eeba69feb4 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Experimental -R "^(disk|tape):"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D ExperimentalSubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D NightlySubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index a4ccf26f2e51ebb9b8538d611cdb791b93fd15a0..37b7195a864cb8a5141aa4a7e5441847a92d605e 100755 (executable)
@@ -12,5 +12,11 @@ nice ctest -D Nightly -R "^tape:"
 if [ $? != 0 ] ; then
    echo "ctest failed re-running Submit"
    ctest -D NightlySubmit
+   if [ $? != 0 ] ; then
+      echo "Submit failed, waiting 5 mins"
+      sleep 300
+      echo "ctest failed re-running Submit a second time"
+      ctest -D NightlySubmit
+   fi
 fi
 REGRESS_DEBUG=${save_debug}
index f4f0ebe948f493aaa1ad9f146d0f4800eb99e39c..b91f778898e4f1d343284ccf57145034babf7a71 100644 (file)
@@ -76,3 +76,14 @@ BASEPORT=8101
 #  test machines, add some indication of the machine.
 #
 SITE_NAME=<your-name>-bacula-${HOST}
+
+#
+# The following are used only if you want to run Win32 tests, which
+#   is a real pain since the Win32 machine is not localhost and you
+#   also need to specify what to backup.
+#
+WIN32_CLIENT="yyyy"
+WIN32_ADDR="yyyy"
+WIN32_FILE="c:/users/xxxx"
+WIN32_PORT=9102
+WIN32_PASSWORD="zzzzz"
index 67c0b0f97e3c08589f8f7bd87d92035bef5f6f6f..0fee4369db778e977f2df486fa2fb691ef543fde 100644 (file)
@@ -113,6 +113,7 @@ Storage {
 # Generic catalog service
 Catalog {
   Name = MyCatalog
+  @libdbi@
   dbname = regress; user = regress; password = ""
 }
 
index 551ededd9e7c3872e120fddcb62266e0ddc19029..f4d572ef6becd8ac018f4c1f934498f0b5318484 100644 (file)
@@ -29,7 +29,7 @@ Director {                            # define myself
 Job {
   Name = "NightlySave"
   Type = Backup
-  Client=Tibs
+  Client=@win32_client@
   FileSet="Full Set"
   Storage = DDS-4
   Messages = Standard
@@ -44,7 +44,7 @@ Job {
 Job {
   Name = "RestoreFiles"
   Type = Restore
-  Client=Tibs
+  Client=@win32_client@
   FileSet="Full Set"
   Storage = DDS-4
   Messages = Standard
@@ -58,7 +58,7 @@ FileSet {
   Name = "Full Set"
   Enable VSS = yes
   Include { Options { signature=MD5 }
-    File =  "c:"
+    File =  "@win32_file@"
   }
 }
 
@@ -76,11 +76,11 @@ Schedule {
 
 # Client (File Services) to backup
 Client {
-  Name = Tibs
-  Address = tibs
-  FDPort = 9102
+  Name = @win32_client@
+  Address = @win32_addr@
+  FDPort = @win32_port@
   Catalog = MyCatalog
-  Password = "xBzFq+a9llZyGyfMaNO9e3outP86/1AUAT8P34RoT62G"
+  Password = "@win32_password@"
   File Retention = 30d                # 30 days
   Job Retention = 180d                # six months
   AutoPrune = yes                     # Prune expired Jobs/Files
@@ -90,7 +90,7 @@ Client {
 # Definition of DDS tape storage device
 Storage {
   Name = DDS-4
-  Address = 192.168.68.112            # N.B. Use a fully qualified name here
+  Address = @hostname@-sd            # N.B. Use a fully qualified name here
   SDPort = @sdport@
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
   Device = DDS-4                      # must be same as Device in Storage daemon
@@ -103,6 +103,7 @@ Storage {
 # Generic catalog service
 Catalog {
   Name = MyCatalog
+  @libdbi@
   dbname = regress; user = regress; password = ""
 }
 
index e09ae5e4b854a9e6f933bbe2bda1451adafb0bf4..11ba5ff81ed269ee85869ff6970b6526748c06e3 100755 (executable)
@@ -58,4 +58,8 @@ echo "s%@os@%${os}%g" >>${out}
 echo "s%@bversion@%${bversion}%g" >>${out}
 echo "s%@bdate@%${bdate}%g" >>${out}
 echo "s%@libdbi@%${libdbi}%g" >>${out}
-
+echo "s%@win32_client@%${WIN32_CLIENT}%g" >>${out}
+echo "s%@win32_addr@%${WIN32_ADDR}%g" >>${out}
+echo "s%@win32_file@%${WIN32_FILE}%g" >>${out}
+echo "s%@win32_port@%${WIN32_PORT}%g" >>${out}
+echo "s%@win32_password@%${WIN32_PASSWORD}%g" >>${out}
index ec5d4d36678f964ca43dd355dea837da5876ac1c..7a29bc48a1ba2a43ac2ae0ee8a7b19ecae9c412d 100644 (file)
@@ -123,6 +123,21 @@ run_bscan()
    fi
 }
 
+bscan_libdbi()
+{   
+   B=`echo $LIBDBI | sed 's/;//' | sed 's/;//g'`
+   B_D=`echo $B | awk '{print $3}'`
+   B_t=`echo $B | awk '{print $6}'`
+   B_p=`echo $B | awk '{print $9}'`
+
+   BSCANLIBDBI="${LIBDBI:+1}"
+               
+   if test "$BSCANLIBDBI" -eq "1" ; then
+      BSCANLIBDBI="-D $B_D -h $B_t -t $B_p"
+   else
+      BSCANLIBDBI=" "
+   fi
+}
 
 stop_bacula()
 {
index cce636551af5a5dc6723b468941f92672e66d5e0..00a9364bb4632746a7dca213599d4be89eaf9d52 100644 (file)
@@ -13,7 +13,7 @@
 #
 
 Director {                            # define myself
-  Name = localhost-dir
+  Name = @hostname@-dir
   DIRPort = @dirport@                # where we listen for UA connections
   QueryFile = "@scriptdir@/query.sql"
   WorkingDirectory = "@working_dir@"
@@ -29,7 +29,7 @@ Director {                            # define myself
 Job {
   Name = "NightlySave"
   Type = Backup
-  Client=Tibs
+  Client=@win32_client@
   FileSet="Full Set"
   Storage = DDS-4
   Messages = Standard
@@ -44,7 +44,7 @@ Job {
 Job {
   Name = "RestoreFiles"
   Type = Restore
-  Client=Tibs
+  Client=@win32_client@
   FileSet="Full Set"
   Storage = DDS-4
   Messages = Standard
@@ -59,8 +59,7 @@ FileSet {
   Enable VSS = yes
   Include { Options { signature=MD5; portable=no  
       compression=GZIP }
-#   File =  "c:/cygwin"   # big   
-    File =  "c:/cygwin/home/kern/bacula/k"
+    File =  "@win32_file@"
   }
 }
 
@@ -78,11 +77,11 @@ Schedule {
 
 # Client (File Services) to backup
 Client {
-  Name = Tibs
-  Address = tibs
-  FDPort = 9102
+  Name = @win32_client@
+  Address = @win32_addr@
+  FDPort = @win32_port@
   Catalog = MyCatalog
-  Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3"
+  Password = "@win32_password@"
   File Retention = 30d                # 30 days
   Job Retention = 180d                # six months
   AutoPrune = yes                     # Prune expired Jobs/Files
@@ -105,7 +104,7 @@ Client {
 # Definition of DDS tape storage device
 Storage {
   Name = DDS-4
-  Address = 192.168.68.112            # N.B. Use a fully qualified name here
+  Address = @hostname@-sd            # N.B. Use a fully qualified name here
   SDPort = @sdport@
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
   Device = DDS-4                      # must be same as Device in Storage daemon
@@ -118,6 +117,7 @@ Storage {
 # Generic catalog service
 Catalog {
   Name = MyCatalog
+  @libdbi@
   dbname = regress; user = regress; password = ""
 }
 
index 638b402cd8a9e219870d1fa22ac161d95a985569..759b65c7990d74a30fc622ba2e0b2c07a223921a 100644 (file)
@@ -11,7 +11,7 @@
 #
 
 Storage {                             # definition of myself
-  Name = localhost-sd
+  Name = @hostname@-sd
   SDPort = 8103                  # Director's port      
   WorkingDirectory = "/home/kern/bacula/regress/working"
   Pid Directory = "/home/kern/bacula/regress/working"
@@ -22,7 +22,7 @@ Storage {                             # definition of myself
 # List Directors who are permitted to contact Storage daemon
 #
 Director {
-  Name = localhost-dir
+  Name = @hostname@-dir
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
 }
 
@@ -35,11 +35,11 @@ Director {
 Device {
   Name = DDS-4                     # 
   Media Type = DDS-4
-  Archive Device = /dev/nst0
+  Archive Device = @tape_drive@
   AutomaticMount = yes;               # when device opened, read it
   AlwaysOpen = yes;
   RemovableMedia = yes;
-  @/home/kern/bacula/regress/bin/tape_options
+  @@sbindir@/tape_options
 # Maximum File Size = 1000000
 # MaximumVolumeSize = 100M
 }
index 95c30a587c02eb45faecd6beb0b1a0e88619c682..cfa545590e1bac097efe0cb030fe45d291197b1e 100755 (executable)
@@ -267,7 +267,9 @@ cd ..
 
 echo "volume=TestVolume001" >tmp/bscan.bsr
 
-${cwd}/bin/bscan -c ${cwd}/bin/bacula-sd.conf -n regress -u regress -m -s -b tmp/bscan.bsr FileStorage 2>&1 > ${cwd}/tmp/bscan.log
+bscan_libdbi
+
+${cwd}/bin/bscan -c ${cwd}/bin/bacula-sd.conf $BSCANLIBDBI -n regress -u regress -m -s -b tmp/bscan.bsr FileStorage 2>&1 > ${cwd}/tmp/bscan.log
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out ${cwd}/tmp/log1.out
index 110c007f7d174f1ce41b86ee4cdde3a60e0e7aa6..a6ba184c53f3291ca7331b1fcf12a6a721b3ee07 100755 (executable)
@@ -63,7 +63,10 @@ cd ..
 
 echo "Begin attempt to read tape that crashes the system"
 echo "volume=TestVolume001" >tmp/bscan.bsr
-strace -o strace.new bin/bscan -d200 -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4
+
+bscan_libdbi
+
+strace -o strace.new bin/bscan -d200 -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4
 exit
 cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
index 71341697e491e81b2b39f42cc0ddb09681dfb5bc..0982d89d00e626bd7da5c11baf276537b4e35322 100755 (executable)
@@ -95,12 +95,17 @@ cd bin
 cd ..
 
 echo "volume=TestVolume001" >tmp/bscan.bsr
+
+bscan_libdbi
+
 if test "$debug" -eq 1 ; then
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4                
+  bin/bscan -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4                
 else
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4 2>&1 >/dev/null
+  bin/bscan -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf DDS-4 2>&1 >/dev/null
 fi
 
+echo $BSCANLIBDBI
+
 cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
 messages
index fd71ef336daed3acf591e86d3b7612470fd48767..9a158974f974896dcf8438ad96f5f5077f66e4fb 100755 (executable)
@@ -57,12 +57,16 @@ stop_bacula
 echo "volume=TestVolume001" >tmp/bscan.bsr
 echo "volume=TestVolume002" >>tmp/bscan.bsr
 
+bscan_libdbi
+
 if test "$debug" -eq 1 ; then
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp                   
+  bin/bscan -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp                   
 else
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp 2>&1 >tmp/log3.out
+  bin/bscan -w working $BSCANLIBDBI -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp 2>&1 >tmp/log3.out
 fi
 
+
+
 cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
 messages