Chromium Code Reviews| 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 # Run toolchain torture tests and llvm testsuite tests. | 6 # Run toolchain torture tests and llvm testsuite tests. |
| 7 # For now, run on linux64, build and run unsandboxed newlib tests | 7 # For now, run on linux64, build and run unsandboxed newlib tests |
| 8 # for all 3 architectures. | 8 # for all 3 architectures. |
| 9 # Note: This script builds the toolchain from scratch but does | 9 # Note: This script builds the toolchain from scratch but does |
| 10 # not build the translators and hence the translators | 10 # not build the translators and hence the translators |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 if [[ ${archset} == "mips" ]]; then | 285 if [[ ${archset} == "mips" ]]; then |
| 286 export PNACL_BUILD_MIPS=true | 286 export PNACL_BUILD_MIPS=true |
| 287 # Don't run any of the tests yet | 287 # Don't run any of the tests yet |
| 288 echo "MIPS bot: Only running build, and not tests" | 288 echo "MIPS bot: Only running build, and not tests" |
| 289 archset= | 289 archset= |
| 290 fi | 290 fi |
| 291 | 291 |
| 292 # Build the un-sandboxed toolchain. The build script outputs its own buildbot | 292 # Build the un-sandboxed toolchain. The build script outputs its own buildbot |
| 293 # annotations. | 293 # annotations. |
| 294 # Build and use the 64-bit llvm build, to get 64-bit versions of the build | 294 # Build and use the 64-bit llvm build, to get 64-bit versions of the build |
| 295 # tools such as fpcmp (used for llvm test suite). For some reason it matters | 295 # tools such as fpcmp (used for llvm test suite). For some reason it matters |
|
jvoung (off chromium)
2014/09/18 17:24:45
Is this comment still necessary. (There's only the
Derek Schuff
2014/09/18 17:29:13
removed.
| |
| 296 # that they match the build machine. TODO(dschuff): Is this still necessary? | 296 # that they match the build machine. TODO(dschuff): Is this still necessary? |
| 297 ${TOOLCHAIN_BUILD} --verbose --sync --clobber --build-64bit-host \ | 297 ${TOOLCHAIN_BUILD} --verbose --sync --clobber --testsuite-sync \ |
| 298 --testsuite-sync \ | |
| 299 --install toolchain/linux_x86/pnacl_newlib | 298 --install toolchain/linux_x86/pnacl_newlib |
| 300 | 299 |
| 301 # Linking the tests require additional sdk libraries like libnacl. | 300 # Linking the tests require additional sdk libraries like libnacl. |
| 302 # Do this once and for all early instead of attempting to do it within | 301 # Do this once and for all early instead of attempting to do it within |
| 303 # each test step and having some late test steps rely on early test | 302 # each test step and having some late test steps rely on early test |
| 304 # steps building the prerequisites -- sometimes the early test steps | 303 # steps building the prerequisites -- sometimes the early test steps |
| 305 # get skipped. | 304 # get skipped. |
| 306 echo "@@@BUILD_STEP install sdk libraries @@@" | 305 echo "@@@BUILD_STEP install sdk libraries @@@" |
| 307 ${PNACL_BUILD} sdk | 306 ${PNACL_BUILD} sdk |
| 308 for arch in ${archset}; do | 307 for arch in ${archset}; do |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 done | 366 done |
| 368 } | 367 } |
| 369 | 368 |
| 370 | 369 |
| 371 if [ $# = 0 ]; then | 370 if [ $# = 0 ]; then |
| 372 # NOTE: this is used for manual testing only | 371 # NOTE: this is used for manual testing only |
| 373 tc-test-bot "x86-64 x86-32 arm" | 372 tc-test-bot "x86-64 x86-32 arm" |
| 374 else | 373 else |
| 375 "$@" | 374 "$@" |
| 376 fi | 375 fi |
| OLD | NEW |