mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
c51323b0de
Checks that kvazaar exits with code 1 when given an input resolution that is not a power of two.
21 lines
410 B
Bash
Executable file
21 lines
410 B
Bash
Executable file
#!/bin/sh
|
|
set -ev
|
|
|
|
if [ -n "$VALGRIND_TEST" ]; then
|
|
cd src
|
|
make debug
|
|
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
|
|
cd src
|
|
make
|
|
set +e
|
|
./kvazaar $PARAMS
|
|
EXIT_STATUS=$?
|
|
set -e
|
|
[ "$EXIT_STATUS" = "$EXPECTED_STATUS" ]
|
|
else
|
|
cd src
|
|
make
|
|
make tests
|
|
fi
|