2015-05-05 14:14:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
2015-07-17 07:03:51 +00:00
|
|
|
if [ -n "$VALGRIND_TEST" ]; then
|
|
|
|
cd src
|
2015-07-28 09:00:42 +00:00
|
|
|
make debug
|
2015-07-17 07:03:51 +00:00
|
|
|
valgrind --leak-check=full --error-exitcode=1 ./kvazaar_debug -i ../mandelbrot_${TEST_DIM}.yuv --input-res=${TEST_DIM} -o /dev/null $VALGRIND_TEST
|
|
|
|
elif [ -n "$EXPECTED_STATUS" ]; then
|
2015-05-05 14:14:19 +00:00
|
|
|
cd src
|
2015-07-31 12:51:53 +00:00
|
|
|
make cli
|
2015-07-17 07:03:51 +00:00
|
|
|
set +e
|
|
|
|
./kvazaar $PARAMS
|
|
|
|
EXIT_STATUS=$?
|
|
|
|
set -e
|
|
|
|
[ "$EXIT_STATUS" = "$EXPECTED_STATUS" ]
|
2015-05-05 14:14:19 +00:00
|
|
|
else
|
|
|
|
cd src
|
2015-07-28 09:00:42 +00:00
|
|
|
make
|
|
|
|
make tests
|
2015-05-05 14:14:19 +00:00
|
|
|
fi
|