Add bitstream check to valgrind tests

This commit is contained in:
Ari Koivula 2016-05-31 13:35:20 +03:00
parent 3590a09cf8
commit 7947b18649
2 changed files with 5 additions and 2 deletions

View file

@ -7,4 +7,6 @@ if [ -n "$VALGRIND_TEST" ]; then
7z x ffmpeg-release-32bit-static.tar
chmod +x ./ffmpeg-2.6.3-32bit-static/ffmpeg
./ffmpeg-2.6.3-32bit-static/ffmpeg -f lavfi -i "mandelbrot=size=${TEST_DIM}:end_pts=10" -vframes $TEST_FRAMES -pix_fmt yuv420p mandelbrot_${TEST_DIM}.yuv
wget http://ultravideo.cs.tut.fi/ubuntu-12.04-hmdec-16.10.tgz
tar -xzvf ubuntu-12.04-hmdec-16.10.tgz
fi

View file

@ -7,8 +7,9 @@ make --jobs=2 V=1
if [ -n "$VALGRIND_TEST" ]; then
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
src/kvazaar -i mandelbrot_${TEST_DIM}.yuv --input-res=${TEST_DIM} \
-o test.265 $VALGRIND_TEST
./hmdec-16.10 -b test.265
elif [ -n "$EXPECTED_STATUS" ]; then
set +e
libtool execute src/kvazaar $PARAMS