| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 local optset | 215 local optset |
| 216 optset[1]="--opt O3f --opt O2b" | 216 optset[1]="--opt O3f --opt O2b" |
| 217 for arch in ${archset}; do | 217 for arch in ${archset}; do |
| 218 # Run all appropriate frontend/backend optimization combinations. For now, | 218 # Run all appropriate frontend/backend optimization combinations. For now, |
| 219 # this means running 2 combinations for x86 (plus one more for Subzero on | 219 # this means running 2 combinations for x86 (plus one more for Subzero on |
| 220 # x86-32) since each takes about 20 minutes on the bots, and making a single | 220 # x86-32) since each takes about 20 minutes on the bots, and making a single |
| 221 # run elsewhere since e.g. arm takes about 75 minutes. In a perfect world, | 221 # run elsewhere since e.g. arm takes about 75 minutes. In a perfect world, |
| 222 # all 4 combinations would be run, plus more for Subzero. | 222 # all 4 combinations would be run, plus more for Subzero. |
| 223 if [[ ${archset} =~ x86 ]]; then | 223 if [[ ${archset} =~ x86 ]]; then |
| 224 optset[2]="--opt O3f --opt O0b" | 224 optset[2]="--opt O3f --opt O0b" |
| 225 if [[ ${archset} == x86-32 ]]; then | 225 if [[ ${archset} == x86-32 || ${archset} == x86-64 ]]; then |
| 226 # Run a Subzero -O2 test set on x86-32. | 226 # Run a Subzero -O2 test set on x86-32. |
| 227 optset[3]="--opt O3f --opt O2b_sz" | 227 optset[3]="--opt O3f --opt O2b_sz" |
| 228 fi | 228 fi |
| 229 fi | 229 fi |
| 230 for opt in "${optset[@]}"; do | 230 for opt in "${optset[@]}"; do |
| 231 echo "@@@BUILD_STEP llvm-test-suite ${arch} ${opt} @@@" | 231 echo "@@@BUILD_STEP llvm-test-suite ${arch} ${opt} @@@" |
| 232 python ${LLVM_TEST} --testsuite-clean | 232 python ${LLVM_TEST} --testsuite-clean |
| 233 LD_LIBRARY_PATH=${LIBRARY_ABSPATH} python ${LLVM_TEST} \ | 233 LD_LIBRARY_PATH=${LIBRARY_ABSPATH} python ${LLVM_TEST} \ |
| 234 --testsuite-configure --testsuite-run --testsuite-report \ | 234 --testsuite-configure --testsuite-run --testsuite-report \ |
| 235 --arch ${arch} ${opt} -v -c || handle-error | 235 --arch ${arch} ${opt} -v -c || handle-error |
| (...skipping 23 matching lines...) Expand all Loading... |
| 259 exit $EXIT_STATUS | 259 exit $EXIT_STATUS |
| 260 } | 260 } |
| 261 | 261 |
| 262 | 262 |
| 263 if [ $# = 0 ]; then | 263 if [ $# = 0 ]; then |
| 264 # NOTE: this is used for manual testing only | 264 # NOTE: this is used for manual testing only |
| 265 tc-test-bot "x86-64 x86-32 arm" | 265 tc-test-bot "x86-64 x86-32 arm" |
| 266 else | 266 else |
| 267 "$@" | 267 "$@" |
| 268 fi | 268 fi |
| OLD | NEW |