[PATCH] add replace test

This commit is contained in:
greg@kroah.com 2003-11-12 07:32:29 -08:00 committed by Greg KH
parent 139d41e988
commit 75ff8da8ab
2 changed files with 17 additions and 0 deletions

14
test/replace_test Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
export UDEV_TEST=yes
export SYSFS_PATH=$PWD/sys/
export UDEV_CONFIG_DIR=$PWD/
export UDEV_ROOT=$PWD/udev/
export UDEV_DB=udev.tdb
export UDEV_CONFIG_FILE=replace_test.config
export UDEV_PERMISSION_FILE=udev.permissions
export DEVPATH=class/tty/ttyUSB0
export ACTION=add
../udev tty

3
test/replace_test.config Normal file
View File

@ -0,0 +1,3 @@
# REPLACE test
REPLACE, KERNEL="ttyUSB0", NAME="visor"