summaryrefslogtreecommitdiff
path: root/test/udevd_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/udevd_test.sh')
-rw-r--r--test/udevd_test.sh49
1 files changed, 27 insertions, 22 deletions
diff --git a/test/udevd_test.sh b/test/udevd_test.sh
index 013cdb9d6c..0c7bd431be 100644
--- a/test/udevd_test.sh
+++ b/test/udevd_test.sh
@@ -1,47 +1,52 @@
#!/bin/bash
-# reset udevd, expected sequence number and empty queue
-killall -HUP udevd
+# kill daemon, first event will start it again
+killall udevd
-export ACTION=add
-export DEVPATH=/block/sda
+# connect(123) - disconnect(456) - connect(789) sequence of sda/sdb/sdc
export SEQNUM=1
+export ACTION=add
+export DEVPATH=/block/sda
./udevsend block
export SEQNUM=2
-./udevsend block
-
-export SEQNUM=3
-./udevsend block
-
-export SEQNUM=5
+export ACTION=add
+export DEVPATH=/block/sdb
./udevsend block
export SEQNUM=4
+export ACTION=remove
+export DEVPATH=/block/sda
./udevsend block
-export SEQNUM=6
+export SEQNUM=3
+export ACTION=add
+export DEVPATH=/block/sdc
./udevsend block
-export SEQNUM=7
+export SEQNUM=6
+export ACTION=remove
+export DEVPATH=/block/sdc
./udevsend block
-export SEQNUM=10
+export SEQNUM=5
+export ACTION=remove
+export DEVPATH=/block/sdb
./udevsend block
-export SEQNUM=9
-#./udevsend block
-
-export SEQNUM=8
+export SEQNUM=7
+export ACTION=add
+export DEVPATH=/block/sda
#./udevsend block
-export SEQNUM=13
-./udevsend block
-
-export SEQNUM=12
+export SEQNUM=9
+export ACTION=add
+export DEVPATH=/block/sdc
./udevsend block
-export SEQNUM=11
+export SEQNUM=8
+export ACTION=add
+export DEVPATH=/block/sdb
./udevsend block