+cert.out
diff
time.out
1
+++ /dev/null
-#!/bin/sh
-#
-# Run full tape tests assumes you have an autochanger
-#
-. ./config
-
-#
-# If we have an autoloader, load the tape in slot1
-if test ! x$AUTOCHANGER = x/dev/null ; then
- a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
- if test $a = 0 ; then
- bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
- fi
-fi
-echo " "
-echo " " >>test.out
-echo "Start full tape tests"
-echo "Start full tape tests" >>test.out
-
-# Non-autochanger tests
-nice tests/ansi-label-tape
-nice tests/backup-bacula-tape
-nice tests/bscan-tape
-nice tests/eighty-simultaneous-jobs-tape
-nice tests/eot-fail-tape
-nice tests/fixed-block-size-tape
-nice tests/four-concurrent-jobs-tape
-nice tests/four-jobs-tape
-nice tests/incremental-2media-tape
-nice tests/incremental-tape
-nice tests/memory-bug-tape
-nice tests/relabel-tape
-nice tests/restore-by-file-tape
-nice tests/restore-seek-tape
-nice tests/small-file-size-tape
-nice tests/truncate-bug-tape
-nice tests/verify-vol-tape
-
-# Autochanger tests
-nice tests/2drive-incremental-changer
-nice tests/bad-label-changer
-nice tests/incremental-changer
-nice tests/two-pool-changer
-nice tests/two-volume-changer
-nice tests/vol-duration-changer
-
-# very long
-# nice tests/btape-fill-full-tape
-
-# requires manual intervention
-# nice tests/manual-two-vol-tape
-
-echo "End full non-root tape tests"
-echo "End full non-root tape tests" >>test.out
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log1.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
fill
m
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
fill
m
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log1.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
fill
s
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
fill
s
start_test
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log1.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
test
yes
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
+
test
yes
quit
sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log2.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
test
yes
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
test
yes
quit
start_test
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log1.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
test
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
test
quit
END_OF_DATA
sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log2.out
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
test
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
test
quit
END_OF_DATA
--- /dev/null
+#!/bin/sh
+#
+# Script to automate hardware certification
+# This script assumes that everything is in regress/bin and that
+# you have an autochanger
+#
+# This script was designed for Linux. For other systems, you may
+# need to edit it.
+#
+outf=cert.out
+. scripts/functions
+
+
+echo " " >${outf}
+echo "=== Start hardware certification tests at `date +%R:%S` ===" >>${outf}
+echo " " >>${outf}
+uname -a >>${outf}
+echo " " >>${outf}
+bin/bacula-dir -t -? >>${outf} 2>>${outf}
+echo " " >>${outf}
+echo "lsscsi:" >>${outf}
+lsscsi >>${outf}
+echo " " >>${outf}
+echo "Changer=${AUTOCHANGER}" >>${outf}
+echo "Drive=${TAPE_DRIVE}" >>${outf}
+echo " " >>${outf}
+echo "tapeinfo: " >>${outf}
+tapeinfo -f ${AUTOCHANGER} >>${outf}
+echo " " >>${outf}
+echo "loaderinfo: " >>${outf}
+loaderinfo -f ${AUTOCHANGER} >>${outf}
+echo " " >>${outf}
+echo "mtx: " >>${outf}
+mtx -f ${AUTOCHANGER} status >>${outf}
+echo " " >>${outf}
+echo "lspci:" >>${outf}
+lspci -vv >>${outf}
+
+# If we have an autoloader, load the tape in slot1
+if test ! x$AUTOCHANGER = x/dev/null ; then
+ a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
+ if test $a = 0 ; then
+ bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
+ fi
+fi
+
+# Autochanger tests
+REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
+nice tests/2drive-incremental-changer >>${outf}
+nice tests/bad-label-changer >>${outf}
+nice tests/incremental-changer >>${outf}
+nice tests/two-pool-changer >>${outf}
+nice tests/two-volume-changer >>${outf}
+nice tests/vol-duration-changer >>${outf}
+
+
+
+# Non-autochanger tests
+REGRESS_DEBUG=1 tests/btape-test-tape >>${outf}
+nice tests/ansi-label-tape >>${outf}
+nice tests/backup-bacula-tape >>${outf}
+nice tests/bscan-tape >>${outf}
+nice tests/eighty-simultaneous-jobs-tape >>${outf}
+nice tests/eot-fail-tape >>${outf}
+nice tests/fixed-block-size-tape >>${outf}
+nice tests/four-concurrent-jobs-tape >>${outf}
+nice tests/four-jobs-tape >>${outf}
+nice tests/incremental-2media-tape >>${outf}
+nice tests/incremental-tape >>${outf}
+nice tests/memory-bug-tape >>${outf}
+nice tests/relabel-tape >>${outf}
+nice tests/restore-by-file-tape >>${outf}
+nice tests/restore-seek-tape >>${outf}
+nice tests/small-file-size-tape >>${outf}
+nice tests/truncate-bug-tape >>${outf}
+nice tests/verify-vol-tape >>${outf}
+
+# Autochanger tests
+REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
+nice tests/2drive-incremental-changer >>${outf}
+nice tests/bad-label-changer >>${outf}
+nice tests/incremental-changer >>${outf}
+nice tests/two-pool-changer >>${outf}
+nice tests/two-volume-changer >>${outf}
+nice tests/vol-duration-changer >>${outf}
+
+
+echo "=== End hardware certification tests at `date +%R:%S` ===" >>${outf}
--- /dev/null
+#!/bin/sh
+#
+# Run full tape tests assumes you have an autochanger
+#
+. ./config
+
+#
+# If we have an autoloader, load the tape in slot1
+if test ! x$AUTOCHANGER = x/dev/null ; then
+ a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
+ if test $a = 0 ; then
+ bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
+ fi
+fi
+echo " "
+echo " " >>test.out
+echo "Start full tape tests"
+echo "Start full tape tests" >>test.out
+
+# Non-autochanger tests
+nicd tests/btest-test-tape
+nice tests/ansi-label-tape
+nice tests/backup-bacula-tape
+nice tests/bscan-tape
+nice tests/eighty-simultaneous-jobs-tape
+nice tests/eot-fail-tape
+nice tests/fixed-block-size-tape
+nice tests/four-concurrent-jobs-tape
+nice tests/four-jobs-tape
+nice tests/incremental-2media-tape
+nice tests/incremental-tape
+nice tests/memory-bug-tape
+nice tests/relabel-tape
+nice tests/restore-by-file-tape
+nice tests/restore-seek-tape
+nice tests/small-file-size-tape
+nice tests/truncate-bug-tape
+nice tests/verify-vol-tape
+
+# Autochanger tests
+nice tests/btest-test-changer
+nice tests/2drive-incremental-changer
+nice tests/bad-label-changer
+nice tests/incremental-changer
+nice tests/two-pool-changer
+nice tests/two-volume-changer
+nice tests/vol-duration-changer
+
+# very long
+# nice tests/btape-fill-full-tape
+# nice tests/btape-fill-full-changer
+
+# requires manual intervention
+# nice tests/manual-two-vol-tape
+
+echo "End full non-root tape tests"
+echo "End full non-root tape tests" >>test.out