aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 10:56:35 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 10:56:35 -0500
commitbc1baf25a0844861713829c0e9e69e4a2d447cc6 (patch)
tree37ad821656ffa979248f6154573f5cd9f30932a3 /runtests.sh
Initial commit, pulled from openxc/vi-firmware.
Diffstat (limited to 'runtests.sh')
-rw-r--r--runtests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh
new file mode 100644
index 0000000..4781636
--- /dev/null
+++ b/runtests.sh
@@ -0,0 +1,17 @@
+echo "Running unit tests:"
+
+for i in $1/*.bin
+do
+ if test -f $i
+ then
+ if ./$i
+ then
+ echo $i PASS
+ else
+ echo "ERROR in test $i:"
+ exit 1
+ fi
+ fi
+done
+
+echo "${txtbld}$(tput setaf 2)All unit tests passed.$(tput sgr0)"