| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 fi | 189 fi |
| 190 echo "@@@BUILD_STEP torture_tests $arch @@@" | 190 echo "@@@BUILD_STEP torture_tests $arch @@@" |
| 191 ${TORTURE_TEST} pnacl ${arch} --verbose \ | 191 ${TORTURE_TEST} pnacl ${arch} --verbose \ |
| 192 --concurrency=${PNACL_CONCURRENCY} || handle-error | 192 --concurrency=${PNACL_CONCURRENCY} || handle-error |
| 193 done | 193 done |
| 194 | 194 |
| 195 | 195 |
| 196 local optset | 196 local optset |
| 197 optset[1]="--opt O3f --opt O2b" | 197 optset[1]="--opt O3f --opt O2b" |
| 198 for arch in ${archset}; do | 198 for arch in ${archset}; do |
| 199 # Run all appropriate frontend/backend optimization combinations. | 199 # Run all appropriate frontend/backend optimization combinations. For now, |
| 200 # For now, this means running 2 combinations for x86 since each | 200 # this means running 2 combinations for x86 (plus one more for Subzero on |
| 201 # takes about 20 minutes on the bots, and making a single run | 201 # x86-32) since each takes about 20 minutes on the bots, and making a single |
| 202 # elsewhere since e.g. arm takes about 75 minutes. In a perfect | 202 # run elsewhere since e.g. arm takes about 75 minutes. In a perfect world, |
| 203 # world, all 4 combinations would be run. | 203 # all 4 combinations would be run, plus more for Subzero. |
| 204 if [[ ${archset} =~ x86 ]]; then | 204 if [[ ${archset} =~ x86 ]]; then |
| 205 optset[2]="--opt O3f --opt O0b" | 205 optset[2]="--opt O3f --opt O0b" |
| 206 if [[ ${archset} == x86-32 ]]; then |
| 207 # Run a Subzero -O2 test set on x86-32. |
| 208 optset[3]="--opt O3f --opt O2b_sz" |
| 209 fi |
| 206 fi | 210 fi |
| 207 for opt in "${optset[@]}"; do | 211 for opt in "${optset[@]}"; do |
| 208 echo "@@@BUILD_STEP llvm-test-suite ${arch} ${opt} @@@" | 212 echo "@@@BUILD_STEP llvm-test-suite ${arch} ${opt} @@@" |
| 209 python ${LLVM_TEST} --testsuite-clean | 213 python ${LLVM_TEST} --testsuite-clean |
| 210 LD_LIBRARY_PATH=${LIBRARY_ABSPATH} python ${LLVM_TEST} \ | 214 LD_LIBRARY_PATH=${LIBRARY_ABSPATH} python ${LLVM_TEST} \ |
| 211 --testsuite-configure --testsuite-run --testsuite-report \ | 215 --testsuite-configure --testsuite-run --testsuite-report \ |
| 212 --arch ${arch} ${opt} -v -c || handle-error | 216 --arch ${arch} ${opt} -v -c || handle-error |
| 213 done | 217 done |
| 214 | 218 |
| 215 echo "@@@BUILD_STEP libcxx-test ${arch} @@@" | 219 echo "@@@BUILD_STEP libcxx-test ${arch} @@@" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 235 done | 239 done |
| 236 } | 240 } |
| 237 | 241 |
| 238 | 242 |
| 239 if [ $# = 0 ]; then | 243 if [ $# = 0 ]; then |
| 240 # NOTE: this is used for manual testing only | 244 # NOTE: this is used for manual testing only |
| 241 tc-test-bot "x86-64 x86-32 arm" | 245 tc-test-bot "x86-64 x86-32 arm" |
| 242 else | 246 else |
| 243 "$@" | 247 "$@" |
| 244 fi | 248 fi |
| OLD | NEW |