From 20009aa5bd63e7b7f0b41c0781ee506d66fd7339 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 16 Feb 2009 14:46:54 +0000 Subject: [PATCH] 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 --- regress/tests/bug-1227 | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 regress/tests/bug-1227 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 -- 2.39.5