| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 if ./example; then \ | 45 if ./example; then \ |
| 46 echo ' *** zlib test OK ***'; \ | 46 echo ' *** zlib test OK ***'; \ |
| 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 if [ "${NACL_ARCH}" = "pnacl" ]; then | 55 RunExample |
| 56 local minigzip_pexe="minigzip${NACL_EXEEXT}" | 56 RunMinigzip |
| 57 local example_pexe="example${NACL_EXEEXT}" | 57 if [ "${NACL_ARCH}" = "pnacl" ]; then |
| 58 local minigzip_script="minigzip" | 58 # Run the minigzip tests again but with x86-32 and arm translations |
| 59 local example_script="example" | 59 WriteLauncherScript minigzip minigzip.x86-32.nexe |
| 60 TranslateAndWriteLauncherScript "${minigzip_pexe}" x86-32 \ | |
| 61 minigzip.x86-32.nexe "${minigzip_script}" | |
| 62 RunMinigzip | 60 RunMinigzip |
| 63 TranslateAndWriteLauncherScript "${minigzip_pexe}" x86-64 \ | 61 WriteLauncherScript minigzip minigzip.arm.nexe |
| 64 minigzip.x86-64.nexe "${minigzip_script}" | |
| 65 RunMinigzip | 62 RunMinigzip |
| 66 TranslateAndWriteLauncherScript "${example_pexe}" x86-32 \ | |
| 67 example.x86-32.nexe "${example_script}" | |
| 68 RunExample | |
| 69 TranslateAndWriteLauncherScript "${example_pexe}" x86-64 \ | |
| 70 example.x86-64.nexe "${example_script}" | |
| 71 RunExample | |
| 72 else | |
| 73 RunMinigzip | |
| 74 RunExample | |
| 75 fi | 63 fi |
| 76 } | 64 } |
| OLD | NEW |