summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2005-08-16ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environmentKay Sievers
This can be uses to export stuff to the event environment or to carry a state from one rule to another, like enabling/disabling later rules conditionally. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11added cdrom_id to the build checkGreg KH
2005-08-09add firmware_helper to load firmwareKay Sievers
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-07-19create_floppy_devices: add tool to create floppy nodes based on sysfs infoHannes Reinecke
2005-07-16allow rules to have labels and skip to next labelKay Sievers
This will allow us to have whole blocks of rules to skip conditionally. The following section creates the node "yes": GOTO="TEST" NAME="no" NAME="no2", LABEL="NO" NAME="yes", LABEL="TEST" NAME="no3"
2005-07-13dasd_id: add s390 disk-label proberHannes Reinecke
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-12IMPORT: add {parent} to import the persistent data of the parent deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12allow multiple values to be matched with KEY=="value1|value2"Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix symlink values separated by multiple spacesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix typo in group assignmentKay Sievers
Thanks to: Georgi Georgiev
2005-07-04add usb_id program to generate usb-storage device identifiersKay Sievers
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-06-30prepare RELEASE-NOTESKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25add ata_id to read serial numbers from ATA drivesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT allow to import program returned keys into the envKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT=<file> allow to import a shell-var style config-fileKay Sievers
This allows to source-in a file into the udev environment to have the defined keys available for later processing by udev itself or the forked helper programs. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
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.