chiark / gitweb /
[PATCH] add dumb test for all of the different modifiers.
authorgreg@kroah.com <greg@kroah.com>
Wed, 19 Nov 2003 10:49:29 +0000 (02:49 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:06:25 +0000 (21:06 -0700)
test/modifier_test [new file with mode: 0644]
test/modifier_test.config [new file with mode: 0644]

diff --git a/test/modifier_test b/test/modifier_test
new file mode 100644 (file)
index 0000000..3dcd445
--- /dev/null
@@ -0,0 +1,32 @@
+#!/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=modifier_test.config
+export UDEV_PERMISSION_FILE=udev.permissions
+
+export ACTION=add
+export DEVPATH=block/sda
+
+../udev block
+ls udev
+
+export DEVPATH=block/sda/sda3
+
+../udev block
+ls udev
+
+export ACTION=remove
+export DEVPATH=block/sda
+
+../udev block
+ls udev
+
+export DEVPATH=block/sda/sda3
+
+../udev block
+ls udev
+
diff --git a/test/modifier_test.config b/test/modifier_test.config
new file mode 100644 (file)
index 0000000..f63e02c
--- /dev/null
@@ -0,0 +1,3 @@
+# TOPO test
+TOPOLOGY, BUS="scsi", place="0:0:0:0", NAME="Major:%M:minor:%m:kernelnumber:%n:bus:%b"
+