kselftest: dt: Ignore nodes that have ancestors disabledFilter out nodes that have one of its ancestors disabled as they aren'texpected to probe.This removes the following false-positive failure
kselftest: dt: Ignore nodes that have ancestors disabledFilter out nodes that have one of its ancestors disabled as they aren'texpected to probe.This removes the following false-positive failures on thesc7180-trogdor-lazor-limozeen-nots-r5 platform:/soc@0/geniqup@8c0000/i2c@894000/proximity@28/soc@0/geniqup@ac0000/spi@a90000/ec@0/soc@0/remoteproc@62400000/glink-edge/apr/soc@0/remoteproc@62400000/glink-edge/apr/service@3/soc@0/remoteproc@62400000/glink-edge/apr/service@4/soc@0/remoteproc@62400000/glink-edge/apr/service@4/clock-controller/soc@0/remoteproc@62400000/glink-edge/apr/service@4/dais/soc@0/remoteproc@62400000/glink-edge/apr/service@7/soc@0/remoteproc@62400000/glink-edge/apr/service@7/dais/soc@0/remoteproc@62400000/glink-edge/apr/service@8/soc@0/remoteproc@62400000/glink-edge/apr/service@8/routing/soc@0/remoteproc@62400000/glink-edge/fastrpc/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@3/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@4/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@5/soc@0/spmi@c440000/pmic@0/pon@800/pwrkeyFixes: 14571ab1ad21 ("kselftest: Add new test for detecting unprobed Devicetree devices")Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Link: https://lore.kernel.org/r/20240729-dt-kselftest-parent-disabled-v2-1-d7a001c4930d@collabora.comSigned-off-by: Rob Herring (Arm) <robh@kernel.org>
show more ...
Merge tag 'linux_kselftest-next-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftestPull kselftest update from Shuah Khan: - livepatch restructuring to move the module
Merge tag 'linux_kselftest-next-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftestPull kselftest update from Shuah Khan: - livepatch restructuring to move the module out of lib to be built as a out-of-tree modules during kselftest build. This makes it easier change, debug and rebuild the tests by running make on the selftests/livepatch directory, which is not currently possible since the modules on lib/livepatch are build and installed using the main makefile modules target. - livepatch restructuring fixes for problems found by kernel test robot. The change skips the test if kernel-devel isn't installed (default value of KDIR), or if KDIR variable passed doesn't exists. - resctrl test restructuring and new non-contiguous CBMs CAT test - new ktap_helpers to print diagnostic messages, pass/fail tests based on exit code, abort test, and finish the test. - a new test verify power supply properties. - a new ftrace to exercise function tracer across cpu hotplug. - timeout increase for mqueue test to allow the test to run on i3.metal AWS instances. - minor spelling corrections in several tests. - missing gitignore files and changes to existing gitignore files.* tag 'linux_kselftest-next-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (57 commits) kselftest: Add basic test for probing the rust sample modules selftests: lib.mk: Do not process TEST_GEN_MODS_DIR selftests: livepatch: Avoid running the tests if kernel-devel is missing selftests: livepatch: Add initial .gitignore selftests/resctrl: Add non-contiguous CBMs CAT test selftests/resctrl: Add resource_info_file_exists() selftests/resctrl: Split validate_resctrl_feature_request() selftests/resctrl: Add a helper for the non-contiguous test selftests/resctrl: Add test groups and name L3 CAT test L3_CAT selftests: sched: Fix spelling mistake "hiearchy" -> "hierarchy" selftests/mqueue: Set timeout to 180 seconds selftests/ftrace: Add test to exercize function tracer across cpu hotplug selftest: ftrace: fix minor typo in log selftests: thermal: intel: workload_hint: add missing gitignore selftests: thermal: intel: power_floor: add missing gitignore selftests: uevent: add missing gitignore selftests: Add test to verify power supply properties selftests: ktap_helpers: Add a helper to finish the test selftests: ktap_helpers: Add a helper to abort the test selftests: ktap_helpers: Add helper to pass/fail test based on exit code ...
selftests: Move KTAP bash helpers to selftests common folderMove bash helpers for outputting in KTAP format to the common selftestsfolder. This allows kselftests other than the dt one to source th
selftests: Move KTAP bash helpers to selftests common folderMove bash helpers for outputting in KTAP format to the common selftestsfolder. This allows kselftests other than the dt one to source the fileand make use of the helper functions.Define pass, fail and skip codes in the same file too.Signed-off-by: Laura Nao <laura.nao@collabora.com>Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Acked-by: Rob Herring <robh@kernel.org>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
kselftest: dt: Stop relying on dirname to improve performanceWhen walking directory trees, instead of looking for specific files andrunning dirname to get the parent folder, traverse all folders a
kselftest: dt: Stop relying on dirname to improve performanceWhen walking directory trees, instead of looking for specific files andrunning dirname to get the parent folder, traverse all folders andignore the ones not containing the desired files. This avoids the needto call dirname inside the loop, which drastically decreases run time:Running locally on a mt8192-asurada-spherion, which reports 160 testcases, has gone from 5.5s to 2.9s, while running remotely with annfsroot has gone from 13.5s to 5.5s.This change has a side-effect, which is that the root DT node nowalso shows in the output, even though it isn't expected to bind to adriver. However there shouldn't be a matching driver for the boardcompatible, so the end result will be just an extra skipped test:ok 1 / # SKIPReported-by: Mark Brown <broonie@kernel.org>Closes: https://lore.kernel.org/all/310391e8-fdf2-4c2f-a680-7744eb685177@sirena.org.ukFixes: 14571ab1ad21 ("kselftest: Add new test for detecting unprobed Devicetree devices")Tested-by: Mark Brown <broonie@kernel.org>Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Link: https://lore.kernel.org/r/20240122-dt-kselftest-dirname-perf-fix-v2-1-f1630532fd38@collabora.comSigned-off-by: Rob Herring <robh@kernel.org>
kselftest: Add new test for detecting unprobed Devicetree devicesIntroduce a new kselftest to detect devices that were declared in theDevicetree, and are expected to be probed by a driver, but wer
kselftest: Add new test for detecting unprobed Devicetree devicesIntroduce a new kselftest to detect devices that were declared in theDevicetree, and are expected to be probed by a driver, but weren't.The test uses two lists: a list of compatibles that can match aDevicetree device to a driver, and a list of compatibles that should beignored. The first is automatically generated by thedt-extract-compatibles script, and is run as part of building this test.The list of compatibles to ignore is a hand-crafted list to capture thefew exceptions of compatibles that are expected to match a driver butnot be bound to it.Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>Link: https://lore.kernel.org/r/20230828211424.2964562-4-nfraprado@collabora.comSigned-off-by: Rob Herring <robh@kernel.org>