aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-10-07 10:02:01 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-10-07 10:02:01 +0200
commitb64e675d5354c32d746a61399e2c9bcb573f2f4b (patch)
treec5597929745c8ba03e4fefbb70949f066ad887c3 /ROMFS
parentebc84b9f44dd3d26bc8d26b18f8c059f900e5e1a (diff)
parent5d52978bc780707d63c1422369842629d26fb1e2 (diff)
downloadpx4-firmware-b64e675d5354c32d746a61399e2c9bcb573f2f4b.tar.gz
px4-firmware-b64e675d5354c32d746a61399e2c9bcb573f2f4b.tar.bz2
px4-firmware-b64e675d5354c32d746a61399e2c9bcb573f2f4b.zip
Merge remote-tracking branch 'upstream/master' into swissfang
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_test/init.d/rcS30
1 files changed, 30 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_test/init.d/rcS b/ROMFS/px4fmu_test/init.d/rcS
index 56482d140..bc248ac04 100644
--- a/ROMFS/px4fmu_test/init.d/rcS
+++ b/ROMFS/px4fmu_test/init.d/rcS
@@ -75,3 +75,33 @@ if [ -f /fs/microsd/mount_test_cmds.txt ]
then
tests mount
fi
+
+#
+# Run unit tests at board boot, reporting failure as needed.
+# Add new unit tests using the same pattern as below.
+#
+
+set unit_test_failure 0
+
+if mavlink_tests
+then
+else
+ set unit_test_failure 1
+ set unit_test_failure_list "${unit_test_failure_list} mavlink_tests"
+fi
+
+if commander_tests
+then
+else
+ set unit_test_failure 1
+ set unit_test_failure_list "${unit_test_failure_list} commander_tests"
+fi
+
+if [ $unit_test_failure == 0 ]
+then
+ echo
+ echo "All Unit Tests PASSED"
+else
+ echo
+ echo "Some Unit Tests FAILED:${unit_test_failure_list}"
+fi \ No newline at end of file