From ecefc5ddbd9ea2792a9a3982992d9524a2ef8651 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Sun, 7 Mar 2010 19:50:56 +0000
Subject: [PATCH] regtest: run seektest on image sequences

Seeking on image sequences doesn't actually work, so this
test isn't very useful until that capability is added.

Originally committed as revision 22286 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 tests/ref/seek/{lavf02.bmp.ref => %02d.bmp.ref}   | 0
 tests/ref/seek/{lavf02.jpg.ref => %02d.jpg.ref}   | 2 +-
 tests/ref/seek/{lavf02.pcx.ref => %02d.pcx.ref}   | 2 +-
 tests/ref/seek/{lavf02.pgm.ref => %02d.pgm.ref}   | 0
 tests/ref/seek/{lavf02.ppm.ref => %02d.ppm.ref}   | 0
 tests/ref/seek/{lavf02.sgi.ref => %02d.sgi.ref}   | 2 +-
 tests/ref/seek/{lavf02.tga.ref => %02d.tga.ref}   | 0
 tests/ref/seek/{lavf02.tiff.ref => %02d.tiff.ref} | 2 +-
 tests/seek-regression.sh                          | 3 ++-
 9 files changed, 6 insertions(+), 5 deletions(-)
 rename tests/ref/seek/{lavf02.bmp.ref => %02d.bmp.ref} (100%)
 rename tests/ref/seek/{lavf02.jpg.ref => %02d.jpg.ref} (98%)
 rename tests/ref/seek/{lavf02.pcx.ref => %02d.pcx.ref} (98%)
 rename tests/ref/seek/{lavf02.pgm.ref => %02d.pgm.ref} (100%)
 rename tests/ref/seek/{lavf02.ppm.ref => %02d.ppm.ref} (100%)
 rename tests/ref/seek/{lavf02.sgi.ref => %02d.sgi.ref} (98%)
 rename tests/ref/seek/{lavf02.tga.ref => %02d.tga.ref} (100%)
 rename tests/ref/seek/{lavf02.tiff.ref => %02d.tiff.ref} (98%)

diff --git a/tests/ref/seek/lavf02.bmp.ref b/tests/ref/seek/%02d.bmp.ref
similarity index 100%
rename from tests/ref/seek/lavf02.bmp.ref
rename to tests/ref/seek/%02d.bmp.ref
diff --git a/tests/ref/seek/lavf02.jpg.ref b/tests/ref/seek/%02d.jpg.ref
similarity index 98%
rename from tests/ref/seek/lavf02.jpg.ref
rename to tests/ref/seek/%02d.jpg.ref
index 5f87539a229..d968f3e0724 100644
--- a/tests/ref/seek/lavf02.jpg.ref
+++ b/tests/ref/seek/%02d.jpg.ref
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size: 31763
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size: 31351
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
diff --git a/tests/ref/seek/lavf02.pcx.ref b/tests/ref/seek/%02d.pcx.ref
similarity index 98%
rename from tests/ref/seek/lavf02.pcx.ref
rename to tests/ref/seek/%02d.pcx.ref
index 6b724276666..418674f7a23 100644
--- a/tests/ref/seek/lavf02.pcx.ref
+++ b/tests/ref/seek/%02d.pcx.ref
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:364147
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:364047
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
diff --git a/tests/ref/seek/lavf02.pgm.ref b/tests/ref/seek/%02d.pgm.ref
similarity index 100%
rename from tests/ref/seek/lavf02.pgm.ref
rename to tests/ref/seek/%02d.pgm.ref
diff --git a/tests/ref/seek/lavf02.ppm.ref b/tests/ref/seek/%02d.ppm.ref
similarity index 100%
rename from tests/ref/seek/lavf02.ppm.ref
rename to tests/ref/seek/%02d.ppm.ref
diff --git a/tests/ref/seek/lavf02.sgi.ref b/tests/ref/seek/%02d.sgi.ref
similarity index 98%
rename from tests/ref/seek/lavf02.sgi.ref
rename to tests/ref/seek/%02d.sgi.ref
index 9c717470053..b2f605ad94a 100644
--- a/tests/ref/seek/lavf02.sgi.ref
+++ b/tests/ref/seek/%02d.sgi.ref
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:308151
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:308336
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
diff --git a/tests/ref/seek/lavf02.tga.ref b/tests/ref/seek/%02d.tga.ref
similarity index 100%
rename from tests/ref/seek/lavf02.tga.ref
rename to tests/ref/seek/%02d.tga.ref
diff --git a/tests/ref/seek/lavf02.tiff.ref b/tests/ref/seek/%02d.tiff.ref
similarity index 98%
rename from tests/ref/seek/lavf02.tiff.ref
rename to tests/ref/seek/%02d.tiff.ref
index c980eabea5f..1b49f2f2e79 100644
--- a/tests/ref/seek/lavf02.tiff.ref
+++ b/tests/ref/seek/%02d.tiff.ref
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307131
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307124
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
diff --git a/tests/seek-regression.sh b/tests/seek-regression.sh
index 59befd0f2ee..ae0ef6767e5 100755
--- a/tests/seek-regression.sh
+++ b/tests/seek-regression.sh
@@ -14,9 +14,10 @@ refdir="$src_path/tests/ref/seek"
 datadir="tests/data"
 
 list=$(ls -1 $datadir/vsynth2/* $datadir/acodec/* $datadir/lavf/*)
+imgs=$(for i in $datadir/images/*; do echo "$i/%02d.${i##*/}"; done)
 err=0
 
-for i in $list ; do
+for i in $list $imgs; do
     base=$(basename $i)
     logfile="$datadir/$base.seek.regression"
     reffile="$refdir/$base.ref"
-- 
GitLab