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

Side by Side Diff: buildbot/buildbot_toolchain_arm_untrusted.sh

Issue 6825060: Rename PNaCl (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 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/naclsdk.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) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 # Script assumed to be run in native_client/ 6 # Script assumed to be run in native_client/
7 if [[ $(pwd) != */native_client ]]; then 7 if [[ $(pwd) != */native_client ]]; then
8 echo "ERROR: must be run in native_client!" 8 echo "ERROR: must be run in native_client!"
9 exit 1 9 exit 1
10 fi 10 fi
11 11
12 if [ $# -ne 0 ]; then 12 if [ $# -ne 0 ]; then
13 echo "USAGE: $0" 13 echo "USAGE: $0"
14 exit 2 14 exit 2
15 fi 15 fi
16 16
17 set -x 17 set -x
18 set -e 18 set -e
19 set -u 19 set -u
20 20
21 if [[ ${BUILDBOT_BUILDERNAME} == lucid32-toolchain_arm-untrusted ]]; then
22 # Don't test arm + 64-bit on 32-bit builder.
23 # We can't build 64-bit trusted components on a 32-bit system.
24 # Arm disabled on 32-bit because it runs out of memory.
25 TOOLCHAIN_LABEL=pnacl_linux_i686
26 RUN_TESTS="x86-32 x86-32-pic"
27 else
28 TOOLCHAIN_LABEL=pnacl_linux_x86_64
29 RUN_TESTS="x86-32 x86-32-pic arm arm-pic x86-64 x86-64-pic"
30 fi
31
21 RETCODE=0 32 RETCODE=0
22 33
23 echo @@@BUILD_STEP clobber@@@ 34 echo @@@BUILD_STEP clobber@@@
24 rm -rf scons-out toolchain compiler hg ../xcodebuild ../sconsbuild ../out \ 35 rm -rf scons-out toolchain compiler hg ../xcodebuild ../sconsbuild ../out \
25 src/third_party/nacl_sdk/arm-newlib 36 src/third_party/nacl_sdk/arm-newlib
26 rm -rf ../toolchain ../hg 37 rm -rf ../toolchain ../hg
27 38
28 echo @@@BUILD_STEP show-config@@@ 39 echo @@@BUILD_STEP show-config@@@
29 UTMAN_BUILDBOT=true tools/llvm/utman.sh show-config 40 UTMAN_BUILDBOT=true tools/llvm/utman.sh show-config
30 41
31 echo @@@BUILD_STEP compile_toolchain@@@ 42 echo @@@BUILD_STEP compile_toolchain@@@
32 UTMAN_BUILDBOT=true tools/llvm/utman.sh download-trusted 43 UTMAN_BUILDBOT=true tools/llvm/utman.sh download-trusted
33 UTMAN_BUILDBOT=true tools/llvm/utman.sh untrusted_sdk arm-untrusted.tgz 44 UTMAN_BUILDBOT=true tools/llvm/utman.sh untrusted_sdk pnacl-toolchain.tgz
34 chmod a+r arm-untrusted.tgz 45 chmod a+r pnacl-toolchain.tgz
35 46
36 echo @@@BUILD_STEP untar_toolchain@@@ 47 echo @@@BUILD_STEP untar_toolchain@@@
37 # Untar to ensure we can and to place the toolchain where the main build 48 # Untar to ensure we can and to place the toolchain where the main build
38 # expects it to be. 49 # expects it to be.
39 mkdir -p toolchain/linux_arm-untrusted 50 mkdir -p toolchain/${TOOLCHAIN_LABEL}
40 cd toolchain/linux_arm-untrusted 51 cd toolchain/${TOOLCHAIN_LABEL}
41 tar xfz ../../arm-untrusted.tgz 52 tar xfz ../../pnacl-toolchain.tgz
42 cd ../.. 53 cd ../..
43 54
44 echo @@@BUILD_STEP archive_build@@@ 55 echo @@@BUILD_STEP archive_build@@@
45 if [[ ${BUILDBOT_BUILDERNAME} == lucid32-toolchain_arm-untrusted ]]; then
46 SUFFIX=
47 else
48 SUFFIX=-${BUILDBOT_BUILDERNAME}
49 fi
50 GS_BASE=gs://nativeclient-archive2/toolchain 56 GS_BASE=gs://nativeclient-archive2/toolchain
51 /b/build/scripts/slave/gsutil -h Cache-Control:no-cache cp -a public-read \ 57 /b/build/scripts/slave/gsutil -h Cache-Control:no-cache cp -a public-read \
52 arm-untrusted.tgz \ 58 pnacl-toolchain.tgz \
53 ${GS_BASE}/${BUILDBOT_GOT_REVISION}/naclsdk_linux_arm-untrusted${SUFFIX}.tgz 59 ${GS_BASE}/${BUILDBOT_GOT_REVISION}/naclsdk_${TOOLCHAIN_LABEL}.tgz
54 /b/build/scripts/slave/gsutil -h Cache-Control:no-cache cp -a public-read \ 60 /b/build/scripts/slave/gsutil -h Cache-Control:no-cache cp -a public-read \
55 arm-untrusted.tgz \ 61 pnacl-toolchain.tgz \
56 ${GS_BASE}/latest/naclsdk_linux_arm-untrusted${SUFFIX}.tgz 62 ${GS_BASE}/latest/naclsdk_${TOOLCHAIN_LABEL}.tgz
57 63
58 echo @@@BUILD_STEP test-x86-32@@@ 64 for arch in ${RUN_TESTS} ; do
59 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-x86-32 || 65 echo @@@BUILD_STEP test-${arch}@@@
60 (RETCODE=$? && echo @@@STEP_FAILURE@@@) 66 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-${arch} ||
61 67 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
62 echo @@@BUILD_STEP test-x86-32-pic@@@ 68 done
63 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-x86-32-pic ||
64 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
65
66 # Don't build arm + 64-bit on 32-bit builder.
67 # We can't build 64-bit trusted components on a 32-bit system.
68 # Arm disabled on 32-bit because it runs out of memory.
69 if [[ ${BUILDBOT_BUILDERNAME} != lucid32-toolchain_arm-untrusted ]]; then
70 echo @@@BUILD_STEP test-arm@@@
71 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-arm ||
72 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
73
74 echo @@@BUILD_STEP test-arm-pic@@@
75 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-arm-pic ||
76 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
77
78 echo @@@BUILD_STEP test-x86-64@@@
79 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-x86-64 ||
80 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
81
82 echo @@@BUILD_STEP test-x86-64-pic@@@
83 UTMAN_BUILDBOT=true tools/llvm/utman.sh test-x86-64-pic ||
84 (RETCODE=$? && echo @@@STEP_FAILURE@@@)
85 fi
86 69
87 exit ${RETCODE} 70 exit ${RETCODE}
OLDNEW
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698