]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/backup-bacula-test
Add execute bit on errors-test
[bacula/bacula] / regress / tests / backup-bacula-test
index ee60c4b4b69b69501f7238f655372319939ffcc0..d61a8688ac0007d6d630b5eccdb7f996d0f1daf1 100755 (executable)
@@ -6,7 +6,6 @@
 TestName="backup-bacula-test"
 JobName=backup
 . scripts/functions
-set_debug 0
 
 scripts/cleanup
 scripts/copy-confs
@@ -18,7 +17,7 @@ cat <<END_OF_DATA >tmp/bconcmds
 @output /dev/null
 messages
 @$out tmp/log1.out
-label volume=TestVolume001
+label volume=TestVolume001 storage=File pool=Default
 @#setdebug level=100 storage=File
 run job=$JobName yes
 status storage=File
@@ -54,7 +53,38 @@ quit
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storate=File
+check_for_zombie_jobs storage=File
+stop_bacula
+
+cat <<END_OF_DATA >tmp/bconcmds
+@output /dev/null
+messages
+@$out tmp/log1.out
+@#setdebug level=100 storage=File
+run job=$JobName yes
+wait
+messages
+@# 
+@# now do a restore
+@#
+@$out tmp/log2.out  
+restore where=${cwd}/tmp/bacula-restores select all done
+yes
+wait
+messages
+@$out
+quit
+END_OF_DATA
+
+#
+# Now do a second backup after making a few changes
+#
+touch ${cwd}/build/src/dird/*.c
+echo "test test" > ${cwd}/build/src/dird/xxx
+#
+
+run_bacula
+check_for_zombie_jobs storage=File
 stop_bacula
 
 check_two_logs