uvg266/.travis-script.sh

21 lines
438 B
Bash
Raw Normal View History

#!/bin/sh
set -ev
2015-12-21 12:59:09 +00:00
./autogen.sh
./configure
make --jobs=2
2015-12-21 12:59:09 +00:00
if [ -n "$VALGRIND_TEST" ]; then
2015-12-21 12:59:09 +00:00
libtool execute valgrind --leak-check=full --error-exitcode=1 -- \
src/kvazaar -i mandelbrot_${TEST_DIM}.yuv --input-res=${TEST_DIM} -o /dev/null \
$VALGRIND_TEST
elif [ -n "$EXPECTED_STATUS" ]; then
set +e
2015-12-21 12:59:09 +00:00
libtool execute src/kvazaar $PARAMS
EXIT_STATUS=$?
set -e
[ "$EXIT_STATUS" = "$EXPECTED_STATUS" ]
else
2015-12-21 12:59:09 +00:00
make check
fi