| OLD | NEW |
| 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 set -u | 6 set -u |
| 7 set -e | 7 set -e |
| 8 set -x | 8 set -x |
| 9 | 9 |
| 10 # Script assumed to be run in native_client/ | 10 # Script assumed to be run in native_client/ |
| 11 if [[ $(pwd) != */native_client ]]; then | 11 if [[ $(pwd) != */native_client ]]; then |
| 12 echo 'ERROR: must be run in native_client/ directory!' | 12 echo 'ERROR: must be run in native_client/ directory!' |
| 13 echo " (Current directory is $(pwd))" | 13 echo " (Current directory is $(pwd))" |
| 14 exit 1 | 14 exit 1 |
| 15 fi | 15 fi |
| 16 | 16 |
| 17 echo "****************** Environment ******************" | 17 echo "****************** Environment ******************" |
| 18 env | 18 env |
| 19 | 19 |
| 20 TOOLCHAIN_LABEL="pnacl_linux_x86_64_newlib" | 20 TOOLCHAIN_LABEL="pnacl_linux_x86_64_newlib" |
| 21 GSBASE="gs://nativeclient-archive2/pnacl/between_bots/llvm" | 21 GSBASE="gs://nativeclient-archive2/pnacl/between_bots/llvm" |
| 22 | 22 |
| 23 export UTMAN_BUILDBOT=true | 23 export PNACL_BUILDBOT=true |
| 24 | 24 |
| 25 GSUTIL=buildbot/gsutil.sh | 25 GSUTIL=buildbot/gsutil.sh |
| 26 UTMAN=tools/llvm/utman.sh | 26 PNACL_BUILD=pnacl/build.sh |
| 27 MERGE_TOOL=tools/llvm/merge-tool.sh | 27 MERGE_TOOL=tools/llvm/merge-tool.sh |
| 28 SPEC2K_SCRIPT=buildbot/buildbot_spec2k.sh | 28 SPEC2K_SCRIPT=buildbot/buildbot_spec2k.sh |
| 29 PNACL_SCRIPT=buildbot/buildbot_pnacl.sh | 29 PNACL_SCRIPT=buildbot/buildbot_pnacl.sh |
| 30 | 30 |
| 31 clobber() { | 31 clobber() { |
| 32 echo @@@BUILD_STEP clobber@@@ | 32 echo @@@BUILD_STEP clobber@@@ |
| 33 rm -rf scons-out | 33 rm -rf scons-out |
| 34 rm -rf toolchain/pnacl* | 34 rm -rf toolchain/pnacl* |
| 35 # Try to clobber /tmp/ contents to clear temporary chrome files. | 35 # Try to clobber /tmp/ contents to clear temporary chrome files. |
| 36 rm -rf /tmp/.org.chromium.Chromium.* | 36 rm -rf /tmp/.org.chromium.Chromium.* |
| (...skipping 28 matching lines...) Expand all Loading... |
| 65 ${MERGE_TOOL} auto ${BUILDBOT_REVISION} || ret=$? | 65 ${MERGE_TOOL} auto ${BUILDBOT_REVISION} || ret=$? |
| 66 if [ ${ret} -eq 55 ] ; then | 66 if [ ${ret} -eq 55 ] ; then |
| 67 echo '@@@BUILD_STEP No changes, skipping tests@@@' | 67 echo '@@@BUILD_STEP No changes, skipping tests@@@' |
| 68 exit 0 | 68 exit 0 |
| 69 elif [ ${ret} -ne 0 ]; then | 69 elif [ ${ret} -ne 0 ]; then |
| 70 echo '@@@STEP_FAILURE@@@' | 70 echo '@@@STEP_FAILURE@@@' |
| 71 exit 1 | 71 exit 1 |
| 72 fi | 72 fi |
| 73 | 73 |
| 74 echo "@@@BUILD_STEP show-config@@@" | 74 echo "@@@BUILD_STEP show-config@@@" |
| 75 ${UTMAN} show-config | 75 ${PNACL_BUILD} show-config |
| 76 | 76 |
| 77 # Variables for utman.sh | 77 # Variables for build.sh |
| 78 export LLVM_PROJECT_REV=${BUILDBOT_REVISION} | 78 export LLVM_PROJECT_REV=${BUILDBOT_REVISION} |
| 79 export UTMAN_MERGE_TESTING=true | 79 export PNACL_MERGE_TESTING=true |
| 80 export UTMAN_PRUNE=true | 80 export PNACL_PRUNE=true |
| 81 | 81 |
| 82 # Build the un-sandboxed toolchain | 82 # Build the un-sandboxed toolchain |
| 83 echo "@@@BUILD_STEP compile_toolchain@@@" | 83 echo "@@@BUILD_STEP compile_toolchain@@@" |
| 84 ${UTMAN} clean | 84 ${PNACL_BUILD} clean |
| 85 ${UTMAN} untrusted_sdk pnaclsdk.tgz | 85 ${PNACL_BUILD} untrusted_sdk pnaclsdk.tgz |
| 86 | 86 |
| 87 #echo "@@@BUILD_STEP archive_toolchain@@@" | 87 #echo "@@@BUILD_STEP archive_toolchain@@@" |
| 88 #${GSUTIL} cp pnaclsdk.tgz \ | 88 #${GSUTIL} cp pnaclsdk.tgz \ |
| 89 # ${GSBASE}/${BUILDBOT_BUILDNUMBER}/pnaclsdk.tgz | 89 # ${GSBASE}/${BUILDBOT_BUILDNUMBER}/pnaclsdk.tgz |
| 90 | 90 |
| 91 # For now, run all these on a single bot, since the waterfall | 91 # For now, run all these on a single bot, since the waterfall |
| 92 # won't behave correctly otherwise. | 92 # won't behave correctly otherwise. |
| 93 scons-bot | 93 scons-bot |
| 94 spec2k-x86-bot | 94 spec2k-x86-bot |
| 95 spec2k-arm-bot | 95 spec2k-arm-bot |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 exit 1 | 132 exit 1 |
| 133 fi | 133 fi |
| 134 | 134 |
| 135 if [ "$(type -t $1)" != "function" ]; then | 135 if [ "$(type -t $1)" != "function" ]; then |
| 136 Usage | 136 Usage |
| 137 echo "ERROR: unknown mode '$1'." >&2 | 137 echo "ERROR: unknown mode '$1'." >&2 |
| 138 exit 1 | 138 exit 1 |
| 139 fi | 139 fi |
| 140 | 140 |
| 141 "$@" | 141 "$@" |
| OLD | NEW |