From 5033171ac0866192c483b1928809389720cdfdc2 Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Sun, 22 Feb 2015 02:27:13 +0000 Subject: [PATCH] Commit hook to build and run qemu-arm and AVR tests. --- tests/commit-tests.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/commit-tests.sh diff --git a/tests/commit-tests.sh b/tests/commit-tests.sh new file mode 100755 index 0000000..181d31d --- /dev/null +++ b/tests/commit-tests.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Quit on any error +set -e + +# Start at top-level directory +cd .. + +# Build avr and run tests +cd ports/avr +make clean +make PART=atmega128 +make PART=atmega128 simtests +cd ../.. + +# Build qemu-arm and run tests +cd ports/arm/platforms/qemu_integratorcp +make clean +make +make qemutests +