Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: buildbot/buildbot_pnacl_toolchain_tests.sh

Issue 1045573002: Add a Subzero configuration to LLVM testsuite bot testing. x86-32 only. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
200 # For now, this means running 2 combinations for x86 since each 200 # For now, this means running 2 combinations for x86 since each
JF 2015/03/29 05:48:09 3 combinations?
Jim Stichnoth 2015/03/29 22:35:14 Done.
201 # takes about 20 minutes on the bots, and making a single run 201 # takes about 20 minutes on the bots, and making a single run
202 # elsewhere since e.g. arm takes about 75 minutes. In a perfect 202 # elsewhere since e.g. arm takes about 75 minutes. In a perfect
203 # world, all 4 combinations would be run. 203 # world, all 4 combinations would be run.
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698