summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-24 12:13:24 -0700
committerChromeBot <chrome-bot@google.com>2013-07-24 14:05:08 -0700
commit596480de062da815326071630ebf2348ce1c02ac (patch)
tree5d381e12f63c9c726a8a78ec6d5d7196c8cbcf1d
parent6c280b1b324d56416732ff532f0d8d69d2dbdfad (diff)
downloadchrome-ec-596480de062da815326071630ebf2348ce1c02ac.tar.gz
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 <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/63230 Reviewed-by: Rong Chang <rongchang@chromium.org>
-rwxr-xr-xutil/make_all.sh17
1 files changed, 17 insertions, 0 deletions
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