chiark / gitweb /
[PATCH] add TOPO regression test.
authorgreg@kroah.com <greg@kroah.com>
Thu, 13 Nov 2003 02:08:40 +0000 (18:08 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:06:23 +0000 (21:06 -0700)
test/topo_test [new file with mode: 0644]
test/topo_test.config [new file with mode: 0644]

diff --git a/test/topo_test b/test/topo_test
new file mode 100644 (file)
index 0000000..5a557e9
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+export UDEV_TEST=yes
+export SYSFS_PATH=$PWD/sys/
+export UDEV_CONFIG_DIR=$PWD/
+export UDEV_ROOT=$PWD/udev/
+export UDEV_DB=udev.tdb
+export UDEV_CONFIG_FILE=topo_test.config
+export UDEV_PERMISSION_FILE=udev.permissions
+
+export ACTION=add
+export DEVPATH=block/sda
+
+../udev block
+
+export DEVPATH=block/sda/sda3
+
+../udev block
+
+
diff --git a/test/topo_test.config b/test/topo_test.config
new file mode 100644 (file)
index 0000000..d7ae92b
--- /dev/null
@@ -0,0 +1,3 @@
+# TOPO test
+TOPOLOGY, BUS="scsi", place="0:0:0:0", NAME="first_disk"
+