Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: src/scripts/build_autotest.sh

Issue 1194001: Add --jobs option to build_autotest.sh (Closed)
Patch Set: add braces and double quotes. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_autotest.sh
diff --git a/src/scripts/build_autotest.sh b/src/scripts/build_autotest.sh
index 44d32595e904a39b7d944cf37c57a5c7eae0eae4..5b929ac980adec5f218819b0b5aa1bb798570fd0 100755
--- a/src/scripts/build_autotest.sh
+++ b/src/scripts/build_autotest.sh
@@ -24,6 +24,7 @@ DEFINE_string build "${DEFAULT_TESTS_LIST}" \
DEFINE_boolean prompt $FLAGS_TRUE "Prompt user when building all tests."
DEFINE_boolean autox $FLAGS_TRUE "Build autox along with autotest"
DEFINE_boolean buildcheck $FLAGS_TRUE "Fail if tests fail to build"
+DEFINE_integer jobs -1 "How many packages to build in parallel at maximum."
# More useful help
FLAGS_HELP="usage: $0 [flags]"
@@ -35,6 +36,10 @@ set -e
check_board
+if [[ "${FLAGS_jobs}" -ne -1 ]]; then
+ EMERGE_JOBS="--jobs=${FLAGS_jobs}"
+fi
+
# build default pre-compile client tests list.
ALL_TESTS="compilebench,dbench,disktest,ltp,netperf2,unixbench"
CLIENT_TEST_PATH="../third_party/autotest/files/client/site_tests"
@@ -89,4 +94,4 @@ USE=
GCLIENT_ROOT="${GCLIENT_ROOT}" TEST_LIST=${TEST_LIST} \
FEATURES="${FEATURES} -buildpkg" USE="$USE" "emerge-${FLAGS_board}" \
- chromeos-base/autotest
+ chromeos-base/autotest ${EMERGE_JOBS}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698