summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-04-01 21:51:17 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:14 -0700
commitcfdfda10783b2764de6d22946c5a6159c8caaea3 (patch)
tree59843f562f1a7101ce0559d4547968ad8a7a7aa0
parentce4256bdc5012b9b63abca392bc0ead7ad70d20a (diff)
[PATCH] make a net_test test script using udevtest.
-rw-r--r--test/net_test22
1 files changed, 5 insertions, 17 deletions
diff --git a/test/net_test b/test/net_test
index b99a4acd54..fcc21e1b94 100644
--- a/test/net_test
+++ b/test/net_test
@@ -8,8 +8,7 @@ export SYSFS_PATH=$PWD/sys/
export UDEV_CONFIG_FILE=$PWD/$CONFIG
cat > $RULES << EOF
-BUS="scsi", SYSFS{vendor}="IBM-ESXS", SYSFS{model}="ST336605LW !#", NAME="boot_diskX%n"
-BUS="scsi", SYSFS{vendor}="IBM-ESXS", SYSFS{model}="ST336605LW !#", NAME="boot_disk%n"
+SYSFS{address}="00:e0:00:8d:9f:25", NAME="wireless"
EOF
cat > $CONFIG << EOF
@@ -22,28 +21,17 @@ EOF
mkdir udev
export ACTION=add
-export DEVPATH=block/sda
+export DEVPATH=class/net/eth1
-../udev block
-ls -l udev
-
-export DEVPATH=block/sda/sda3
-
-../udev block
+../udevtest class/net/eth1 net
ls -l udev
export ACTION=remove
-export DEVPATH=block/sda
+export DEVPATH=class/net/eth1
-../udev block
+../udevtest net
ls -l udev
-export DEVPATH=block/sda/sda3
-
-../udev block
-ls -l udev
-
-
rm $RULES
rm $CONFIG
rm -rf udev