Skip to content
Snippets Groups Projects
Commit 9f46ffdc authored by Emanuele Aina's avatar Emanuele Aina Committed by Frédéric Dalleau
Browse files

test: Validate calls to the sample debos recipes in the README


Add a script to extract the debos calls in the README and run them to ensure
that they can be succesfully run on the SDK.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 193d9ad1
No related branches found
No related tags found
1 merge request!113Newcomers introduction
Pipeline #2988 passed
#!/bin/sh
set -e
README=README.md
fail () {
echo "$*" >&2
exit 2
}
test -r "$README" || fail "Unable to read '$README'"
grep -o 'sudo debos.*' "$README" | while read CMD
do
eval echo $CMD
eval $CMD
done
export SDCARD=./fake-sdcard.raw
grep -o 'sudo bmaptool.*' "$README" | while read CMD
do
eval echo $CMD
eval $CMD
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment