mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 08:17:20 +00:00
Combine and update all pt-summary tests to new format.
This commit is contained in:
38
t/pt-summary/parse_raid_controller_lspci.sh
Normal file
38
t/pt-summary/parse_raid_controller_lspci.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
TEST=5
|
||||
|
||||
TEST_NAME="lspci-001.txt"
|
||||
<<EOF > $TMPDIR/expected
|
||||
Fusion-MPT SAS
|
||||
EOF
|
||||
parse_raid_controller_lspci samples/lspci-001.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="lspci-002.txt"
|
||||
<<EOF > $TMPDIR/expected
|
||||
LSI Logic Unknown
|
||||
EOF
|
||||
parse_raid_controller_lspci samples/lspci-002.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="lspci-003.txt"
|
||||
<<EOF > $TMPDIR/expected
|
||||
AACRAID
|
||||
EOF
|
||||
parse_raid_controller_lspci samples/lspci-003.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="lspci-004.txt"
|
||||
<<EOF > $TMPDIR/expected
|
||||
LSI Logic MegaRAID SAS
|
||||
EOF
|
||||
parse_raid_controller_lspci samples/lspci-004.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="lspci-006.txt"
|
||||
<<EOF > $TMPDIR/expected
|
||||
HP Smart Array
|
||||
EOF
|
||||
parse_raid_controller_lspci samples/lspci-006.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
Reference in New Issue
Block a user