| Index: ports/giflib/build.sh
|
| diff --git a/ports/giflib/build.sh b/ports/giflib/build.sh
|
| index 754e3edccff2605ea654167ff644931cb66faf3b..1538bb3f04674e0d2551ca7b2878e262b2d1a0cf 100644
|
| --- a/ports/giflib/build.sh
|
| +++ b/ports/giflib/build.sh
|
| @@ -6,25 +6,24 @@ EXTRA_CONFIGURE_ARGS="--enable-x11=no"
|
| EXECUTABLES="util/rgb2gif${NACL_EXEEXT}"
|
|
|
| RunTest() {
|
| - util/rgb2gif -s 320 200 < ${SRC_DIR}/tests/porsche.rgb > porsche.gif
|
| + echo "Running util/rgb2gif on porsche.rgb"
|
| + util/rgb2gif -s 320 200 < ${SRC_DIR}/tests/porsche.rgb > porsche.gif
|
| # TODO(sbc): do some basic checks on the resulting porsche.gif
|
| }
|
|
|
| TestStep() {
|
| - if [ "${NACL_LIBC}" = "glibc" ]; then
|
| + if [[ ${NACL_LIBC} == glibc ]]; then
|
| # TODO(sbc): find out why glibc version of rgb2gif is crashing
|
| return
|
| fi
|
|
|
| - if [ "${NACL_ARCH}" = "pnacl" ]; then
|
| - local pexe=rgb2gif${NACL_EXEEXT}
|
| - (cd util;
|
| - TranslateAndWriteLauncherScript ${pexe} x86-32 rgb2gif.x86-32.nexe rgb2gif)
|
| - RunTest
|
| - (cd util;
|
| - TranslateAndWriteLauncherScript ${pexe} x86-64 rgb2gif.x86-64.nexe rgb2gif)
|
| + RunTest
|
| +
|
| + if [[ ${NACL_ARCH} == pnacl ]]; then
|
| + # Re-run tests with arm and x86-32 translations
|
| + WriteLauncherScript util/rgb2gif rgb2gif.x86-32.nexe
|
| RunTest
|
| - else
|
| + WriteLauncherScript util/rgb2gif rgb2gif.arm.nexe
|
| RunTest
|
| fi
|
| }
|
|
|