| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 TestStep() { | 7 TestStep() { |
| 10 return 0 | 8 return 0 |
| 11 Banner "Testing ${PACKAGE_NAME}" | 9 Banner "Testing ${PACKAGE_NAME}" |
| 12 | 10 |
| 13 if [ ${NACL_ARCH} == "pnacl" ]; then | 11 if [ ${NACL_ARCH} == "pnacl" ]; then |
| 14 # Run once for each architecture. | 12 # Run once for each architecture. |
| 15 local pexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t
est/testil | 13 local pexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t
est/testil |
| 16 local script=${pexe}.sh | 14 local script=${pexe}.sh |
| 17 | 15 |
| 18 TranslateAndWriteSelLdrScript ${pexe} x86-32 ${pexe}.x86-32.nexe ${script} | 16 TranslateAndWriteSelLdrScript ${pexe} x86-32 ${pexe}.x86-32.nexe ${script} |
| 19 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check | 17 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check |
| 20 | 18 |
| 21 TranslateAndWriteSelLdrScript ${pexe} x86-64 ${pexe}.x86-64.nexe ${script} | 19 TranslateAndWriteSelLdrScript ${pexe} x86-64 ${pexe}.x86-64.nexe ${script} |
| 22 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check | 20 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check |
| 23 else | 21 else |
| 24 local nexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t
est/testil | 22 local nexe=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/t
est/testil |
| 25 local script=${nexe}.sh | 23 local script=${nexe}.sh |
| 26 | 24 |
| 27 WriteSelLdrScript ${script} ${nexe} | 25 WriteSelLdrScript ${script} ${nexe} |
| 28 | 26 |
| 29 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check | 27 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/${NACL_BUILD_SUBDIR}/test && m
ake check |
| 30 fi | 28 fi |
| 31 } | 29 } |
| 32 | |
| 33 | |
| 34 PackageInstall | |
| 35 exit 0 | |
| OLD | NEW |