From a957e9379d11f2982d615f92c30580a57ea8bb40 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 2 Feb 2019 13:54:47 +0100 Subject: tests: Convert lavf image tests to non-legacy test scripts Rename some tests in the process for consistency and simplicity. --- tests/fate-run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/fate-run.sh') diff --git a/tests/fate-run.sh b/tests/fate-run.sh index b20e013..a9dfebc 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -197,6 +197,17 @@ lavf_audio(){ do_avconv_crc $file $DEC_OPTS $3 -i $target_path/$file } +lavf_image(){ + t="${test#lavf-}" + outdir="tests/data/images/$t" + mkdir -p "$outdir" + file=${outdir}/%02d.$t + run_avconv $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $1 $ENC_OPTS $2 -frames 12 -y -qscale 10 $target_path/$file + do_md5sum ${outdir}/02.$t + do_avconv_crc $file $DEC_OPTS $2 -i $target_path/$file + echo $(wc -c ${outdir}/02.$t) +} + lavf_image2pipe(){ t="${test#lavf-}" t="${t%pipe}" -- cgit v1.1