OLD | NEW |
1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 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 EXECUTABLES="convert libyuv_unittest" | 5 EXECUTABLES="convert libyuv_unittest" |
6 | 6 |
7 # Workaround for arm-gcc bug: | 7 # Workaround for arm-gcc bug: |
8 # https://code.google.com/p/nativeclient/issues/detail?id=3205 | 8 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
9 # TODO(sbc): remove this once the issue is fixed | 9 # TODO(sbc): remove this once the issue is fixed |
10 if [ "${NACL_ARCH}" = "arm" ]; then | 10 if [ "${NACL_ARCH}" = "arm" ]; then |
11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" | 11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" |
12 fi | 12 fi |
13 | 13 |
14 EnableGlibcCompat | 14 EnableGlibcCompat |
15 | 15 |
16 if [ "${NACL_ARCH}" = "x86_64" ]; then | 16 if [ "${NACL_ARCH}" = "x86_64" ]; then |
17 NACLPORTS_CPPFLAGS+=" -DLIBYUV_DISABLE_X86=1" | 17 NACLPORTS_CPPFLAGS+=" -DLIBYUV_DISABLE_X86=1" |
18 fi | 18 fi |
19 | 19 |
20 EXTRA_CMAKE_ARGS="-DTEST=ON" | 20 EXTRA_CMAKE_ARGS="-DTEST=ON" |
| 21 EXTRA_CMAKE_ARGS+=" -DGTEST_SRC_DIR=${GTEST_SRC}" |
21 | 22 |
22 TestStep() { | 23 TestStep() { |
23 # TODO(sbc): re-enable i686 testing once we fix this gtest-releated issue: | 24 # TODO(sbc): re-enable i686 testing once we fix this gtest-releated issue: |
24 # http://crbug.com/434821 | 25 # http://crbug.com/434821 |
25 if [ "${NACL_ARCH}" = "i686" ]; then | 26 if [ "${NACL_ARCH}" = "i686" ]; then |
26 return | 27 return |
27 fi | 28 fi |
28 if [ "${NACL_ARCH}" = pnacl ]; then | 29 if [ "${NACL_ARCH}" = pnacl ]; then |
29 return | 30 return |
30 fi | 31 fi |
31 LogExecute ./libyuv_unittest.sh --gtest_filter=-libyuvTest.ARGBRect_Unaligned | 32 LogExecute ./libyuv_unittest.sh --gtest_filter=-libyuvTest.ARGBRect_Unaligned |
32 } | 33 } |
OLD | NEW |