bootrr requires a description of each board it runs on to provide
detection of the actual devices and system support that is
present. Currently these descriptions must be written by hand
but we can ease the process of creating them by providing a tool
which examines the running system and outputs a set of bootrr
assertions which would pass on the system.
The script will require post processing by users, the generate
rule names won't be good, hotplugged devices will be included and
any spaces in device or driver names will cause confusion, but it
can provide a usefuls starting point.
Signed-off-by: Mark Brown <broonie@kernel.org>
Install all the tests into separe dir (${prefix}/libexec/bootrr).
Provide a generic script to run all the tests on the target board.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Remove lists of boards and helpers, this is too error-prone. For example
the list of helpers missed bootrr-generic-tests.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Create a SoC file for Qualcomm sm8150 part since there
can be multiple boards which use the same SoC, for example
sm8150-mtp and sa8155p-adp boards.
The respective board files will include this soc file instead.
Via this patch make sure that sm8150-mtp board file includes
the qcom,soc-sm8150 file.
Subsequent patch will implement a similar mechanism for the
sa8155p-adp board.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Add helper files to check if cpufreq and cpuidle are enabled. Also
add the test support for db845c.
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
This test covers check for WCD and HDMI audio driver/devices and check
/proc/asound to ensure soundcard has devices attached.
Common assert_soundcard_present is implemented to check /proc/asound for
soundcards a devices associated with it. In this case 2 Playbacks and 1
Capture device.
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
It is convenient to deliver the bootrr as a cpio archive which can be
appended to an initramfs image.
The output cpio filename can be overriding the CPIONAME variable, it
is set to 'bootrr' by default.
Also use a default value for DESTDIR, so that "make cpio" just works.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
We might be interested on check if a file is empty or not. One use case
is check if the /sys/kernel/debug/devices_deferred file is not empty, in
such case mean that a driver is deferred for some reason so probe didn't
succeed.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Based on the compatible string you can identify which device model is running,
so add a helper script that allows you to detect which test suite should
be run.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
There is an script that parses /proc/device-tree/compatible and if
matches with the name of the board script runs the test suite. The
Samsung Chromebook Plus reports the following compatibles:
google,kevin-rev15 google,kevin-rev14 google,kevin-rev13
google,kevin-rev12 google,kevin-rev11 google,kevin-rev10
google,kevin-rev9 google,kevin-rev8 google,kevin-rev7
google,kevin-rev6 google,kevin google,gru rockchip,rk3399
Being google,kevin the more generict this patch renames the board test
script to this name.
The patch also adds the assert_sysfs_attr_present helper script to the
Makefile install target because it is used by the google,kevin test
suite.
Fixes: 1c42025152 ("Makefile: fixes board name for google,kevin")
Fixes: c5d93c41f8 ("boards: Add Samsung Chromebook Plus test script")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Fixes c5d93c41f8 (boards: Add Samsung Chromebook Plus test script),
which wouldn't compile.
make: *** No rule to make target 'boards/google,kevin', needed by '/tmp/bin/google,kevin'. Stop.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
This is a copy of the qcom,msm8916-sbc with everything commented out for
now except the thermal bits that I know about.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This helper is useful to check if a value is within a given range e.g.
temperature is between 30 and 40 degrees.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This helper is useful to check the state of a sysfs variable, e.g. enabled,
disabled, running, offline, etc.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>