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