From: Eric Bollengier Date: Mon, 16 Feb 2009 14:46:54 +0000 (+0000) Subject: ebl Add test that reproduce bug 1227 about message X-Git-Tag: Release-3.0.0~232 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20009aa5bd63e7b7f0b41c0781ee506d66fd7339;p=bacula%2Fbacula ebl Add test that reproduce bug 1227 about message "Please mount Volume "TestVolume001" or label a new one for" git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8455 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/bug-1227 b/regress/tests/bug-1227 new file mode 100644 index 0000000000..e9c5f0d86d --- /dev/null +++ b/regress/tests/bug-1227 @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Test that reproduce bug 1227 +# +TestName="bug-1227" +JobName=backuptape +. scripts/functions + +require_tape_drive + +scripts/copy-tape-confs +scripts/cleanup-tape + +echo "${cwd}/build" >${cwd}/tmp/file-list + +change_jobname NightlySave $JobName +start_test + + +# Write out bconsole commands +cat <${cwd}/tmp/bconcmds +@output /dev/null +messages +@$out ${cwd}/tmp/log1.out +label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default +messages +END_OF_DATA + +run_bacula +stop_bacula + +FILE=`awk '/Archive Device = / { print $4 }' bin/bacula-sd.conf` +cp /dev/null $FILE + +cat <${cwd}/tmp/bconcmds +@$out ${cwd}/tmp/log1.out +messages +run job=$JobName yes +@sleep 10 +messages +label storage=DDS-4 volume=TestVolume002 slot=0 pool=Default +messages +@sleep 5 +mount storage=DDS-4 slot=0 +@sleep 2 +messages +cancel jobid=1 +wait +messages +list volumes +label storage=DDS-4 volume=TestVolume003 slot=0 pool=Default +messages +END_OF_DATA + +run_bacula +stop_bacula + +bstat=1 +rstat=0 +dstat=0 +zstat=0 + +end_test