summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-24 12:13:24 -0700
committerBill Richardson <wfrichar@chromium.org>2013-07-30 10:35:02 -0700
commit23f9b561efa532b4ade706fb8883a0ee0a32c300 (patch)
tree5d381e12f63c9c726a8a78ec6d5d7196c8cbcf1d
parent083af1e76ad73f3d5df0cb8a9d8a2a65939c6e5f (diff)
downloadchrome-ec-23f9b561efa532b4ade706fb8883a0ee0a32c300.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 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/63230 Reviewed-by: Rong Chang <rongchang@chromium.org> (cherry picked from commit 596480de062da815326071630ebf2348ce1c02ac) Change-Id: I15578fa6a3aa1797041abb891c6f3a283580a552 Reviewed-on: https://gerrit.chromium.org/gerrit/63724 Commit-Queue: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: Bill Richardson <wfrichar@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