chiark / gitweb /
add install test to 'make buildtest'
[elogind.git] / test / net_test
old mode 100644 (file)
new mode 100755 (executable)
index b99a4ac..9daf8da
@@ -3,47 +3,33 @@
 RULES=label_test.rules
 CONFIG=label_test.conf
 
-export UDEV_TEST=yes
 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
 udev_root="$PWD/udev/"
-udev_db="$PWD/udev/.udev.tdb"
+udev_db="$PWD/udev/.udevdb"
 udev_rules="$PWD/$RULES"
-udev_permissions="$PWD/udev.permissions"
 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 class/net/eth1 net
 ls -l udev
 
-export DEVPATH=block/sda/sda3
-
-../udev block
-ls -l udev
-
-
 rm $RULES
 rm $CONFIG
 rm -rf udev