MakeCommand: @regressdir@/scripts/update-ctest
ConfigureCommand: true
UpdateCommand: svn
-TimeOut: 3600
+TimeOut: 1800
-ADD_TEST(all-non-root:auto-label-test "@regressdir@/tests/auto-label-test")
-ADD_TEST(all-non-root:backup-bacula-test "@regressdir@/tests/backup-bacula-test")
-ADD_TEST(all-non-root:bextract-test "@regressdir@/tests/bextract-test")
-ADD_TEST(all-non-root:big-vol-test "@regressdir@/tests/big-vol-test")
-ADD_TEST(all-non-root:bscan-test "@regressdir@/tests/bscan-test")
-ADD_TEST(all-non-root:bsr-opt-test "@regressdir@/tests/bsr-opt-test")
-ADD_TEST(all-non-root:compressed-test "@regressdir@/tests/compressed-test")
-ADD_TEST(all-non-root:compress-encrypt-test "@regressdir@/tests/compress-encrypt-test")
-ADD_TEST(all-non-root:concurrent-jobs-test "@regressdir@/tests/concurrent-jobs-test")
-ADD_TEST(all-non-root:data-encrypt-test "@regressdir@/tests/data-encrypt-test")
-ADD_TEST(all-non-root:encrypt-bug-test "@regressdir@/tests/encrypt-bug-test")
-ADD_TEST(all-non-root:fifo-test "@regressdir@/tests/fifo-test")
-ADD_TEST(all-non-root:backup-to-null "@regressdir@/tests/backup-to-null")
-ADD_TEST(all-non-root:fast-two-pool-test "@regressdir@/tests/fast-two-pool-test")
-ADD_TEST(all-non-root:four-concurrent-jobs-test "@regressdir@/tests/four-concurrent-jobs-test")
-ADD_TEST(all-non-root:four-jobs-test "@regressdir@/tests/four-jobs-test")
-ADD_TEST(all-non-root:hardlink-test "@regressdir@/tests/hardlink-test")
-ADD_TEST(all-non-root:incremental-2disk "@regressdir@/tests/incremental-2disk")
-ADD_TEST(all-non-root:incremental-2media "@regressdir@/tests/incremental-2media")
-ADD_TEST(all-non-root:incremental-test "@regressdir@/tests/incremental-test")
-ADD_TEST(all-non-root:maxvol2-test "@regressdir@/tests/maxvol2-test")
-ADD_TEST(all-non-root:maxvol-test "@regressdir@/tests/maxvol-test")
-ADD_TEST(all-non-root:migration-jobspan-test "@regressdir@/tests/migration-jobspan-test")
-ADD_TEST(all-non-root:migration-job-test "@regressdir@/tests/migration-job-test")
-ADD_TEST(all-non-root:migration-time-test "@regressdir@/tests/migration-time-test")
-ADD_TEST(all-non-root:migration-volume-test "@regressdir@/tests/migration-volume-test")
-ADD_TEST(all-non-root:query-test "@regressdir@/tests/query-test")
-ADD_TEST(all-non-root:recycle-test "@regressdir@/tests/recycle-test")
-ADD_TEST(all-non-root:regexwhere-test "@regressdir@/tests/regexwhere-test")
-ADD_TEST(all-non-root:restore2-by-file-test "@regressdir@/tests/restore2-by-file-test")
-ADD_TEST(all-non-root:restore-by-file-test "@regressdir@/tests/restore-by-file-test")
-ADD_TEST(all-non-root:restore-disk-seek-test "@regressdir@/tests/restore-disk-seek-test")
-ADD_TEST(all-non-root:scratch-pool-test "@regressdir@/tests/scratch-pool-test")
-ADD_TEST(all-non-root:six-vol-test "@regressdir@/tests/six-vol-test")
-ADD_TEST(all-non-root:span-vol-test "@regressdir@/tests/span-vol-test")
-ADD_TEST(all-non-root:sparse-compressed-test "@regressdir@/tests/sparse-compressed-test")
-ADD_TEST(all-non-root:sparse-test "@regressdir@/tests/sparse-test")
-ADD_TEST(all-non-root:three-pool-test "@regressdir@/tests/three-pool-test")
-ADD_TEST(all-non-root:tls-test "@regressdir@/tests/tls-test")
-ADD_TEST(all-non-root:two-jobs-test "@regressdir@/tests/two-jobs-test")
-ADD_TEST(all-non-root:two-pool-test "@regressdir@/tests/two-pool-test")
-ADD_TEST(all-non-root:two-vol-test "@regressdir@/tests/two-vol-test")
-ADD_TEST(all-non-root:two-volume-test "@regressdir@/tests/two-volume-test")
-ADD_TEST(all-non-root:verify-cat-test "@regressdir@/tests/verify-cat-test")
-ADD_TEST(all-non-root:verify-vol-test "@regressdir@/tests/verify-vol-test")
-ADD_TEST(all-non-root:weird-files2-test "@regressdir@/tests/weird-files2-test")
-ADD_TEST(all-non-root:weird-files-test "@regressdir@/tests/weird-files-test")
-ADD_TEST(all-non-root:2drive-3pool-test "@regressdir@/tests/2drive-3pool-test")
-ADD_TEST(all-non-root:2drive-concurrent-test "@regressdir@/tests/2drive-concurrent-test")
-ADD_TEST(all-non-root:2drive-incremental-2disk "@regressdir@/tests/2drive-incremental-2disk")
-ADD_TEST(all-non-root-2tape:incremental-2tape "@regressdir@/tests/incremental-2tape")
-ADD_TEST(all-non-root-2tape:two-volume-tape "@regressdir@/tests/two-volume-tape")
-ADD_TEST(all-non-root-tape:ansi-label-tape "@regressdir@/tests/ansi-label-tape")
-ADD_TEST(all-non-root-tape:backup-bacula-tape "@regressdir@/tests/backup-bacula-tape")
-ADD_TEST(all-non-root-tape:bscan-tape "@regressdir@/tests/bscan-tape")
-ADD_TEST(all-non-root-tape:fixed-block-size-tape "@regressdir@/tests/fixed-block-size-tape")
-ADD_TEST(all-non-root-tape:four-concurrent-jobs-tape "@regressdir@/tests/four-concurrent-jobs-tape")
-ADD_TEST(all-non-root-tape:four-jobs-tape "@regressdir@/tests/four-jobs-tape")
-ADD_TEST(all-non-root-tape:incremental-tape "@regressdir@/tests/incremental-tape")
-ADD_TEST(all-non-root-tape:relabel-tape "@regressdir@/tests/relabel-tape")
-ADD_TEST(all-non-root-tape:restore-by-file-tape "@regressdir@/tests/restore-by-file-tape")
-ADD_TEST(all-non-root-tape:small-file-size-tape "@regressdir@/tests/small-file-size-tape")
-ADD_TEST(all-non-root-tape:truncate-bug-tape "@regressdir@/tests/truncate-bug-tape")
-ADD_TEST(all-non-root-tape:two-pool-tape "@regressdir@/tests/two-pool-tape")
-ADD_TEST(all-non-root-tape:verify-vol-tape "@regressdir@/tests/verify-vol-tape")
-ADD_TEST(all-root:dev-test-root "@regressdir@/tests/dev-test-root")
-ADD_TEST(all-root:etc-test-root "@regressdir@/tests/etc-test-root")
-ADD_TEST(all-root:lib-test-root "@regressdir@/tests/lib-test-root")
-ADD_TEST(all-root:usr-tape-root "@regressdir@/tests/usr-tape-root")
+ADD_TEST(disk:auto-label-test "@regressdir@/tests/auto-label-test")
+ADD_TEST(disk:backup-bacula-test "@regressdir@/tests/backup-bacula-test")
+ADD_TEST(disk:bextract-test "@regressdir@/tests/bextract-test")
+ADD_TEST(disk:big-vol-test "@regressdir@/tests/big-vol-test")
+ADD_TEST(disk:bscan-test "@regressdir@/tests/bscan-test")
+ADD_TEST(disk:bsr-opt-test "@regressdir@/tests/bsr-opt-test")
+ADD_TEST(disk:compressed-test "@regressdir@/tests/compressed-test")
+ADD_TEST(disk:compress-encrypt-test "@regressdir@/tests/compress-encrypt-test")
+ADD_TEST(disk:concurrent-jobs-test "@regressdir@/tests/concurrent-jobs-test")
+ADD_TEST(disk:data-encrypt-test "@regressdir@/tests/data-encrypt-test")
+ADD_TEST(disk:encrypt-bug-test "@regressdir@/tests/encrypt-bug-test")
+ADD_TEST(disk:fifo-test "@regressdir@/tests/fifo-test")
+ADD_TEST(disk:backup-to-null "@regressdir@/tests/backup-to-null")
+ADD_TEST(disk:fast-two-pool-test "@regressdir@/tests/fast-two-pool-test")
+ADD_TEST(disk:four-concurrent-jobs-test "@regressdir@/tests/four-concurrent-jobs-test")
+ADD_TEST(disk:four-jobs-test "@regressdir@/tests/four-jobs-test")
+ADD_TEST(disk:hardlink-test "@regressdir@/tests/hardlink-test")
+ADD_TEST(disk:incremental-2disk "@regressdir@/tests/incremental-2disk")
+ADD_TEST(disk:incremental-2media "@regressdir@/tests/incremental-2media")
+ADD_TEST(disk:incremental-test "@regressdir@/tests/incremental-test")
+ADD_TEST(disk:maxvol2-test "@regressdir@/tests/maxvol2-test")
+ADD_TEST(disk:maxvol-test "@regressdir@/tests/maxvol-test")
+ADD_TEST(disk:migration-jobspan-test "@regressdir@/tests/migration-jobspan-test")
+ADD_TEST(disk:migration-job-test "@regressdir@/tests/migration-job-test")
+ADD_TEST(disk:migration-time-test "@regressdir@/tests/migration-time-test")
+ADD_TEST(disk:migration-volume-test "@regressdir@/tests/migration-volume-test")
+ADD_TEST(disk:query-test "@regressdir@/tests/query-test")
+ADD_TEST(disk:recycle-test "@regressdir@/tests/recycle-test")
+ADD_TEST(disk:regexwhere-test "@regressdir@/tests/regexwhere-test")
+ADD_TEST(disk:restore2-by-file-test "@regressdir@/tests/restore2-by-file-test")
+ADD_TEST(disk:restore-by-file-test "@regressdir@/tests/restore-by-file-test")
+ADD_TEST(disk:restore-disk-seek-test "@regressdir@/tests/restore-disk-seek-test")
+ADD_TEST(disk:scratch-pool-test "@regressdir@/tests/scratch-pool-test")
+ADD_TEST(disk:six-vol-test "@regressdir@/tests/six-vol-test")
+ADD_TEST(disk:span-vol-test "@regressdir@/tests/span-vol-test")
+ADD_TEST(disk:sparse-compressed-test "@regressdir@/tests/sparse-compressed-test")
+ADD_TEST(disk:sparse-test "@regressdir@/tests/sparse-test")
+ADD_TEST(disk:three-pool-test "@regressdir@/tests/three-pool-test")
+ADD_TEST(disk:tls-test "@regressdir@/tests/tls-test")
+ADD_TEST(disk:two-jobs-test "@regressdir@/tests/two-jobs-test")
+ADD_TEST(disk:two-pool-test "@regressdir@/tests/two-pool-test")
+ADD_TEST(disk:two-vol-test "@regressdir@/tests/two-vol-test")
+ADD_TEST(disk:two-volume-test "@regressdir@/tests/two-volume-test")
+ADD_TEST(disk:verify-cat-test "@regressdir@/tests/verify-cat-test")
+ADD_TEST(disk:verify-vol-test "@regressdir@/tests/verify-vol-test")
+ADD_TEST(disk:weird-files2-test "@regressdir@/tests/weird-files2-test")
+ADD_TEST(disk:weird-files-test "@regressdir@/tests/weird-files-test")
+ADD_TEST(disk:2drive-3pool-test "@regressdir@/tests/2drive-3pool-test")
+ADD_TEST(disk:2drive-concurrent-test "@regressdir@/tests/2drive-concurrent-test")
+ADD_TEST(disk:2drive-incremental-2disk "@regressdir@/tests/2drive-incremental-2disk")
+ADD_TEST(changer:incremental-2tape "@regressdir@/tests/incremental-2tape")
+ADD_TEST(changer:two-volume-tape "@regressdir@/tests/two-volume-tape")
+ADD_TEST(tape:ansi-label-tape "@regressdir@/tests/ansi-label-tape")
+ADD_TEST(tape:backup-bacula-tape "@regressdir@/tests/backup-bacula-tape")
+ADD_TEST(tape:bscan-tape "@regressdir@/tests/bscan-tape")
+ADD_TEST(tape:fixed-block-size-tape "@regressdir@/tests/fixed-block-size-tape")
+ADD_TEST(tape:four-concurrent-jobs-tape "@regressdir@/tests/four-concurrent-jobs-tape")
+ADD_TEST(tape:four-jobs-tape "@regressdir@/tests/four-jobs-tape")
+ADD_TEST(tape:incremental-tape "@regressdir@/tests/incremental-tape")
+ADD_TEST(tape:relabel-tape "@regressdir@/tests/relabel-tape")
+ADD_TEST(tape:restore-by-file-tape "@regressdir@/tests/restore-by-file-tape")
+ADD_TEST(tape:small-file-size-tape "@regressdir@/tests/small-file-size-tape")
+ADD_TEST(tape:truncate-bug-tape "@regressdir@/tests/truncate-bug-tape")
+ADD_TEST(tape:two-pool-tape "@regressdir@/tests/two-pool-tape")
+ADD_TEST(tape:verify-vol-tape "@regressdir@/tests/verify-vol-tape")
+ADD_TEST(root:dev-test-root "@regressdir@/tests/dev-test-root")
+ADD_TEST(root:etc-test-root "@regressdir@/tests/etc-test-root")
+ADD_TEST(root:lib-test-root "@regressdir@/tests/lib-test-root")
+ADD_TEST(root:usr-tape-root "@regressdir@/tests/usr-tape-root")
--- /dev/null
+#!/bin/sh
+#
+# Run all tape tests
+#
+echo "Start autochanger tests"
+echo "Start autochanger tests" >>test.out
+
+nice tests/incremental-changer
+nice tests/two-pool-changer
+nice tests/two-volume-changer
+nice tests/vol-duration-changer
+
+echo "End autochanger tests"
+echo "End autochanger tests" >>test.out
--- /dev/null
+#!/bin/sh
+#
+# Run all tests
+#
+./all-non-root-tests
+./all-non-root-tape-tests
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Experimental -R "all-non-root.*"
+nice ctest -D Experimental -R "^(disk|tape|changer):"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
- ctest -D NightlySubmit
+ ctest -D ExperimentalSubmit
fi
REGRESS_DEBUG=${save_debug}
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Experimental -R "all-non-root:"
+nice ctest -D Experimental -R "^disk:"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
- ctest -D NightlySubmit
+ ctest -D ExperimentalSubmit
fi
REGRESS_DEBUG=${save_debug}
--- /dev/null
+#!/bin/sh
+#
+# test only the disk based regression scripts
+#
+# Include full output
+save_debug=${REGRESS_DEBUG}
+REGRESS_DEBUG=1
+export REGRESS_DEBUG
+svn update
+scripts/config_dart
+nice ctest -D Experimental -R "^(disk|tape):"
+if [ $? != 0 ] ; then
+ echo "ctest failed re-running Submit"
+ ctest -D ExperimentalSubmit
+fi
+REGRESS_DEBUG=${save_debug}
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Experimental -R "all-non-root-tape:"
+nice ctest -D Experimental -R "^tape:"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
- ctest -D NightlySubmit
+ ctest -D ExperimentalSubmit
fi
REGRESS_DEBUG=${save_debug}
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Nightly -R "all-non-root.*"
+nice ctest -D Nightly -R "^(disk|tape|changer):"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
ctest -D NightlySubmit
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Nightly -R "all-non-root:"
+nice ctest -D Nightly -R "^disk:"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
ctest -D NightlySubmit
--- /dev/null
+#!/bin/sh
+#
+# test only the disk based regression scripts
+#
+# Include full output
+save_debug=${REGRESS_DEBUG}
+REGRESS_DEBUG=1
+export REGRESS_DEBUG
+svn update
+scripts/config_dart
+nice ctest -D Experimental -R "^(disk|tape):"
+if [ $? != 0 ] ; then
+ echo "ctest failed re-running Submit"
+ ctest -D ExperimentalSubmit
+fi
+REGRESS_DEBUG=${save_debug}
export REGRESS_DEBUG
svn update
scripts/config_dart
-nice ctest -D Nightly -R "all-non-root-tape:"
+nice ctest -D Nightly -R "^tape:"
if [ $? != 0 ] ; then
echo "ctest failed re-running Submit"
ctest -D NightlySubmit
SQLITE3_DIR=${HOME}/bacula/depkgs/sqlite3
SQLITE_DIR=${HOME}/bacula/depkgs/sqlite
+# set to /dev/null if you do not have a tape drive
+# Note this is used for both the tape tests and the
+# autochanger
TAPE_DRIVE="/dev/nst0"
+
# if you don't have an autochanger set AUTOCHANGER to /dev/null
AUTOCHANGER="/dev/sg0"
+
+# drive index of first autochanger drive
+DRIVE1=0
+
+# drive index of second autochanger drive or "none" (in lowercase)
+DRIVE2="none"
+
+# what slot to use for first tape
+SLOT1=1
+
+# what slot to use for the second tape
+SLOT2=2
+
# For two drive tests -- set to /dev/null if you do not have it
TAPE_DRIVE1="/dev/null"
# test machines, add some indication of the machine.
#
SITE_NAME=<your-name>-bacula-${HOST}
-
Messages {
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula Regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
JobDefs = DefaultJob
RunScript {
Command = "/bin/false RUN_FD_FAILED1"
+ Command = "/bin/false RUN_FD_FAILED2"
failjobonerror = no
RunsWhen = Before
}
RunScript {
- Command = "/bin/false RUN_FD_FAILED2"
+ Command = "/bin/false RUN_FD_FAILED3"
failjobonerror = yes
RunsWhen = Before
}
#
# Cleanup left over files -- both before and after test run
#
+. ./config
+
scripts/cleanup
+if test "x@autochanger@" != "x/dev/null" ; then
+ a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0`
+ if test $a = 0 ; then
+ bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
+ fi
+fi
mt -f @tape_drive@ rewind
mt -f @tape_drive@ weof
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
fi
}
+require_tape_drive()
+{
+if test x${TAPE_DRIVE} = x/dev/null ; then
+ echo "$TestName test needs a tape drive, but has none."
+ exit 1
+fi
+}
+
+require_second_drive()
+{
+if test x${TAPE_DRIVE1} = x/dev/null ; then
+ echo "$JobName needs second drive, but has none."
+ exit 1
+fi
+}
+
+require_autochanger()
+{
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "$TestName needs an autochanger, but has none."
+ exit 1
+fi
+}
+
+
+skip_if_no_autochanger()
+{
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "$TestName test skipped. No autochanger."
+ exit
+fi
+}
set_debug()
{
fi
}
+print_debug()
+{
+ if test "$debug" -eq 1 ; then
+ echo $*
+ fi
+}
+
run_bacula()
{
debug_wait
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate
append = "@working_dir@/log" = all, !skipped
Messages {
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate
append = "@working_dir@/log" = all, !skipped
# and to the console
Messages {
Name = Standard
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
+# mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
+# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
+# MailOnError = @job_email@ = all
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = NoEmail
- mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
+# mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
console = all, !skipped, !terminate
#
# WARNING! the following will create a file that you must cycle from
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
Messages {
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all
- operator = @job_email@ = mount
+# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
+# MailOnError = @job_email@ = all
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = @hostname@-dir = all, !terminate
+ director = @hostname@-dir = all, !terminate, !restored
}
Messages {
Name = Standard
mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: %t %e of %c %l\" %r"
- operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
- MailOnError = @job_email@ = all, !terminate
- operator = @job_email@ = mount
+# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bacula regression\) %r\" -s \"Regression: Intervention needed for %j\" %r"
+# MailOnError = @job_email@ = all, !terminate
+# operator = @job_email@ = mount
console = all, !skipped, !terminate, !restored
#
# WARNING! the following will create a file that you must cycle from
Messages {
Name = Daemon
mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bacula regression\) %r\" -s \"Regression daemon message\" %r"
- mail = @job_email@ = all, !skipped
+# mail = @job_email@ = all, !skipped
console = all, !skipped, !saved
append = "@working_dir@/log" = all, !skipped
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
- director = rufus-dir = all, !terminate
+ director = rufus-dir = all, !terminate, !restored
}
run job=NightlySave yes
run job=NightlySave yes
run job=NightlySave yes
-@sleep 3
+@sleep 5
status storage=DDS-4
+list volumes
+list jobs
+messages
wait
list volumes
list jobs
@# Force Incremental on the second Volume
update volume=TestVolume001 VolStatus=Used
status storage=DDS-4
+list volumes
@#setdebug level=120 storage=DDS-4
run level=Incremental job=NightlySave yes
wait
JobName=backuptape
. scripts/functions
+require_tape_drive
+
scripts/copy-tape-confs
/bin/cp -f scripts/ansi-sd-tape.conf bin/bacula-sd.conf
scripts/cleanup-tape
list pools
list volumes
wait
+sql
+SELECT StartTime, JobFiles, JobId, Level, count(*) AS nb_jobmedia
+FROM JobMedia join Job using (JobId) join Client using (ClientId)
+where Client.Name = 'localhost-fd' group by JobId, Level, StartTime,
+JobFiles order by JobId desc ;
+
messages
@#
@# now do a restore
@#
@$out ${cwd}/tmp/log2.out
+@#setdebug level=400 storage=File
restore where=${cwd}/tmp/bacula-restores select storage=File
unmark *
mark *
JobName=backuptape
. scripts/functions
+require_tape_drive
+
scripts/copy-tape-confs
scripts/cleanup-tape
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
+setdebug level=100 storage=File
label volume=TestVolume001 storage=File pool=Default
-@#setdebug level=100 storage=File
run job=$JobName yes
status storage=File
status storage=File
JobName=backupwintape
. scripts/functions
+require_tape_drive_drive
+
scripts/cleanup-tape
scripts/copy-win32-confs
label storage=File1 volume=TestVolume002
update Volume=TestVolume001 MaxVolBytes=3000000
@#setdebug level=400 dir
-@#setdebug level=400 storage=File1
+setdebug level=400 storage=File1
run job=$JobName storage=File1 yes
wait
messages
JobName=bscantape
. scripts/functions
+require_tape_drive
+
copy_tape_confs
echo "${cwd}/build" >${cwd}/tmp/file-list
JobName=bscantape
. scripts/functions
+require_tape_drive
+
copy_tape_confs
echo "${cwd}/build" >tmp/file-list
@output /dev/null
estimate job=$JobName listing
estimate job=$JobName listing
-estimate job=$JobName listing
messages
@$out tmp/log1.out
setdebug level=2 storage=DDS-4
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-run job=$JobName yes
-wait
-run job=$JobName level=Full yes
+run job=$JobName level=Full yes
wait
run job=$JobName level=Full yes
wait
quit
END_OF_DATA
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
echo "Backup 2 done"
#
# run a third job
#
-cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
-messages
-@$out tmp/log1.out
-run job=$JobName level=Incremental yes
-wait
-messages
-quit
-END_OF_DATA
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
echo "Backup 3 done"
#
# run a fourth job
#
-cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
-messages
-@$out tmp/log1.out
-run job=$JobName level=Incremental yes
-wait
-messages
-quit
-END_OF_DATA
-
-run_bacula
+run_bconsole
scripts/check_for_zombie_jobs storage=DDS-4
+
stop_bacula
echo "Backup 4 done"
JobName=AutoLabel
. scripts/functions
+require_tape_drive
+
scripts/copy-tape-confs
scripts/cleanup-tape
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
+setdebug level=100 storage=File
label storage=File volume=TestVolume002
label storage=File volume=TestVolume001
run job=$JobName yes
JobName=EightySimultaneousJobs
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
#!/bin/sh
#
-# Run a simple backup of the Bacula build directory
-# to two tapes where the maximum tape file size is set to 1M
#
TestName="eot-fail-tape"
JobName=eotfailtape
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
messages
-@$out ${cwd}/tmp/log1.out
+@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-update Volume=TestVolume001 MaxVolBytes=3000000
+#update Volume=TestVolume001 MaxVolBytes=3000000
run job=$JobName yes
wait
messages
@#
@# now do a restore
@#
-@$out ${cwd}/tmp/log2.out
+@$out tmp/log2.out
restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
yes
wait
JobName=fixedblocksize
. scripts/functions
+require_tape_drive
+
copy_tape_confs
echo "${cwd}/build" >${cwd}/tmp/file-list
JobName=FourConcurrentJobs
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
mark *
done
yes
+run job=$JobName level=Full Storage=File1 yes
wait
reload
reload
JobName=fourjobstape
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
echo "${cwd}/build" >${cwd}/tmp/file-list
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
JobName=Inc2mediaTape
. scripts/functions
+require_tape_drive
+require_second_drive
scripts/cleanup
# Get conf files
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=1 Pool=Default drive=0
+label storage=DDS-4 volume=TestVolume001 slot=$SLOT1 Pool=Default drive=$DRIVE1
label storage=DLT80 volume=TestVolume002 Pool=Default
run job=$JobName yes
wait
JobName=IncTape
. scripts/functions
+require_tape_drive
+
scripts/copy-tape-confs
scripts/cleanup-tape
update Volume=TestVolume003 volretention=10s
update Volume=TestVolume003 maxvoljobs=1
list volumes
-setdebug level=50 storage=File1
+setdebug level=150 storage=File1
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
JobName=FourConcurrentJobs
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
@output
messages
@$out ${cwd}/tmp/log1.out
-@#setdebug level=100 storage=File
+setdebug level=100 storage=File
label storage=File volume=FileVolume001 Pool=Default
label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
mark *
done
yes
+list volumes
wait
messages
@output
wait
messages
list volumes
+@sleep 11
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
wait
messages
list volumes
-@sleep 10
+@sleep 11
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
wait
messages
list volumes
-@sleep 10
+@sleep 11
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
wait
messages
list volumes
-@sleep 10
+@sleep 11
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
run job=$JobName storage=File1 level=full yes
/bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf
+#
+# Remove the !restored from the messages resource because
+# this test needs the restored listing to verify the
+# restore results
+#
+outf="${cwd}/tmp/sed_tmp"
+echo "s%, \!restored%%g" >${outf}
+cp ${cwd}/bin/bacula-fd.conf ${cwd}/tmp/1
+sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-fd.conf
+
echo "${cwd}/build/po" >tmp/file-list
start_test
# then backup four times, each with incremental then finally restore.
# It should require at least 4 different bsrs.
#
-TestName="relabel-tape"
+TestName="relabel-1t1d-tape"
JobName=Relabeltape
. scripts/functions
+require_tape_drive
+
scripts/cleanup-tape
scripts/copy-tape-confs
+
echo "${cwd}/build" >${cwd}/tmp/file-list
change_jobname $JobName
TestName="restore-by-file-tape"
JobName=restorebyfile
. scripts/functions
-copy_tape_confs
+
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
echo "${cwd}/build" >${cwd}/tmp/file-list
sed s%\^%${cwd}% ${cwd}/scripts/flist | sort | uniq >${cwd}/tmp/restore2-list
JobName=restore-tape-seek
. scripts/functions
-copy_tape_confs
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
+
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
rm -rf ${cwd}/tmp/build
mkdir ${cwd}/tmp/build
export bstat
export rstat
-grep 'BeforeJob: run command "/bin/echo RunBeforeJob"' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
+grep 'shell command: run BeforeJob "/bin/echo RunBeforeJob"' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
a=$?
grep 'ClientRunBeforeJob: ClientRunBeforeJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
b=$?
-grep 'ClientAfterJob: run command "/bin/echo ClientRunAfterJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
+grep 'shell command: run ClientAfterJob "/bin/echo ClientRunAfterJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
c=$?
-grep 'AfterJob: run command "/bin/echo RunAfterJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
+grep 'shell command: run AfterJob "/bin/echo RunAfterJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null 2>&1
d=$?
if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 ]
then
rstat=1
fi
-grep 'BeforeJob: run command "/bin/false RUN_DIR_FAILED"' ${cwd}/tmp/RUN_DIR_FAILED.log >/dev/null 2>&1
+grep 'shell command: run BeforeJob "/bin/false RUN_DIR_FAILED"' ${cwd}/tmp/RUN_DIR_FAILED.log >/dev/null 2>&1
a=$?
grep 'AfterJob: RunAfterFailedJob' ${cwd}/tmp/RUN_DIR_FAILED.log >/dev/null 2>&1
b=$?
rstat=1
fi
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED1"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
a=$?
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED2"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
b=$?
-grep 'AfterJob: run command "/bin/echo RunAfterFailedJob"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED3"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
c=$?
-#grep 'touching' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
-test -f ${cwd}/tmp/RUN_FD_FAILED
+grep 'shell command: run AfterJob "/bin/echo RunAfterFailedJob"' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
d=$?
-grep '*** Backup Error ***' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+grep 'touching' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
e=$?
-if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
+grep '*** Backup Error ***' ${cwd}/tmp/RUN_FD_FAILED.log >/dev/null 2>&1
+f=$?
+if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 -a $f = 0 ]
then
[ "$debug" = 1 ] && echo RUN_FD_FAILED ok
else
- echo "RUN_FD_FAILED in error"
+ echo "RUN_FD_FAILED in error a=$a b=$b c=$c d=$d e=$e f=$f"
rstat=1
fi
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED1"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
a=$?
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED2"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
b=$?
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_FAILED3"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_FAILED3"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
c=$?
-grep 'AfterJob: run command "/bin/echo RunAfterFailedJob"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
+grep 'shell command: run AfterJob "/bin/echo RunAfterFailedJob"' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
d=$?
grep '*** Backup Error ***' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null 2>&1
e=$?
then
[ "$debug" = 1 ] && echo RUN_FD_FAILED ok
else
- echo "RUN_FD_FAILED2 in error"
+ echo "RUN_FD_FAILED2 in error a=$a b=$b c=$d d=$d e=$e"
rstat=1
fi
-grep 'ClientBeforeJob: run command "/bin/false RUN_FD_WARNING"' ${cwd}/tmp/RUN_FD_WARNING.log >/dev/null 2>&1
+grep 'shell command: run ClientBeforeJob "/bin/false RUN_FD_WARNING"' ${cwd}/tmp/RUN_FD_WARNING.log >/dev/null 2>&1
a=$?
grep 'RunAfterFailedJob' ${cwd}/tmp/RUN_FD_WARNING.log >/dev/null 2>&1
b=$?
JobName=smallfilesize
. scripts/functions
-copy_tape_confs
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
echo "${cwd}/build" >${cwd}/tmp/file-list
cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
JobName=truncatebug
. scripts/functions
-copy_tape_confs
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
echo "${cwd}/build" >${cwd}/tmp/file-list
messages
@output/dev/null
estimate job=$JobName listing
-estimate job=$JobName listing
-estimate job=$JobName listing
+estimate job=$JobName
+estimate job=$JobName
messages
@$out tmp/log1.out
label storage=File volume=TestVolume001
JobName=VerifyVol
. scripts/functions
-copy_tape_confs
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
echo "${cwd}/build" >${cwd}/tmp/file-list
JobName=win32tape
. scripts/functions
+require_tape_drive
+
scripts/copy-win32-confs
scripts/cleanup-tape
JobName=AutoLabel
. scripts/functions
+require_tape_drive
+
scripts/copy-win32-confs
scripts/cleanup-tape