Files
percona-toolkit/t/pt-summary/parse_raid_controller_dmesg.sh
Daniel Nichter 4d462bbbdd Fix Bash tests.
2012-02-02 10:03:48 -07:00

33 lines
739 B
Bash

#!/bin/bash
TESTS=4
TMPDIR=$TEST_TMPDIR
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