summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
AgeCommit message (Collapse)Author
2009-08-19change database file namesKay Sievers
With very deeply nested devices, We can not use a single file name to carry an entire DEVPATH. Use <subsystem>:<sysname> as the database filename, which should also simplify the handling of devices moving around, as these values will not change but still be unique. For the name stack we use the <maj>:<min> now as the filename. > On Tue, Aug 18, 2009 at 09:59:56AM -0400, Ric Wheeler wrote: > The first is that udev grumbles during boot about "file name too long" > like the following: > > Aug 17 06:49:58 megadeth udevd-event[20447]: unable to create db file > '/dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:04.0\x2f0000:17:00.0\x2f0000:18:0a.0\x2f0000:1f:00.0\x2fhost11\x2fport-11:0\x2fexpander-11:0\x2fport-11:0:0\x2fexpander-11:1\x2fport-11:1:0\x2fexpander-11:2\x2fport-11:2:17\x2fexpander-11:3\x2fport-11:3:1\x2fend_device-11:3:1\x2fbsg\x2fend_device-11:3:1': > File name too long
2009-08-07Fix another relative path for the new working directory.Diego Elio 'Flameeyes' Pettenò
2009-08-07Replace the custom test-run target with the standard make check.Diego Elio 'Flameeyes' Pettenò
A little fix is needed for the udev-test.pl script (to be called with the proper path), but this allows for the test binaries to be only built when running the tests themselves.
2009-05-22test: check string substitutions in OWNER and GROUPBenjamin Gilbert
String substitutions in OWNER and GROUP keys were broken in udev 137-142. Explicitly test for this, since such breakage will not manifest in typical rulesets.
2009-05-20use more efficient string copyingKay Sievers
2009-05-19remove format char string truncation syntaxKay Sievers
2009-05-13fix possible endless loop for GOTO to non-existent LABELKay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
2009-02-05test: add test for empty and non-existent ATTRKay Sievers
2009-01-30fix NAME="" logicKay Sievers
Reported-By: Soh Kam Yung <sohkamyung@gmail.com>
2008-11-12string index - split nodes and childs to allow and unlimited number of childsKay Sievers
2008-10-26libudev: device - allocate envp array only onceKay Sievers
2008-10-26test: add RUN+="socket: ..." to a test to run monitor codeKay Sievers
2008-10-26fix $attr{[<subsystem>/<sysname>]<attribute>} substitutionKay Sievers
2008-10-25match KEY="A|B" without temporary string copyKay Sievers
2008-10-23replace in-memory rules array with match/action token listKay Sievers
The in-memory rule array of a common desktop distro install took: 1151088 bytes with the token list: 109232 bytes tokens (6827 * 16 bytes), 71302 bytes buffer
2008-10-17test: fix a few unintentially wrongly written rules which cause parse errorsKay Sievers
2008-10-14test: move global ENV{ENV_KEY_TEST}="test" to local ruleKay Sievers
2008-09-29test: replace last reference of "/class/*" devpathKay Sievers
2008-09-29test: add missing pci directory because of .gitignore *.7Kay Sievers
2008-09-29test: replace ancient sysfs tree with recent oneKay Sievers
2008-09-29libudev: enumerate - split new() and scan()Kay Sievers
2008-09-16udev-test.pl: set non-zero exitcode if tests failAlan Jenkins
2008-09-08udev-test.pl: set udev_log="err"Kay Sievers
2008-09-03udev-test.pl: remove left-over comment from --valgrind optionKay Sievers
2008-09-01udev-test.pl: add --valgrind optionKay Sievers
2008-07-30use autotoolsKay Sievers
2008-07-18move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/Kay Sievers
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
2008-05-19add substitution in MODE= fieldErik van Konijnenburg
Do substitition processing in MODE field, similar to substitution in OWNER, GROUP etc fields. Add test case for normal and overflow behaviour. Document in manpage.
2008-04-18allow setting of MODE="0000"Kay Sievers
2008-03-14extend hack to allow TEST=="*/start"Kay Sievers
2007-08-16accept relative path for TESTKay Sievers
2007-07-25restore behavior of NAME==Kay Sievers
2007-07-16allow SYMLINK== matchKay Sievers
2007-06-03add "[$SUBSYSTEM/$KERNEL]<attribute>" lookupKay Sievers
2007-05-21replace_chars: replace % characterKay Sievers
2007-02-25add test for an attribute which contains an operator charKay Sievers
2006-12-08rename "udev.c" to "test-udev.c" - it is only for testingKay Sievers
2006-09-05let $attr{symlink} return the last element of the pathKay Sievers
Example for /block/sda: SUBSYSTEMS="scsi", ENV{COMMENT}="$attr{driver}" sets COMMENT=sd SUBSYSTEMS="pci", ENV{COMMENT}="$attr{driver}" sets COMMENT=ata_piix
2006-09-05fix ENV{TEST}="Test: $env{TEST}"Kay Sievers
2006-08-20use new key names in test programsKay Sievers
2006-08-20skip rule, if too may keys of the same type are usedKay Sievers
2006-08-19consistent key naming to match only the event device or include all parent ↵Kay Sievers
devices This scheme is more consistent and makes it obvious if a match happens against the event device only, or the full chain of parent devices. The old key names are now: BUS -> SUBSYSTEMS ID -> KERNELS SYSFS -> ATTRS DRIVER -> DRIVERS Match keys for the event device: KERNEL SUBSYSTEM ATTR DRIVER (in a future release, for now the same as DRIVERS) Match keys for all devices along the parent device chain: KERNELS SUBSYSTEMS ATTRS DRIVERS ID, BUS, SYSFS are no longer mentioned in the man page but still work. DRIVER must be converted to DRIVERS to match the new scheme. For now, an error is logged, if DRIVER is used. In a future release, the DRIVER key behaviour will change.
2006-08-13don't report an error on overlong comment linesKay Sievers
2006-07-04remove broken %e enumerationKay Sievers
2006-06-14don't remove symlinks if they are already thereKay Sievers
Consecutive "add" events will not remove and recreate the same symlinks anymore. No longer valid links, like after changing a filesystem label, will still be removed.
2006-04-24allow NAME=="value" to check for already assigned valueKay Sievers
2006-01-26don't add $SUBSYSTEM automatically as $1 to programsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-16fix BUS, ID, $id usageKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16remove "udev_db" option from config fileKay Sievers
All udev state is kept in /$udev_root/.udev/ now. No option to configure that anymore, it will always be there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>