From: Kern Sibbald Date: Wed, 21 Dec 2005 13:53:28 +0000 (+0000) Subject: Update X-Git-Tag: Release-7.0.0~8206 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb229024160cd05ed701523ff3b82545d1df4570;p=bacula%2Fbacula Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2698 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/restore-by-file-test b/regress/tests/restore-by-file-test index b4a39c963b..f762b48324 100755 --- a/regress/tests/restore-by-file-test +++ b/regress/tests/restore-by-file-test @@ -3,6 +3,13 @@ # Run a simple backup of the Bacula build directory using the compressed option # then restore it. # + +debug=0 +if test "$debug" -eq 1 ; then + out="tee" +else + out="output" +fi cwd=`pwd` scripts/copy-test-confs scripts/cleanup @@ -22,11 +29,10 @@ echo " === Starting restore-by-file-test at `date +%R:%S` ===" echo " === Starting restore-by-file-test at `date +%R:%S` ===" >>working/log echo " " -bin/bacula start 2>&1 >/dev/null -bin/bconsole -c bin/bconsole.conf <&1 >/dev/null +cat <tmp/bconcmds @output /dev/null messages -@output tmp/log1.out +@$out tmp/log1.out label storage=File volume=TestVolume001 run job=CompressedTest yes wait @@ -34,7 +40,7 @@ messages @# @# now do a restore @# -@output tmp/log2.out +@$out tmp/log2.out restore where=${cwd}/tmp/bacula-restores storage=File 7 <${cwd}/tmp/restore-list @@ -42,9 +48,18 @@ restore where=${cwd}/tmp/bacula-restores storage=File yes wait messages -@output +@$out quit END_OF_DATA + +if test "$debug" -eq 1 ; then + bin/bacula start + cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf +else + bin/bacula start 2>&1 >/dev/null + cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null +fi + scripts/check_for_zombie_jobs storage=File bin/bacula stop 2>&1 >/dev/null grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null