2015-05-05 14:14:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
2015-12-21 12:59:09 +00:00
|
|
|
./autogen.sh
|
2016-02-17 15:47:36 +00:00
|
|
|
./configure $KVZ_CONFIGURE_ARGS
|
2016-01-19 14:24:08 +00:00
|
|
|
make --jobs=2 V=1
|
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
|