summaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-03-14 14:24:19 -0300
committerJames Almer <jamrial@gmail.com>2019-03-14 14:30:08 -0300
commitc2631dfd0a0a12050cc1765fd41702c5e93abee5 (patch)
tree68755106bd63e8778238f3b7efb8f6d6cdb46f44 /tests/fate-run.sh
parent29929fc8e2449d2db8bd144b2badc8d1e6347412 (diff)
parenta957e9379d11f2982d615f92c30580a57ea8bb40 (diff)
downloadffmpeg-streaming-c2631dfd0a0a12050cc1765fd41702c5e93abee5.zip
ffmpeg-streaming-c2631dfd0a0a12050cc1765fd41702c5e93abee5.tar.gz
Merge commit 'a957e9379d11f2982d615f92c30580a57ea8bb40'
* commit 'a957e9379d11f2982d615f92c30580a57ea8bb40': tests: Convert lavf image tests to non-legacy test scripts Merged-by: James Almer <jamrial@gmail.com>
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 e65184b..a141488 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -290,6 +290,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 $1 -f image2 -c:v pgmyuv -i $raw_src "$ENC_OPTS -metadata title=lavftest" $2 -frames 13 -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}"
OpenPOWER on IntegriCloud