| OLD | NEW |
| 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # zlib doesn't support custom build directories so we have | 5 # zlib doesn't support custom build directories so we have |
| 6 # to build directly in the source dir. | 6 # to build directly in the source dir. |
| 7 BUILD_DIR=${SRC_DIR} | 7 BUILD_DIR=${SRC_DIR} |
| 8 EXECUTABLES="minigzip${NACL_EXEEXT} example${NACL_EXEEXT}" | 8 EXECUTABLES="minigzip${NACL_EXEEXT} example${NACL_EXEEXT}" |
| 9 if [ "${NACL_SHARED}" = "1" ]; then | 9 if [ "${NACL_SHARED}" = "1" ]; then |
| 10 EXECUTABLES+=" libz.so.1" | 10 EXECUTABLES+=" libz.so.1" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 else \ | 47 else \ |
| 48 echo ' *** zlib test FAILED ***'; \ | 48 echo ' *** zlib test FAILED ***'; \ |
| 49 exit 1 | 49 exit 1 |
| 50 fi | 50 fi |
| 51 unset SEL_LDR_LIB_PATH | 51 unset SEL_LDR_LIB_PATH |
| 52 } | 52 } |
| 53 | 53 |
| 54 TestStep() { | 54 TestStep() { |
| 55 RunExample | 55 RunExample |
| 56 RunMinigzip | 56 RunMinigzip |
| 57 if [[ ${NACL_ARCH} == pnacl ]]; then | 57 if [[ ${NACL_ARCH} == pnacl || ${NACL_ARCH} == le32 ]]; then |
| 58 # Run the minigzip tests again but with x86-32 and arm translations | 58 # Run the minigzip tests again but with x86-32 and arm translations |
| 59 WriteLauncherScript minigzip minigzip.x86-32.nexe | 59 WriteLauncherScript minigzip minigzip.x86-32.nexe |
| 60 RunMinigzip | 60 RunMinigzip |
| 61 if [[ ${SEL_LDR_SUPPORTS_ARM} == 1 ]]; then | 61 if [[ ${SEL_LDR_SUPPORTS_ARM} == 1 ]]; then |
| 62 WriteLauncherScript minigzip minigzip.arm.nexe | 62 WriteLauncherScript minigzip minigzip.arm.nexe |
| 63 RunMinigzip | 63 RunMinigzip |
| 64 fi | 64 fi |
| 65 fi | 65 fi |
| 66 } | 66 } |
| OLD | NEW |