]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/certify-changer
regress: add some debug to prune-copy-test
[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
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`
43    if test $a = 0 ; then
44       bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
45    fi
46 fi
47
48 # Autochanger tests
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}
56
57
58
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}
78
79 # Autochanger tests
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}
87
88
89 echo "=== End hardware certification tests at `date +%R:%S` ===" >>${outf}