mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 03:14:58 +00:00
Combine and update all pt-summary tests to new format.
This commit is contained in:
31
t/pt-summary/parse_raid_controller_dmesg.sh
Normal file
31
t/pt-summary/parse_raid_controller_dmesg.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
TESTS=4
|
||||
|
||||
TEST_NAME="dmesg-001.txt"
|
||||
cat <<EOF > $TMPDIR/expected
|
||||
Fusion-MPT SAS
|
||||
EOF
|
||||
parse_raid_controller_dmesg samples/dmesg-001.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="dmesg-002.txt"
|
||||
cat <<EOF > $TMPDIR/expected
|
||||
AACRAID
|
||||
EOF
|
||||
parse_raid_controller_dmesg samples/dmesg-002.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="dmesg-003.txt"
|
||||
cat <<EOF > $TMPDIR/expected
|
||||
LSI Logic MegaRAID SAS
|
||||
EOF
|
||||
parse_raid_controller_dmesg samples/dmesg-003.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
||||
|
||||
TEST_NAME="dmesg-004.txt"
|
||||
cat <<EOF > $TMPDIR/expected
|
||||
AACRAID
|
||||
EOF
|
||||
parse_raid_controller_dmesg samples/dmesg-004.txt > $TMPDIR/got
|
||||
no_diff $TMPDIR/got $TMPDIR/expected
|
Reference in New Issue
Block a user