| 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}"
|
|
|