| 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 EXTRA_CONFIGURE_ARGS="--disable-pie --disable-shared" | 7 EXTRA_CONFIGURE_ARGS="--disable-pie --disable-shared" |
| 10 | 8 |
| 11 RunTest() { | 9 RunTest() { |
| 12 naclport_test/crypto_box_test | 10 naclport_test/crypto_box_test |
| 13 } | 11 } |
| 14 | 12 |
| 15 TestStep() { | 13 TestStep() { |
| 16 Banner "Testing ${PACKAGE_NAME}" | 14 Banner "Testing ${PACKAGE_NAME}" |
| 17 MakeDir naclport_test/lib | 15 MakeDir naclport_test/lib |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 TranslateAndWriteSelLdrScript ${pexe} x86-64 crypto_box_test.x86-64${EXT} c
rypto_box_test) | 50 TranslateAndWriteSelLdrScript ${pexe} x86-64 crypto_box_test.x86-64${EXT} c
rypto_box_test) |
| 53 RunTest | 51 RunTest |
| 54 echo "Tests OK" | 52 echo "Tests OK" |
| 55 # skip running tests on arm | 53 # skip running tests on arm |
| 56 elif [ `uname -m` == "${NACL_ARCH_ALT}" ]; then | 54 elif [ `uname -m` == "${NACL_ARCH_ALT}" ]; then |
| 57 WriteSelLdrScript naclport_test/crypto_box_test crypto_box_test${EXT} | 55 WriteSelLdrScript naclport_test/crypto_box_test crypto_box_test${EXT} |
| 58 RunTest | 56 RunTest |
| 59 echo "Tests OK" | 57 echo "Tests OK" |
| 60 fi | 58 fi |
| 61 } | 59 } |
| 62 | |
| 63 PackageInstall | |
| 64 exit 0 | |
| OLD | NEW |