Files
bootrr/helpers/bootrr-auto
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

12 lines
244 B
Bash
Executable File

#!/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}
elif [ -x "$(pwd)/boards/${TEST}" ]; then
$(pwd)/boards/${TEST}
fi
done