blob: cc5338730f7c7d4d5bcd90aff319ca1ee28edd5b [file] [log] [blame]
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EXTRA_CONFIGURE_ARGS="--enable-x11=no"
EXECUTABLES="util/rgb2gif${NACL_EXEEXT}"
RunTest() {
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
# TODO(sbc): find out why glibc version of rgb2gif is crashing
return
fi
RunTest
if [[ ${NACL_ARCH} == pnacl ]]; then
# Re-run tests with arm and x86-32 translations
WriteLauncherScript util/rgb2gif rgb2gif.x86-32.nexe
RunTest
if [[ ${SEL_LDR_SUPPORTS_ARM} == 1 ]]; then
WriteLauncherScript util/rgb2gif rgb2gif.arm.nexe
RunTest
fi
fi
}
BuildStep() {
# Limit the subdirecorties that get built by make. This is to
# avoid the 'doc' directory which has a dependency on 'xmlto'.
# If 'xmlto' were added to the host build dependencies this could
# be removed.
export PATH=${NACL_BIN_PATH}:${PATH}
make -j${OS_JOBS} SUBDIRS="lib util"
}