]> err.no Git - systemd/commitdiff
[PATCH] add replace test
authorgreg@kroah.com <greg@kroah.com>
Wed, 12 Nov 2003 15:32:29 +0000 (07:32 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:06:23 +0000 (21:06 -0700)
test/replace_test [new file with mode: 0644]
test/replace_test.config [new file with mode: 0644]

diff --git a/test/replace_test b/test/replace_test
new file mode 100644 (file)
index 0000000..3aa8d5a
--- /dev/null
@@ -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
diff --git a/test/replace_test.config b/test/replace_test.config
new file mode 100644 (file)
index 0000000..8fbfd18
--- /dev/null
@@ -0,0 +1,3 @@
+# REPLACE test
+REPLACE, KERNEL="ttyUSB0", NAME="visor"
+