]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add test that reproduce bug 1227 about message
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 16 Feb 2009 14:46:54 +0000 (14:46 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 16 Feb 2009 14:46:54 +0000 (14:46 +0000)
 "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 [new file with mode: 0644]

diff --git a/regress/tests/bug-1227 b/regress/tests/bug-1227
new file mode 100644 (file)
index 0000000..e9c5f0d
--- /dev/null
@@ -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 <<END_OF_DATA >${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 <<END_OF_DATA >${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