3 # Script to automate hardware certification
4 # This script assumes that everything is in regress/bin and that
5 # you have an autochanger
7 # This script was designed for Linux. For other systems, you may
15 echo "=== Start hardware certification tests at `date +%R:%S` ===" >>${outf}
19 bin/bacula-dir -t -? >>${outf} 2>>${outf}
21 echo "lsscsi:" >>${outf}
24 echo "Changer=${AUTOCHANGER}" >>${outf}
25 echo "Drive=${TAPE_DRIVE}" >>${outf}
27 echo "tapeinfo: " >>${outf}
28 tapeinfo -f ${AUTOCHANGER} >>${outf}
30 echo "loaderinfo: " >>${outf}
31 loaderinfo -f ${AUTOCHANGER} >>${outf}
33 echo "mtx: " >>${outf}
34 mtx -f ${AUTOCHANGER} status >>${outf}
36 echo "lspci:" >>${outf}
40 # If we have an autoloader, load the tape in slot1
41 if test ! x$AUTOCHANGER = x/dev/null ; then
42 a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
44 bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
49 REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
50 nice tests/2drive-incremental-changer >>${outf}
51 nice tests/bad-label-changer >>${outf}
52 nice tests/incremental-changer >>${outf}
53 nice tests/two-pool-changer >>${outf}
54 nice tests/two-volume-changer >>${outf}
55 nice tests/vol-duration-changer >>${outf}
59 # Non-autochanger tests
60 REGRESS_DEBUG=1 tests/btape-test-tape >>${outf}
61 nice tests/ansi-label-tape >>${outf}
62 nice tests/backup-bacula-tape >>${outf}
63 nice tests/bscan-tape >>${outf}
64 nice tests/eighty-simultaneous-jobs-tape >>${outf}
65 nice tests/eot-fail-tape >>${outf}
66 nice tests/fixed-block-size-tape >>${outf}
67 nice tests/four-concurrent-jobs-tape >>${outf}
68 nice tests/four-jobs-tape >>${outf}
69 nice tests/incremental-2media-tape >>${outf}
70 nice tests/incremental-tape >>${outf}
71 nice tests/memory-bug-tape >>${outf}
72 nice tests/relabel-tape >>${outf}
73 nice tests/restore-by-file-tape >>${outf}
74 nice tests/restore-seek-tape >>${outf}
75 nice tests/small-file-size-tape >>${outf}
76 nice tests/truncate-bug-tape >>${outf}
77 nice tests/verify-vol-tape >>${outf}
80 REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
81 nice tests/2drive-incremental-changer >>${outf}
82 nice tests/bad-label-changer >>${outf}
83 nice tests/incremental-changer >>${outf}
84 nice tests/two-pool-changer >>${outf}
85 nice tests/two-volume-changer >>${outf}
86 nice tests/vol-duration-changer >>${outf}
89 echo "=== End hardware certification tests at `date +%R:%S` ===" >>${outf}