~mauricio-stekl/percona-toolkit/pt-docs-percona-theme

« back to all changes in this revision

Viewing changes to t/pt-summary/parse_fusionmpt_lsiutil.sh

  • Committer: Daniel Nichter
  • Date: 2011-08-19 17:40:45 UTC
  • mfrom: (78.1.9 bash-tool-testing)
  • Revision ID: daniel@percona.com-20110819174045-bb003ilo8sfriak0
Merge bash-tool-testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
TESTS=3
 
4
 
 
5
TEST_NAME="lsiutil-001.txt"
 
6
cat <<EOF > $TMPDIR/expected
 
7
 
 
8
  /proc/mpt/ioc0    LSI Logic SAS1068E B3    MPT 105   Firmware 00192f00   IOC 0
 
9
   B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum
 
10
   0   0   0  Disk       Dell     VIRTUAL DISK     1028  
 
11
   0   2   0  Disk       Dell     VIRTUAL DISK     1028  
 
12
   0   8   0  EnclServ   DP       BACKPLANE        1.05  510240805f4feb00     8
 
13
  Hidden RAID Devices:
 
14
   B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum
 
15
   0   1  PhysDisk 0     SEAGATE  ST373455SS       S52A  5000c50012a8ac61     1
 
16
   0   9  PhysDisk 1     SEAGATE  ST373455SS       S52A  5000c50012a8a24d     0
 
17
   0   3  PhysDisk 2     SEAGATE  ST3146855SS      S52A  5000c500130fcaed     3
 
18
   0  10  PhysDisk 3     SEAGATE  ST3146855SS      S52A  5000c500131093f5     2
 
19
EOF
 
20
parse_fusionmpt_lsiutil samples/lsiutil-001.txt > $TMPDIR/got
 
21
no_diff $TMPDIR/got $TMPDIR/expected
 
22
 
 
23
TEST_NAME="lsiutil-002.txt"
 
24
cat <<EOF > $TMPDIR/expected
 
25
 
 
26
  /proc/mpt/ioc0    LSI Logic SAS1064E B3    MPT 105   Firmware 011e0000   IOC 0
 
27
   B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum
 
28
   0   1   0  Disk       LSILOGIC Logical Volume   3000  
 
29
  Hidden RAID Devices:
 
30
   B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum
 
31
   0   2  PhysDisk 0     IBM-ESXS ST9300603SS   F  B536  5000c5001d784329     1
 
32
   0   3  PhysDisk 1     IBM-ESXS MBD2300RC        SB17  500000e113c17152     0
 
33
EOF
 
34
parse_fusionmpt_lsiutil samples/lsiutil-002.txt > $TMPDIR/got
 
35
no_diff $TMPDIR/got $TMPDIR/expected
 
36
 
 
37
TEST_NAME="lsiutil-003.txt"
 
38
cat <<EOF > $TMPDIR/expected
 
39
 
 
40
  /proc/mpt/ioc0    LSI Logic SAS1064E B3    MPT 105   Firmware 011e0000   IOC 0
 
41
   B___T___L  Type       Vendor   Product          Rev      SASAddress     PhyNum
 
42
   0   1   0  Disk       LSILOGIC Logical Volume   3000  
 
43
  Hidden RAID Devices:
 
44
   B___T    Device       Vendor   Product          Rev      SASAddress     PhyNum
 
45
   0   2  PhysDisk 0     IBM-ESXS MBD2300RC        SB17  500000e113c00ed2     1
 
46
   0   3  PhysDisk 1     IBM-ESXS MBD2300RC        SB17  500000e113c17ee2     0
 
47
EOF
 
48
parse_fusionmpt_lsiutil samples/lsiutil-003.txt > $TMPDIR/got
 
49
no_diff $TMPDIR/got $TMPDIR/expected