aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Kistner <ralf@embarkmobile.com>2014-01-31 15:17:28 +0200
committerRalf Kistner <ralf@embarkmobile.com>2014-01-31 15:17:28 +0200
commit7f1845d11380a95c4bef11fa0bb733f4bdb40750 (patch)
treecc09a89b6bda0840747f85838c6f1c60f2b5984c
parented6baba7cf15aa7ad8915d48308e98c194cc81da (diff)
Verify examples on all boards.
-rwxr-xr-xverify.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/verify.sh b/verify.sh
index 8ee3563..7e7f985 100755
--- a/verify.sh
+++ b/verify.sh
@@ -9,9 +9,11 @@ fi
function example {
if [[ -f "$ARDUINO_PATH/arduino" ]]; then
- echo "Using $ARDUINO_PATH/arduino"
cd $ARDUINO_PATH
- xvfb-run ./arduino --board arcore:avr:leonardo --verify "$EXAMPLES/$1/$1.ino"
+ echo
+ echo "### Verifying example $1 on board $2"
+ echo "Using $ARDUINO_PATH/arduino"
+ xvfb-run ./arduino --board "$2" --verify "$EXAMPLES/$1/$1.ino"
sleep 1
else
echo "Set ARDUINO_PATH to the folder containing the arduino binary"
@@ -19,6 +21,9 @@ function example {
fi
}
-example "Empty"
-example "MidiEcho"
+for board in "arcore:avr:leonardo" "arcore:avr:leonardo2" "arcore:avr:micro"
+do
+ example "Empty" $board
+ example "MidiEcho" $board
+done