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>
This commit is contained in:
Fabien Lahoudere
2019-03-19 11:46:49 +01:00
committed by Bjorn Andersson
parent 4523c42196
commit d3ac0bc9be
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
$(pwd)/helpers/bootrr-generic-tests
for TEST in $(tr "\0" "\n" < /proc/device-tree/compatible); do
if [ -x "/usr/bin/${TEST}" ]; then
/usr/bin/${TEST}

4
helpers/bootrr-generic-tests Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
assert_file_is_empty deferred-probe-empty /sys/kernel/debug/devices_deferred