The helpers for verifiying that cpufreq and cpuidle are enabled
use let which is a bash extension and not supported in standard
POSIX shell, including with busybox. Convert to use expr which
is standard.
Signed-off-by: Mark Brown <broonie@kernel.org>
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>
There are a number of devices on the RK3288 which are usable on
and enabled for any system using the SoC, due to either being
essential for system operation or entirely internal to the SoC
(like the crypto engine). Move these to a separate script
identified by the compatible for the SoC so that we get coverage
of these things on any system which uses this SoC.
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>
There is nothing bash-specific in bootrr-auto, we can safely use /bin/sh
instead. Verified with dash and with busybox sh.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Use common test_report_exit implementation from the bootrr rather than
hand-coding lava-only version.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
There is no need to have timeout as a function in the bootrr file. Move
it to a separate helper file as we have for the rest of helpers.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>