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

Side by Side Diff: buildbot/buildbot_pnacl_toolchain_tests.sh

Issue 12594036: Add a scons pnacl finalize step for pnacl_generate_pexe tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use StripSuffix Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/component_setup.py » ('j') | 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 10 matching lines...) Expand all
21 # older pexes. 21 # older pexes.
22 22
23 # This hopefully needs to be updated rarely, it contains pexe from 23 # This hopefully needs to be updated rarely, it contains pexe from
24 # the sandboxed llc/gold builds 24 # the sandboxed llc/gold builds
25 ARCHIVED_PEXE_TRANSLATOR_REV=10489 25 ARCHIVED_PEXE_TRANSLATOR_REV=10489
26 26
27 # The frontend from this rev will generate pexes for the archived frontend 27 # The frontend from this rev will generate pexes for the archived frontend
28 # test. The toolchain downloader expects this information in a specially 28 # test. The toolchain downloader expects this information in a specially
29 # formatted file. We generate that file in this script from this information, 29 # formatted file. We generate that file in this script from this information,
30 # to keep all our versions in one place 30 # to keep all our versions in one place
31 ARCHIVED_TOOLCHAIN_REV=11011 31 ARCHIVED_TOOLCHAIN_REV=11078
32 32
33 readonly PNACL_BUILD="pnacl/build.sh" 33 readonly PNACL_BUILD="pnacl/build.sh"
34 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh" 34 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh"
35 readonly TORTURE_TEST="tools/toolchain_tester/torture_test.sh" 35 readonly TORTURE_TEST="tools/toolchain_tester/torture_test.sh"
36 readonly LLVM_TESTSUITE="pnacl/scripts/llvm-test.sh" 36 readonly LLVM_TESTSUITE="pnacl/scripts/llvm-test.sh"
37 37
38 # build.sh, llvm test suite and torture tests all use this value 38 # build.sh, llvm test suite and torture tests all use this value
39 export PNACL_CONCURRENCY=${PNACL_CONCURRENCY:-4} 39 export PNACL_CONCURRENCY=${PNACL_CONCURRENCY:-4}
40 40
41 # Change the toolchain build script (PNACL_BUILD) behavior slightly 41 # Change the toolchain build script (PNACL_BUILD) behavior slightly
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 echo "@@@BUILD_STEP archived_frontend [${arch}]\ 217 echo "@@@BUILD_STEP archived_frontend [${arch}]\
218 rev ${ARCHIVED_TOOLCHAIN_REV} BUILD IRT@@@" 218 rev ${ARCHIVED_TOOLCHAIN_REV} BUILD IRT@@@"
219 ${SCONS_COMMON} ${SCONS_PICK_TC} --mode=opt-host,nacl platform=${arch} \ 219 ${SCONS_COMMON} ${SCONS_PICK_TC} --mode=opt-host,nacl platform=${arch} \
220 irt_core || handle-error 220 irt_core || handle-error
221 221
222 222
223 echo "@@@BUILD_STEP archived_frontend [${arch}]\ 223 echo "@@@BUILD_STEP archived_frontend [${arch}]\
224 rev ${ARCHIVED_TOOLCHAIN_REV} BUILD@@@" 224 rev ${ARCHIVED_TOOLCHAIN_REV} BUILD@@@"
225 local targets="small_tests medium_tests large_tests" 225 local targets="small_tests medium_tests large_tests"
226 local flags="--mode=opt-host,nacl platform=${arch} \ 226 local flags="--mode=opt-host,nacl platform=${arch} \
227 translate_in_build_step=0 skip_trusted_tests=1" 227 translate_in_build_step=0 skip_trusted_tests=1 \
228 skip_nonstable_bitcode=1"
228 229
229 rm -rf scons-out/nacl-${arch}* 230 rm -rf scons-out/nacl-${arch}*
230 231
231 # Get the archived frontend. 232 # Get the archived frontend.
232 # If the correct cached frontend is in place, the hash will match and the 233 # If the correct cached frontend is in place, the hash will match and the
233 # download will be a no-op. Otherwise the downloader will fix it. 234 # download will be a no-op. Otherwise the downloader will fix it.
234 download-old-tc toolchain/archived_tc 235 download-old-tc toolchain/archived_tc
235 236
236 # Save the current toolchain. 237 # Save the current toolchain.
237 mkdir -p toolchain/current_tc 238 mkdir -p toolchain/current_tc
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 done 448 done
448 } 449 }
449 450
450 451
451 if [ $# = 0 ]; then 452 if [ $# = 0 ]; then
452 # NOTE: this is used for manual testing only 453 # NOTE: this is used for manual testing only
453 tc-test-bot "x86-64 x86-32 arm" 454 tc-test-bot "x86-64 x86-32 arm"
454 else 455 else
455 "$@" 456 "$@"
456 fi 457 fi
OLDNEW
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/component_setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698