mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-22 05:32:42 +07:00
[PATCH] add replace test
This commit is contained in:
parent
139d41e988
commit
75ff8da8ab
14
test/replace_test
Normal file
14
test/replace_test
Normal 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
3
test/replace_test.config
Normal file
@ -0,0 +1,3 @@
|
||||
# REPLACE test
|
||||
REPLACE, KERNEL="ttyUSB0", NAME="visor"
|
||||
|
Loading…
Reference in New Issue
Block a user