]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/certify-changer
Merge branch 'master' of ssh://ricozz@bacula.git.sourceforge.net/gitroot/bacula/bacula
[bacula/bacula] / regress / tests / certify-changer
1 #!/bin/sh 
2 #
3 # Script to automate hardware certification
4 # This script assumes that everything is in regress/bin and that
5 # you have an autochanger
6 #
7 # This script was designed for Linux. For other systems, you may
8 #  need to edit it.
9 #
10 outf=cert.out
11 . scripts/functions
12
13
14 echo " " >${outf}
15 echo "=== Start hardware certification tests at `date +%R:%S` ===" >>${outf}
16 echo " " >>${outf}
17 uname -a >>${outf}
18 echo " " >>${outf}
19 bin/bacula-dir -t -? >>${outf} 2>>${outf}
20 echo " " >>${outf}
21 echo "lsscsi:" >>${outf}
22 lsscsi >>${outf}
23 echo " " >>${outf}
24 echo "Changer=${AUTOCHANGER}" >>${outf}
25 echo "Drive=${TAPE_DRIVE}" >>${outf}
26 echo " " >>${outf}
27 echo "tapeinfo: " >>${outf}
28 tapeinfo -f ${AUTOCHANGER} >>${outf}
29 echo " " >>${outf}
30 echo "loaderinfo: " >>${outf}
31 loaderinfo -f ${AUTOCHANGER} >>${outf}
32 echo " " >>${outf}
33 echo "mtx: " >>${outf}
34 mtx -f ${AUTOCHANGER} status >>${outf}
35 echo " " >>${outf}
36 echo "lspci:" >>${outf}
37 lspci -vv >>${outf}
38
39 # If we have an autoloader, load the tape in slot1
40 if test ! x$AUTOCHANGER = x/dev/null ; then
41    a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
42    if test $a = 0 ; then
43       bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
44    fi
45 fi
46
47 # Autochanger tests
48 REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
49 nice tests/2drive-incremental-changer >>${outf}
50 nice tests/bad-label-changer >>${outf}
51 nice tests/incremental-changer >>${outf}
52 nice tests/two-pool-changer >>${outf}
53 nice tests/two-volume-changer >>${outf}
54 nice tests/vol-duration-changer >>${outf}
55
56
57
58 # Non-autochanger tests
59 REGRESS_DEBUG=1 tests/btape-test-tape >>${outf}
60 nice tests/ansi-label-tape >>${outf}
61 nice tests/backup-bacula-tape >>${outf}
62 nice tests/bscan-tape >>${outf}
63 nice tests/eighty-simultaneous-jobs-tape >>${outf}
64 nice tests/eot-fail-tape >>${outf}
65 nice tests/fixed-block-size-tape >>${outf}
66 nice tests/four-concurrent-jobs-tape >>${outf}
67 nice tests/four-jobs-tape >>${outf}
68 nice tests/incremental-2media-tape >>${outf}
69 nice tests/incremental-tape >>${outf}
70 nice tests/memory-bug-tape >>${outf}
71 nice tests/relabel-tape >>${outf}
72 nice tests/restore-by-file-tape >>${outf}
73 nice tests/restore-seek-tape >>${outf}
74 nice tests/small-file-size-tape >>${outf}
75 nice tests/truncate-bug-tape >>${outf}
76 nice tests/verify-vol-tape >>${outf}
77
78 # Autochanger tests
79 REGRESS_DEBUG=1 tests/btape-test-changer >>${outf}
80 nice tests/2drive-incremental-changer >>${outf}
81 nice tests/bad-label-changer >>${outf}
82 nice tests/incremental-changer >>${outf}
83 nice tests/two-pool-changer >>${outf}
84 nice tests/two-volume-changer >>${outf}
85 nice tests/vol-duration-changer >>${outf}
86
87
88 echo "=== End hardware certification tests at `date +%R:%S` ===" >>${outf}