From 596480de062da815326071630ebf2348ce1c02ac Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 24 Jul 2013 12:13:24 -0700 Subject: Add a script to build all platforms and run host-based unit tests As the number of boards grows, it's handy to have a script which builds them all and runs host-based unit tests, to make sure that changes are at least somewhat sane before submitting them to the commit queue. BUG=none BRANCH=none TEST=util/make_all.sh Change-Id: Ie3fcb062caedaf36b3e350c3d9be34a9b080c76d Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/63230 Reviewed-by: Rong Chang --- util/make_all.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 util/make_all.sh diff --git a/util/make_all.sh b/util/make_all.sh new file mode 100755 index 0000000000..c8f7b4080d --- /dev/null +++ b/util/make_all.sh @@ -0,0 +1,17 @@ +#!/bin/bash -e +# +# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# Build all EC boards and run unit tests + +# Build all boards except host +boards=$(ls -1 board | grep -v host) +for b in $boards; do + echo ======== building $b + make BOARD=$b +done + +# Run unit tests +make BOARD=host runtests -- cgit v1.2.1