Combine and update all pt-summary tests to new format.

This commit is contained in:
Daniel Nichter
2011-08-19 10:46:55 -06:00
parent d50c1699cd
commit 94e6b7a5e8
49 changed files with 1163 additions and 1162 deletions

View 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