summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2019-02-02 13:54:47 +0100
committerDiego Biurrun <diego@biurrun.de>2019-02-16 18:15:30 +0100
commita957e9379d11f2982d615f92c30580a57ea8bb40 (patch)
treed3e972586cbc3eb6aefeae9a17d5ec3c19af6f31 /tests/fate-run.sh
parenteb8a8115994434b548523cf0bca6a4a74784e79c (diff)
tests: Convert lavf image tests to non-legacy test scripts
Rename some tests in the process for consistency and simplicity.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index b20e013d6b..a9dfebc364 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}"