OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 set -o xtrace | 6 set -o xtrace |
7 set -o nounset | 7 set -o nounset |
8 set -o errexit | 8 set -o errexit |
9 | 9 |
10 # Tell build.sh and test.sh that we're a bot. | 10 # Tell build.sh and test.sh that we're a bot. |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 500 |
501 mode-buildbot-arm-hw-try() { | 501 mode-buildbot-arm-hw-try() { |
502 unarchive-for-hw-bots $(NAME_ARM_TRY_DOWNLOAD) try | 502 unarchive-for-hw-bots $(NAME_ARM_TRY_DOWNLOAD) try |
503 mode-buildbot-arm-hw | 503 mode-buildbot-arm-hw |
504 } | 504 } |
505 | 505 |
506 # These 2 functions are also suitable for local TC sanity testing. | 506 # These 2 functions are also suitable for local TC sanity testing. |
507 tc-tests-all() { | 507 tc-tests-all() { |
508 local is_try=$1 | 508 local is_try=$1 |
509 | 509 |
510 local label="pnaclsdk_mode=custom:toolchain/${PNACL_TOOLCHAIN_DIR}" | 510 local label="pnacl_newlib_dir=toolchain/${PNACL_TOOLCHAIN_DIR}" |
511 local scons_flags="-k skip_trusted_tests=1 -j8 ${label}" | 511 local scons_flags="-k skip_trusted_tests=1 -j8 ${label}" |
512 | 512 |
513 llvm-regression | 513 llvm-regression |
514 | 514 |
515 # newlib | 515 # newlib |
516 for arch in x86-32 x86-64 arm; do | 516 for arch in x86-32 x86-64 arm; do |
517 ${DRIVER_TESTS} --platform="$arch" | 517 ${DRIVER_TESTS} --platform="$arch" |
518 scons-stage-noirt "$arch" "${scons_flags}" "${SCONS_TC_TESTS}" | 518 scons-stage-noirt "$arch" "${scons_flags}" "${SCONS_TC_TESTS}" |
519 # Large tests cannot be run in parallel | 519 # Large tests cannot be run in parallel |
520 scons-stage-noirt "$arch" "${scons_flags} -j1" "large_tests" | 520 scons-stage-noirt "$arch" "${scons_flags} -j1" "large_tests" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 exit 1 | 746 exit 1 |
747 fi | 747 fi |
748 | 748 |
749 "$@" | 749 "$@" |
750 | 750 |
751 if [[ ${RETCODE} != 0 ]]; then | 751 if [[ ${RETCODE} != 0 ]]; then |
752 echo "@@@BUILD_STEP summary@@@" | 752 echo "@@@BUILD_STEP summary@@@" |
753 echo There were failed stages. | 753 echo There were failed stages. |
754 exit ${RETCODE} | 754 exit ${RETCODE} |
755 fi | 755 fi |
OLD | NEW |