summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2005-06-24allow rules to be compiled to one binary fileKay Sievers
All the rule files can be compiled into a single file, which can be mapped into the udev process to avoid parsing the rules with every event. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-20prepare for module loading rules and add MODALIAS keyKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-08udevd: allow starting of udevd with stopped exec-queueKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: clear lists if a new value is assignedKay Sievers
Former values are cleared if SYMLINK=<value> is used. To add a value SYMLINK+=<value> is now needed. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: move dev.d/ handling to external helperKay Sievers
Modern rules are expected to call notification and postprocessing with the RUN key. For compatibility the current behavior can be emulated with an external helper. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: allow final assignments :=Kay Sievers
The use of KEY:=<value> will make the key unchangeable by later rules. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-05-18remove detach_state files from the sysfs test tree.Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10Update permissions on test scripts so they will run properly now.Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10hopefully fix up the symlinks in the test directoryGreg KH
Thanks to Kay for pointing this out. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-09[PATCH] Writing udev rules docs updateDaniel Drake
Here's a long overdue update to the udev rules docs, based on lots of user feedback from the last few months. Mostly updates to keep up with the new udev features, some clarifications and wording improvements. I added a section on rules for palm pilots due to the excessive amount of mail I get about them. I removed the nvidia stuff because it's out of date. Added another section about debugging using logs and udevtest. Removed the thanks list because I haven't been updating it and there are too many people to name now, sorry..!
2005-05-05Added symlinks thanks to Kay's script and git hacking.Greg KH
Now the tests should work again...
2005-04-26[PATCH] fix stupid all_partitions bugtklauser@access.unizh.ch
> On Mon, 2005-04-11 at 14:55 +0200, Norbert Preining wrote: > > On Mon, 11 Apr 2005, Kay Sievers wrote: > > > > brw-rw---- 1 root root 8, 0 2005-04-10 14:58 /dev/sdcard > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard1 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard2 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard3 > > > > > > This looks broken. > > > > Good to hear. Yeah, I guess it's broken. In create_node() in udev_add.c there is always added 1 to the minor number, thus the error. The attached patch should fix this.
2005-04-26[PATCH] add test for make -j4 to build-checkkay.sievers@vrfy.org
2005-04-26[PATCH] udev-test.pl: add test for DEVNAME export to RUN environmentkay.sievers@vrfy.org
2005-04-26[PATCH] add RUN key to be able to run rule based notificationkay.sievers@vrfy.org
SUBSYSTEM=="block", RUN="/sbin/program" will execute the program only for block device events. ACTION="remove", SUBSYSTEM=="block", RUN"/sbin/program" will execute the program, if a block device is removed.
2005-04-26[PATCH] allow to match against empty key valueskay.sievers@vrfy.org
2005-04-26[PATCH] read %s{}-sysfs values at any device in the chainkay.sievers@vrfy.org
2005-04-26[PATCH] remove untrusted chars read from sysfs-values or returned by PROGRAMkay.sievers@vrfy.org
Better remove characters that are useless in a device node name. It may be a security risk to pass any character read from e.g. a sysfs attribute to a shell script we execute later. Prevent the modification of the libsysfs attribute value cache. Clear PROGRAM result if the execution encountered an error.
2005-04-26[PATCH] test-suite: remove UDEV_TEST, it's not needed anymorekay.sievers@vrfy.org
2005-04-26[PATCH] udev-test.pl: use more common user/group nameskay.sievers@vrfy.org
2005-04-26[PATCH] udev-test.pl: add a test where the group cannot be found in /etc/passwdkay.sievers@vrfy.org
2005-04-26[PATCH] udev-test.pl: add check for textual uid/gidkay.sievers@vrfy.org
2005-04-26[PATCH] add ENV{} key to match agains environment variableskay.sievers@vrfy.org
2005-04-26[PATCH] add a test and simplify debug statementkay.sievers@vrfy.org
2005-04-26[PATCH] support =, ==, !=, += for the key match and assignmentkay.sievers@vrfy.org
2005-04-26[PATCH] add OPTION="last_rule" to skip any later rulekay.sievers@vrfy.org
2005-04-26[PATCH] remove PLACE key matchkay.sievers@vrfy.org
ID should do the same, cause we walk up the chain of devices on the physical device and can match for the name of every device there with the ID key.
2005-04-26[PATCH] udev-test.pl: remove useless testskay.sievers@vrfy.org
2005-04-26[PATCH] namedev: skip backslashes only if followed by newlinekay.sievers@vrfy.org
Fix from: Hannes Reinecke <hare@suse.de> namedev_parse is a bit overzealous when in comes to handling backspaces; it always eats up backspaces regardless of anything beyond that. This means it is impossible to enter '\t' in a rule. Quite a bit of fun when you're trying to write regexps.
2005-04-26[PATCH] remove the device node only if the major/minor number matcheskay.sievers@vrfy.org
2005-04-26[PATCH] introduce OPTIONS=ignore_device, ignore_remove, all_partitions" keykay.sievers@vrfy.org
Here we move all possible options into a own key to make it possible to have options-only rules. The options on the NAME key are removed from the man page and will be removed from a future version of udev. For ignore rules, OPTIONS="ignore" should be used. The rule: SUBSYSTEM="block", SYSFS{removable}="1", OPTIONS="all_partitions" will create all partitions for a block device which is known to have removable media (a check for cdrom drives would be needed too).
2005-04-26[PATCH] allow simple-build-check.sh to go faster if MAKEOPTS is setgregkh@suse.de
This lets my multiprocessor boxes do the testing quicker...
2005-04-26[PATCH] fix test for temporary nodespatmans@us.ibm.com
2005-04-26[PATCH] fix special file mode mask for temporary device nodekay.sievers@vrfy.org
2005-04-26[PATCH] udevstart: simplify "dev" file searchingkay.sievers@vrfy.org
Just stat() the "dev" file in the device directory instead of opening the directory and iterating over all entries. Make udevstart work with the settings in with udev.conf so we can run a test program. Add a test for udevstart. Remove changelog stuff from code. We should never start with this silly thing.
2005-04-26[PATCH] add %P modifier to query the node name of the parent devicekay.sievers@vrfy.org
Events for partition devies may want to read the main block device name to compose it's own name or read a disklabel from the main device. SUBSYSTEM="block", KERNEL="*[1-9]", NAME="%P-p%n" will append the partition number to the name of the main block device.
2005-04-26[PATCH] provide temporary device node for callouts to access the devicekay.sievers@vrfy.org
%N will create a temporary node for a callout a be sustituted with the name of the node.
2005-04-26[PATCH] simple_build_check: make it possible to pass KERNEL_DIRkay.sievers@vrfy.org
2005-04-26[PATCH] remove default_* permissions from udev.conf filekay.sievers@vrfy.org
With the "permissions only rules" we can just place: MODE="0660", OWNER="root", GROUP="root" at the beginning of the rules file and get exactly the same behavior. If no values are given the compiled-in defaults are used.
2005-04-26[PATCH] update Fedora config files and add some more testskay.sievers@vrfy.org
2005-04-26[PATCH] allow permissions only ruleskay.sievers@vrfy.org
On Mon, 2004-12-20 at 15:03 +0100, Marco d'Itri wrote: > +# all block devices > > +SUBSYSTEM="block", NAME="%k", GROUP="disk" > > + > NAME="%k" here and in similar rules does not add any new information, > what about making it optional, like it is for SYMLINK-only rules?
2005-04-26[PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk ↵kay.sievers@vrfy.org
permissions
2005-04-26[PATCH] allow multiline rules by backslash at the end of the linekay.sievers@vrfy.org
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > > On Dec 19, Kay Sievers <kay.sievers@vrfy.org> wrote: > > > (Feature request: would it be possible to extend the rules files parser > > to support continuation lines? I'd like it to consider lines starting > > with white space as part of the previous line.) > > How about the usual backslash at the end of the line. Here is a simple > patch.
2005-04-26[PATCH] simplify rules file by setting default mode to 0660kay.sievers@vrfy.org
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > It may be better to use default_mode="0660", I do not think that there > are any mode 600 devices. This would allow setting only the group for > most of them.
2005-04-26[PATCH] I broke the extras/ again. Add simple build test script now.kay.sievers@vrfy.org
2005-04-26[PATCH] complete removal of explicit udev permissions config filekay.sievers@vrfy.org
2005-04-26bleah, more merge fixes...Greg KH
2005-04-26[PATCH] udevd-test.pl: remove wrong date calculationkay.sievers@vrfy.org
A hour wrap during the test run does not work :) Just remove all the useless date conversions as we are only interested in the seconds it takes to process. [root@pim udevd-test]# ./udevd-test.pl 9 ... device: /class/tty/console, action: remove forking udev time: Sat Dec 11 18:59:57 2004 the delay time is: 3 s device: /class/tty/ptmx, action: remove forking udev time: Sat Dec 11 19:00:07 2004 the delay time is: 4013 s the delay time is: 4013 udevd doesn't act properly.
2005-04-26[PATCH] delete a bunch of files no longer needed.greg@kroah.com
Thanks to Kay for pointing it out.
2005-04-26[PATCH] fix udev-test/udev-test.pl to work with againkay.sievers@vrfy.org