| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 clobber | 336 clobber |
| 337 | 337 |
| 338 gyp-arm-build | 338 gyp-arm-build |
| 339 | 339 |
| 340 # Sanity check | 340 # Sanity check |
| 341 scons-stage-noirt "arm" "-j8" "run_hello_world_test" | 341 scons-stage-noirt "arm" "-j8" "run_hello_world_test" |
| 342 | 342 |
| 343 # Don't run the rest of the tests on qemu, only build them. | 343 # Don't run the rest of the tests on qemu, only build them. |
| 344 # QEMU is too flaky for the main waterfall | 344 # QEMU is too flaky for the main waterfall |
| 345 | 345 |
| 346 # Normal pexe mode tests | 346 # Normal pexe mode build. |
| 347 scons-stage-noirt "arm" "${qemuflags}" "${SCONS_EVERYTHING}" | 347 scons-stage-noirt "arm" "${qemuflags}" "${SCONS_EVERYTHING}" |
| 348 # This extra step is required to translate the pexes (because translation | 348 # This extra step is required to translate the pexes (because translation |
| 349 # happens as part of CommandSelLdrTestNacl and not part of the | 349 # happens as part of CommandSelLdrTestNacl and not part of the |
| 350 # build-everything step) | 350 # build-everything step) |
| 351 scons-stage-noirt "arm" "${qemuflags}" "${SCONS_S_M}" | 351 scons-stage-noirt "arm" "${qemuflags}" "${SCONS_S_M}" |
| 352 # Large tests cannot be run in parallel | 352 # Large tests cannot be run in parallel |
| 353 scons-stage-noirt "arm" "${qemuflags} -j1" "large_tests" | 353 scons-stage-noirt "arm" "${qemuflags} -j1" "large_tests" |
| 354 | 354 |
| 355 # Normal pexe mode build. |
| 356 scons-stage-irt "arm" "${qemuflags}" "${SCONS_EVERYTHING}" |
| 355 # also run some tests with the irt | 357 # also run some tests with the irt |
| 356 scons-stage-irt "arm" "${qemuflags}" "${SCONS_S_M_IRT}" | 358 scons-stage-irt "arm" "${qemuflags}" "${SCONS_S_M_IRT}" |
| 357 | 359 |
| 358 # non-pexe-mode tests | 360 # non-pexe-mode tests |
| 359 scons-stage-noirt "arm" "${qemuflags} pnacl_generate_pexe=0" "nonpexe_tests" | 361 scons-stage-noirt "arm" "${qemuflags} pnacl_generate_pexe=0" "nonpexe_tests" |
| 360 | 362 |
| 361 build-sbtc-prerequisites "arm" | 363 build-sbtc-prerequisites "arm" |
| 362 | 364 |
| 363 scons-stage-irt "arm" \ | 365 scons-stage-irt "arm" \ |
| 364 "${qemuflags} use_sandboxed_translator=1 translate_in_build_step=0" \ | 366 "${qemuflags} use_sandboxed_translator=1 translate_in_build_step=0" \ |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 exit 1 | 545 exit 1 |
| 544 fi | 546 fi |
| 545 | 547 |
| 546 "$@" | 548 "$@" |
| 547 | 549 |
| 548 if [[ ${RETCODE} != 0 ]]; then | 550 if [[ ${RETCODE} != 0 ]]; then |
| 549 echo "@@@BUILD_STEP summary@@@" | 551 echo "@@@BUILD_STEP summary@@@" |
| 550 echo There were failed stages. | 552 echo There were failed stages. |
| 551 exit ${RETCODE} | 553 exit ${RETCODE} |
| 552 fi | 554 fi |
| OLD | NEW |