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

Unified Diff: tools/clang/scripts/update.sh

Issue 8247005: roll clang 140930:142072 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no-c++11-extensions Created 9 years, 2 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 | « tools/clang/plugins/tests/virtual_methods.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.sh
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index b14d8a8a51ed6e7b60092b13c9b14e0c2870004b..5ae8b2a0a959a1f32dc429f76e38a2d368e6ce77 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -27,6 +27,7 @@ OS="$(uname -s)"
# Parse command line options.
force_local_build=
mac_only=
+run_tests=
while [[ $# > 0 ]]; do
case $1 in
--force-local-build)
@@ -35,10 +36,14 @@ while [[ $# > 0 ]]; do
--mac-only)
mac_only=yes
;;
+ --run-tests)
+ run_tests=yes
+ ;;
--help)
- echo "usage: $0 [--force-local-build] [--mac-only] "
+ echo "usage: $0 [--force-local-build] [--mac-only] [--run-tests] "
echo "--force-local-build: Don't try to download prebuilt binaries."
echo "--mac-only: Do nothing on non-Mac systems."
+ echo "--run-tests: Run tests after building. Only for local builds."
exit 1
;;
esac
@@ -208,5 +213,10 @@ mkdir -p "${PLUGIN_BUILD_DIR}"
cp "${PLUGIN_SRC_DIR}/Makefile" "${PLUGIN_BUILD_DIR}"
make -j"${NUM_JOBS}" -C "${PLUGIN_BUILD_DIR}"
+if [[ -n "$run_tests" ]]; then
+ # Run a few tests.
+ "${PLUGIN_SRC_DIR}/tests/test.sh" "${LLVM_BUILD_DIR}/Release+Asserts"
+fi
+
# After everything is done, log success for this revision.
echo "${CLANG_REVISION}" > "${STAMP_FILE}"
« no previous file with comments | « tools/clang/plugins/tests/virtual_methods.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698