OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 set -o nounset | 7 set -o nounset |
8 set -o errexit | 8 set -o errexit |
9 | 9 |
10 # The script is located in "native_client/tests/spec2k" | 10 # The script is located in "native_client/tests/spec2k" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ###################################################################### | 63 ###################################################################### |
64 | 64 |
65 readonly SCONS_OUT="${NACL_ROOT}/scons-out" | 65 readonly SCONS_OUT="${NACL_ROOT}/scons-out" |
66 readonly TC_ROOT="${NACL_ROOT}/toolchain" | 66 readonly TC_ROOT="${NACL_ROOT}/toolchain" |
67 | 67 |
68 readonly ARM_TRUSTED_TC="${TC_ROOT}/linux_arm-trusted" | 68 readonly ARM_TRUSTED_TC="${TC_ROOT}/linux_arm-trusted" |
69 readonly QEMU_TOOL="${ARM_TRUSTED_TC}/run_under_qemu_arm" | 69 readonly QEMU_TOOL="${ARM_TRUSTED_TC}/run_under_qemu_arm" |
70 | 70 |
71 readonly PNACL_TC=\ | 71 readonly PNACL_TC=\ |
72 "${TC_ROOT}/pnacl_${BUILD_PLATFORM}_${BUILD_ARCH}/${PNACL_LIBMODE}" | 72 "${TC_ROOT}/pnacl_${BUILD_PLATFORM}_${BUILD_ARCH}/${PNACL_LIBMODE}" |
73 readonly ARM_LLC_NEXE=${TC_ROOT}/pnacl_translator/armv7/bin/llc.nexe | 73 readonly ARM_LLC_NEXE=${TC_ROOT}/pnacl_translator/armv7/bin/pnacl-llc.nexe |
74 | 74 |
75 readonly NNACL_TC="${TC_ROOT}/${SCONS_BUILD_PLATFORM}_x86" | 75 readonly NNACL_TC="${TC_ROOT}/${SCONS_BUILD_PLATFORM}_x86" |
76 readonly RUNNABLE_LD_X8632="${NNACL_TC}/x86_64-nacl/lib32/runnable-ld.so" | 76 readonly RUNNABLE_LD_X8632="${NNACL_TC}/x86_64-nacl/lib32/runnable-ld.so" |
77 readonly RUNNABLE_LD_X8664="${NNACL_TC}/x86_64-nacl/lib/runnable-ld.so" | 77 readonly RUNNABLE_LD_X8664="${NNACL_TC}/x86_64-nacl/lib/runnable-ld.so" |
78 | 78 |
79 gnu_size() { | 79 gnu_size() { |
80 if ! ${DO_SIZE}; then | 80 if ! ${DO_SIZE}; then |
81 return 0 | 81 return 0 |
82 fi | 82 fi |
83 # If the PNaCl toolchain is installed, prefer to use its "size". | 83 # If the PNaCl toolchain is installed, prefer to use its "size". |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 | 920 |
921 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. | 921 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. |
922 | 922 |
923 if [ "$(type -t $1)" != "function" ]; then | 923 if [ "$(type -t $1)" != "function" ]; then |
924 Usage | 924 Usage |
925 echo "ERROR: unknown mode '$1'." >&2 | 925 echo "ERROR: unknown mode '$1'." >&2 |
926 exit 1 | 926 exit 1 |
927 fi | 927 fi |
928 | 928 |
929 "$@" | 929 "$@" |
OLD | NEW |