Commit Graph

49 Commits

Author SHA1 Message Date
Fabien Lahoudere
d3ac0bc9be helpers: Add script to perform generic tests
Some tests does not depend on a board. We can consider these tests
as generic and bootrr-generic-tests is added to contain them.
This scripts is started at the begining of bootrr-auto before boards
specific tests.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-05-08 09:00:50 -07:00
Enric Balletbo i Serra
4523c42196 helpers: Add an script to check if a file is empty
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>
2019-05-08 09:00:50 -07:00
Enric Balletbo i Serra
bdec57ba38 helpers: Add a helper script to run the tests for device-tree based devices
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>
2019-05-08 09:00:50 -07:00
Enric Balletbo i Serra
d39031aad4 boards: Add Google Veyron Jaq test script
Add some test cases for the Chromebooks based on Google Veyron Jaq models.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-27 10:37:42 -08:00
Enric Balletbo i Serra
736f42f6e8 boards: Add Samsung Chromebook 2 (Peach Pi) test script
Add some test cases for the Chromebooks based on Google Peach Pi models.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-27 10:37:42 -08:00
Vinod Koul
99c8e7a517 README: Add readme with local testing details
I keep  forgetting how to run the tests locally from git or tarball, so
create the README file with details

Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-02-27 09:31:33 -08:00
Vinod Koul
6596c94ebf boards: enable qcs404 tests and correct some tests
Enable bunch of tests for QCS404 which are relevant and also fix some
of the tests for QCS404 to use correct drivers/devices

Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-02-27 09:31:33 -08:00
Enric Balletbo i Serra
49bf91b600 Makefile: Match board name with compatible string and install sysfs_attr helper
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>
2019-02-06 10:41:31 -08:00
Nicolas Dechesne
1c42025152 Makefile: fixes board name for google,kevin
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>
2019-02-05 22:26:37 -08:00
Enric Balletbo i Serra
c5d93c41f8 boards: Add Samsung Chromebook Plus test script
Add some test cases for kevin, now that it is being boot tested.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-04 14:51:21 -08:00
Enric Balletbo i Serra
cc048442a7 helpers: Add assert_sysfs_attr_present helper
This helper is useful to check if a sysfs attribute is present.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
2019-02-04 14:51:21 -08:00
Amit Kucheria
29a357b718 boards: Add new qcs404-evb board
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>
2019-01-16 23:13:02 -08:00
Amit Kucheria
b0f4e00f52 boards: db410c/db820c: Fix addresses
The DT changes for SROT/TM register split in kernel caused changes in
the unit address for tsens. Make corresponding changes to bootrr.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-09-05 23:55:15 -07:00
Amit Kucheria
5e93ad9f8a boards: standardize string printed for tsens tests
Different boards were using slighly different string names. Fix it and
make it easier to search.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-09-05 23:55:15 -07:00
Amit Kucheria
2a0a7ab0c7 db410c/db820c: Check thermal zone characteristics
We currently check if the thermal zone is in enabled state and if the
temperature is between a certain range

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-08-22 23:32:49 -07:00
Amit Kucheria
7e731b76bd sdm845: Check thermal zone characteristics
We currently check if the thermal zone is in enabled state and if the
temperature is between a certain range

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-07-26 06:06:57 -07:00
Amit Kucheria
a2cc1741bb helpers: Add value_in_range helper
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>
2018-07-26 06:06:57 -07:00
Amit Kucheria
4ea31c5af8 helpers: Add state_check helper
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>
2018-07-26 06:06:57 -07:00
Amit Kucheria
9d3b157cfd boards: sdm845: Add tsens test
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
2018-07-26 06:06:57 -07:00
Vinod Koul
dce6ed227b boards: sdm845: Fixup test for prng
prng used KBUILD_MODNAME, thus apperas as msm_rng so fix the name in
tests

Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-06-18 12:36:08 -07:00
Vinod Koul
3f542a8323 boards: msm8998: Fixup test for prng
prng used KBUILD_MODNAME, thus apperas as msm_rng so fix the name in
tests

Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-06-18 12:36:08 -07:00
Vinod Koul
99f44ac5f7 boards: db410: Test for prng
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-06-18 12:36:08 -07:00
Vinod Koul
8263d9765b boards: db820c: Test for prng
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-06-18 12:36:08 -07:00
Nicolas Dechesne
8ed17b019a helpers/*: use '.' not 'source'
The 'source' command is a bashism, and not in the POSIX standard. So
it fails when using POSIX compliant shell such as Dash which is the
default on Debian. Using the '.' command is equivalent to using
source, and is POSIX compliant.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-06-18 12:33:27 -07:00
Nicolas Dechesne
8db9a55c02 bootrr: emulate lava-test-case command
In case lava-test-command is not available, emulate what it is
supposed to do. This is a convenient hack to make it easier to run
bootrr locally for debug/testing purpose.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-06-18 12:33:27 -07:00