mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
test: add keventd device manager test
The unified keventd has no automated coverage, only the devmon fallback is exercised by the test suite. Network interfaces are the one device class an unprivileged test can hotplug: the sandbox has its own network namespace, so 'ip link add' makes the kernel emit genuine uevents. Verify keventd readiness, <class/net/IFNAME> driving a service -- and <dev/IFNAME> NOT asserted, interfaces are not device nodes -- libudev-compatible n<ifindex> keying in /run/udev/data, conditions surviving initctl reload, and cleanup on interface remove. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -49,6 +49,7 @@ EXTRA_DIST += failing-sysv.sh
|
||||
EXTRA_DIST += svc-env.sh
|
||||
EXTRA_DIST += global-envs.sh
|
||||
EXTRA_DIST += initctl-status-subset.sh
|
||||
EXTRA_DIST += keventd.sh
|
||||
EXTRA_DIST += notify.sh
|
||||
EXTRA_DIST += pidfile.sh
|
||||
EXTRA_DIST += stale-pidfile.sh
|
||||
@@ -112,6 +113,9 @@ TESTS += failing-sysv.sh
|
||||
TESTS += svc-env.sh
|
||||
TESTS += global-envs.sh
|
||||
TESTS += initctl-status-subset.sh
|
||||
if KEVENTD
|
||||
TESTS += keventd.sh
|
||||
endif
|
||||
TESTS += notify.sh
|
||||
TESTS += pidfile.sh
|
||||
TESTS += stale-pidfile.sh
|
||||
|
||||
Reference in New Issue
Block a user