summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-11-19 00:39:43 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:06:24 -0700
commit1ac5204774c4080d16f308ac3077db0dae8d221c (patch)
tree3beab9c579a9559d028ee52bfb9a34f852efdc37 /test
parenta43180955a49a6838f7ce564db3cc1d10f36b8fb (diff)
[PATCH] add remove actions to the test scripts
Diffstat (limited to 'test')
-rw-r--r--test/label_test13
-rw-r--r--test/replace_test7
-rw-r--r--test/topo_test12
-rw-r--r--test/topo_test.config2
4 files changed, 33 insertions, 1 deletions
diff --git a/test/label_test b/test/label_test
index faa516fdce..0bf89226cb 100644
--- a/test/label_test
+++ b/test/label_test
@@ -12,9 +12,22 @@ 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/replace_test b/test/replace_test
index 3aa8d5a8c9..0caa4dfb3d 100644
--- a/test/replace_test
+++ b/test/replace_test
@@ -12,3 +12,10 @@ export DEVPATH=class/tty/ttyUSB0
export ACTION=add
../udev tty
+ls udev
+
+export ACTION=remove
+../udev tty
+ls udev
+
+
diff --git a/test/topo_test b/test/topo_test
index 5a557e909d..2a19c8b5f8 100644
--- a/test/topo_test
+++ b/test/topo_test
@@ -12,9 +12,21 @@ 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/topo_test.config b/test/topo_test.config
index d7ae92b080..72f03ee0b2 100644
--- a/test/topo_test.config
+++ b/test/topo_test.config
@@ -1,3 +1,3 @@
# TOPO test
-TOPOLOGY, BUS="scsi", place="0:0:0:0", NAME="first_disk"
+TOPOLOGY, BUS="scsi", place="0:0:0:0", NAME="first_disk%n"