2015-05-05 14:14:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
2015-12-21 12:59:09 +00:00
|
|
|
./autogen.sh
|
|
|
|
./configure
|
2016-01-19 14:19:43 +00:00
|
|
|
make --jobs=2
|
2015-12-21 12:59:09 +00:00
|
|
|
|
2015-07-17 07:03:51 +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
|
2015-07-17 07:03:51 +00:00
|
|
|
elif [ -n "$EXPECTED_STATUS" ]; then
|
|
|
|
set +e
|
2015-12-21 12:59:09 +00:00
|
|
|
libtool execute src/kvazaar $PARAMS
|
2015-07-17 07:03:51 +00:00
|
|
|
EXIT_STATUS=$?
|
|
|
|
set -e
|
|
|
|
[ "$EXIT_STATUS" = "$EXPECTED_STATUS" ]
|
2015-05-05 14:14:19 +00:00
|
|
|
else
|
2015-12-21 12:59:09 +00:00
|
|
|
make check
|
2015-05-05 14:14:19 +00:00
|
|
|
fi
|