]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
update test
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 11 Feb 2011 08:24:43 +0000 (08:24 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 11 Feb 2011 08:24:43 +0000 (08:24 +0000)
svn-id: @12141

tests/bug-715930.sh

index a7ab70d8209c4a3769becc3d05fca5ea8c92a5a8..0783ac398a0e3e1619bfa50903fc2c5551b41802 100755 (executable)
@@ -16,7 +16,14 @@ lspci() {
 lspci=lspci
 pcimap=modules.pcimap-2.6.33.4-1
 
-modules=$(find_modules_by_class 0106)
-if [ -z "$modules" ]; then
-       warn "FAIL"
+# our test succeeds if these modules get matched:
+#modules.pcimap-2.6.33.4-1:jmicron              0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0
+#modules.pcimap-2.6.33.4-1:pata_jmicron         0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0
+#modules.pcimap-2.6.33.4-1:ahci                 0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010601 0x00ffffff 0x0
+
+modules=$(find_modules_by_class 0106 | xargs)
+if [ "$modules" != "jmicron pata_jmicron ahci" ]; then
+       warn "FAIL: [$modules]"
+else
+       echo "OK: [$modules]"
 fi
This page took 0.366121 seconds and 4 git commands to generate.