summaryrefslogtreecommitdiff
path: root/ao-bringup/test-igniters
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-09-12 20:58:26 -0700
committerKeith Packard <keithp@keithp.com>2014-09-12 20:58:26 -0700
commit20d640ec504afbfdb69dba1b241d84af1e62abed (patch)
treef3471004f0d88cf4f374b19cf477900d411c7633 /ao-bringup/test-igniters
parente0077866138a1e29ede7181e39f04860b866543a (diff)
ao-bringup: Improve igniter testing. Add TeleMega and TeleMetrum testing.
The script lets you re-try each one when they fail, which is nice if you're hand-holding the setup. The TeleMetrum and TeleMega tests are adapted from the EasyMega tests and are hooked up to the turnon scripts. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-bringup/test-igniters')
-rwxr-xr-xao-bringup/test-igniters25
1 files changed, 25 insertions, 0 deletions
diff --git a/ao-bringup/test-igniters b/ao-bringup/test-igniters
new file mode 100755
index 00000000..763f42a9
--- /dev/null
+++ b/ao-bringup/test-igniters
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+dev="$1"
+shift
+
+for igniter in "$@"; do
+ pass="n"
+ while [ $pass != "y" ]; do
+ echo -n "Testing $igniter igniter. Press enter to continue..."
+ read foo < /dev/tty
+ ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $igniter
+
+ case $? in
+ 0)
+ echo "pass"
+ pass="y"
+ ;;
+ *)
+ echo "Failed. Try again."
+ ;;
+ esac
+ done
+done
+
+exit 0