1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
Commit Graph

273 Commits

Author SHA1 Message Date
Kay Sievers
22dde8d712 fix debug message 2012-01-10 02:06:36 +01:00
Kay Sievers
912541b024 tabs are as useful as a hole in the head 2012-01-10 01:34:15 +01:00
Kay Sievers
ebda27438b add test/src to .gitignore 2012-01-09 23:47:00 +01:00
Kay Sievers
d914e44509 replace unpacked sysfs test tree 'test/sys/' with packed tarball 2012-01-06 16:13:13 +01:00
Kay Sievers
ad29a9f14f merge udev/, libudev/, systemd/ files in src/; move extras/ to src/ 2012-01-06 05:07:10 +01:00
Kay Sievers
220893b3cb remove mknod() logic and rely on 'devtmpfs' 2012-01-01 04:21:15 +01:00
Kay Sievers
dd8a93e0d8 make: introduce --with-rootprefix= 2011-12-25 20:41:52 +01:00
Kay Sievers
e216e514cf build argv[] for builtin commands 2011-12-23 02:02:44 +01:00
Kay Sievers
12a362be5c use libexecdir, bindir, sbindir, switch to /usr/lib/udev in documentation 2011-12-05 17:23:56 +01:00
Kay Sievers
289a1821a4 remove 'udevadm trigger --type=failed' and SYSFS, ID, BUS keys 2011-10-06 00:45:06 +02:00
Kay Sievers
d7867b3183 implement path_id, usb_id, input_id as built-in command 2011-08-05 02:00:30 +02:00
Kay Sievers
be903bf9c4 rule-syntax-check.py: use print() 2011-05-31 02:18:33 +02:00
Kay Sievers
3cf1a8e36e libudev: device - use DEVMODE from kernel as the default mode 2011-05-16 22:04:02 +02:00
Kay Sievers
4ec9c3e797 use /run/udev/ if possible and fall back to /dev/.udev/ 2011-03-23 02:31:09 +01:00
Kay Sievers
14996e80d4 udevd: write full database file for (unsupported) renamed device nodes 2010-12-14 02:30:36 +01:00
Martin Pitt
b2ad12eb02 Add automatic rules syntax check
Add test/rule-syntax-check.py, a script for checking the syntax of all udev
rules files passed as command line arguments.

Add a wrapper test/rules-test.sh which calls rule-syntax-check.py on all udev
rules that we ship, but does nothing if Python is not available. Integrate this
into make check/distcheck.
2010-09-21 12:45:52 +02:00
Kay Sievers
f2291cd07f fix tests and allow MODE=000 2010-05-20 14:51:18 +02:00
Kay Sievers
75cb1ac51e warn when renaming kernel-provided nodes instead of adding symlinks 2010-05-05 11:39:25 +02:00
Kay Sievers
a89d342dfb remove "ignore_remove" option 2010-04-13 12:45:38 +02:00
Kay Sievers
1f084fe581 remove "all_partitions" option
We can not predict the major/minor of non-existing devices:
  $ grep . /sys/class/block/sd*/dev
  /sys/class/block/sda1/dev:259:524288
  /sys/class/block/sda2/dev:259:262144
  /sys/class/block/sda3/dev:259:786432
  /sys/class/block/sda4/dev:259:131072
  /sys/class/block/sda/dev:259:0
  /sys/class/block/sdb/dev:259:655360
  /sys/class/block/sdc/dev:259:393216

If this functionality is still needed for some broken hardware, it needs to be
solved with a tool not part of the udev package. Because such option is unreliable
and unsafe to use.
2010-04-13 08:52:48 +02:00
Kay Sievers
5754e74c08 update tests 2010-01-27 09:30:48 +01:00
Kay Sievers
f49a6b223e udev-test.pl: catch-up with recent changes 2009-11-16 23:48:58 +01:00
Kay Sievers
9dae0e89b9 test: catch possible bug in GOTO resolving 2009-09-07 12:13:49 +02:00
Kay Sievers
2ffc9cc191 change database file names
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-19 20:49:49 +02:00
Diego Elio 'Flameeyes' Pettenò
102831867c Fix another relative path for the new working directory. 2009-08-07 19:15:31 +02:00
Diego Elio 'Flameeyes' Pettenò
405e606f86 Replace the custom test-run target with the standard make check.
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-08-07 19:15:28 +02:00
Benjamin Gilbert
bec7e07acc test: check string substitutions in OWNER and GROUP
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-22 20:54:46 +02:00
Kay Sievers
065db05221 use more efficient string copying 2009-05-20 17:57:52 +02:00
Kay Sievers
a0ee5a05bb remove format char string truncation syntax 2009-05-19 12:56:17 +02:00
Kay Sievers
0c37798916 fix possible endless loop for GOTO to non-existent LABEL
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
2009-05-13 18:01:32 +02:00
Kay Sievers
a402404fb2 test: add test for empty and non-existent ATTR 2009-02-05 12:40:15 +01:00
Kay Sievers
647f7c49e8 fix NAME="" logic
Reported-By: Soh Kam Yung <sohkamyung@gmail.com>
2009-01-30 03:53:09 +01:00
Kay Sievers
bcf44d5576 string index - split nodes and childs to allow and unlimited number of childs 2008-11-12 05:50:05 +01:00
Kay Sievers
427e20b261 libudev: device - allocate envp array only once 2008-10-26 14:31:46 +01:00
Kay Sievers
c6243a414e test: add RUN+="socket: ..." to a test to run monitor code 2008-10-26 04:35:32 +01:00
Kay Sievers
dc4c7e463d fix $attr{[<subsystem>/<sysname>]<attribute>} substitution 2008-10-26 02:48:14 +01:00
Kay Sievers
91a75e4ad4 match KEY="A|B" without temporary string copy 2008-10-25 03:00:03 +02:00
Kay Sievers
6880b25d40 replace in-memory rules array with match/action token list
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-23 00:13:59 +02:00
Kay Sievers
d960ad1546 test: fix a few unintentially wrongly written rules which cause parse errors 2008-10-17 13:54:50 +02:00
Kay Sievers
a1af6b0401 test: move global ENV{ENV_KEY_TEST}="test" to local rule 2008-10-14 19:55:57 +02:00
Kay Sievers
fb780a48e6 delete simple-build-check.sh 2008-10-14 19:55:22 +02:00
Kay Sievers
5c0f595d91 test: replace last reference of "/class/*" devpath 2008-09-29 05:18:23 +02:00
Kay Sievers
f2041f0116 test: add missing pci directory because of .gitignore *.7 2008-09-29 05:01:12 +02:00
Kay Sievers
c7fcba1bf4 test: replace ancient sysfs tree with recent one 2008-09-29 04:12:44 +02:00
Kay Sievers
438d4c3cd4 libudev: enumerate - split new() and scan() 2008-09-29 02:00:17 +02:00
Alan Jenkins
034b37c83f udev-test.pl: set non-zero exitcode if tests fail 2008-09-16 10:03:42 -07:00
Kay Sievers
37a123a9bc udev-test.pl: set udev_log="err" 2008-09-08 21:50:17 +02:00
Kay Sievers
e149748850 udev-test.pl: remove left-over comment from --valgrind option 2008-09-03 22:00:55 +02:00
Kay Sievers
e08109cbc8 udev-test.pl: add --valgrind option 2008-09-01 16:20:06 +02:00
Kay Sievers
01618658fd use autotools 2008-07-30 01:45:23 +02:00