| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 # steps building the prerequisites -- sometimes the early test steps | 173 # steps building the prerequisites -- sometimes the early test steps |
| 174 # get skipped. | 174 # get skipped. |
| 175 echo "@@@BUILD_STEP install sdk libraries @@@" | 175 echo "@@@BUILD_STEP install sdk libraries @@@" |
| 176 ${PNACL_BUILD} sdk | 176 ${PNACL_BUILD} sdk |
| 177 for arch in ${archset}; do | 177 for arch in ${archset}; do |
| 178 # Similarly, build the run prerequisites (sel_ldr and the irt) early. | 178 # Similarly, build the run prerequisites (sel_ldr and the irt) early. |
| 179 echo "@@@BUILD_STEP build run prerequisites [${arch}]@@@" | 179 echo "@@@BUILD_STEP build run prerequisites [${arch}]@@@" |
| 180 build-run-prerequisites ${arch} | 180 build-run-prerequisites ${arch} |
| 181 done | 181 done |
| 182 | 182 |
| 183 echo "@@@BUILD_STEP pnacl bitcode compiler_rt tests@@@" |
| 184 make -C toolchain_build/src/compiler-rt \ |
| 185 -f lib/builtins/Makefile-pnacl-bitcode \ |
| 186 TCROOT=${INSTALL_ABSPATH} nacltest-pnacl || handle-error |
| 187 |
| 183 # Run the torture tests. | 188 # Run the torture tests. |
| 184 for arch in ${archset}; do | 189 for arch in ${archset}; do |
| 185 echo "@@@BUILD_STEP torture_tests_clang $arch @@@" | 190 echo "@@@BUILD_STEP torture_tests_clang $arch @@@" |
| 186 ${TORTURE_TEST} clang ${arch} --verbose \ | 191 ${TORTURE_TEST} clang ${arch} --verbose \ |
| 187 --concurrency=${PNACL_CONCURRENCY} || handle-error | 192 --concurrency=${PNACL_CONCURRENCY} || handle-error |
| 188 | 193 |
| 189 if [[ "${arch}" == "x86-32" ]]; then | 194 if [[ "${arch}" == "x86-32" ]]; then |
| 190 # Torture tests on x86-32 are covered by tc-tests-all in | 195 # Torture tests on x86-32 are covered by tc-tests-all in |
| 191 # buildbot_pnacl.sh. | 196 # buildbot_pnacl.sh. |
| 192 continue | 197 continue |
| 193 fi | 198 fi |
| 194 echo "@@@BUILD_STEP torture_tests_pnacl $arch @@@" | 199 echo "@@@BUILD_STEP torture_tests_pnacl $arch @@@" |
| 195 ${TORTURE_TEST} pnacl ${arch} --verbose \ | 200 ${TORTURE_TEST} pnacl ${arch} --verbose \ |
| 196 --concurrency=${PNACL_CONCURRENCY} || handle-error | 201 --concurrency=${PNACL_CONCURRENCY} || handle-error |
| 202 |
| 203 echo "@@@BUILD_STEP clang compiler_rt tests $arch @@@" |
| 204 make -C toolchain_build/src/compiler-rt TCROOT=${INSTALL_ABSPATH} \ |
| 205 nacltest-${arch} || handle-error |
| 197 done | 206 done |
| 198 | 207 |
| 199 | 208 |
| 200 local optset | 209 local optset |
| 201 optset[1]="--opt O3f --opt O2b" | 210 optset[1]="--opt O3f --opt O2b" |
| 202 for arch in ${archset}; do | 211 for arch in ${archset}; do |
| 203 # Run all appropriate frontend/backend optimization combinations. For now, | 212 # Run all appropriate frontend/backend optimization combinations. For now, |
| 204 # this means running 2 combinations for x86 (plus one more for Subzero on | 213 # this means running 2 combinations for x86 (plus one more for Subzero on |
| 205 # x86-32) since each takes about 20 minutes on the bots, and making a single | 214 # x86-32) since each takes about 20 minutes on the bots, and making a single |
| 206 # run elsewhere since e.g. arm takes about 75 minutes. In a perfect world, | 215 # run elsewhere since e.g. arm takes about 75 minutes. In a perfect world, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 done | 252 done |
| 244 } | 253 } |
| 245 | 254 |
| 246 | 255 |
| 247 if [ $# = 0 ]; then | 256 if [ $# = 0 ]; then |
| 248 # NOTE: this is used for manual testing only | 257 # NOTE: this is used for manual testing only |
| 249 tc-test-bot "x86-64 x86-32 arm" | 258 tc-test-bot "x86-64 x86-32 arm" |
| 250 else | 259 else |
| 251 "$@" | 260 "$@" |
| 252 fi | 261 fi |
| OLD | NEW |