summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/udevd_test.sh55
1 files changed, 44 insertions, 11 deletions
diff --git a/test/udevd_test.sh b/test/udevd_test.sh
index 0c7bd431be..94698085ca 100644
--- a/test/udevd_test.sh
+++ b/test/udevd_test.sh
@@ -3,7 +3,12 @@
# kill daemon, first event will start it again
killall udevd
-# connect(123) - disconnect(456) - connect(789) sequence of sda/sdb/sdc
+# 3 x connect/disconnect sequence of sda/sdb/sdc
+
+export SEQNUM=3
+export ACTION=add
+export DEVPATH=/block/sdc
+./udevsend block
export SEQNUM=1
export ACTION=add
@@ -17,36 +22,64 @@ export DEVPATH=/block/sdb
export SEQNUM=4
export ACTION=remove
-export DEVPATH=/block/sda
-./udevsend block
-
-export SEQNUM=3
-export ACTION=add
export DEVPATH=/block/sdc
./udevsend block
-export SEQNUM=6
+export SEQNUM=5
export ACTION=remove
-export DEVPATH=/block/sdc
+export DEVPATH=/block/sdb
./udevsend block
-export SEQNUM=5
-export ACTION=remove
+export SEQNUM=8
+export ACTION=add
export DEVPATH=/block/sdb
./udevsend block
+export SEQNUM=6
+export ACTION=remove
+export DEVPATH=/block/sda
+./udevsend block
+
export SEQNUM=7
export ACTION=add
export DEVPATH=/block/sda
#./udevsend block
+sleep 2
+
export SEQNUM=9
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block
-export SEQNUM=8
+export SEQNUM=11
+export ACTION=remove
+export DEVPATH=/block/sdb
+./udevsend block
+
+export SEQNUM=10
+export ACTION=remove
+export DEVPATH=/block/sdc
+./udevsend block
+
+export SEQNUM=13
+export ACTION=add
+export DEVPATH=/block/sda
+./udevsend block
+
+export SEQNUM=14
export ACTION=add
export DEVPATH=/block/sdb
./udevsend block
+export SEQNUM=15
+export ACTION=add
+export DEVPATH=/block/sdc
+./udevsend block
+
+sleep 2
+
+export SEQNUM=12
+export ACTION=remove
+export DEVPATH=/block/sda
+./udevsend block