aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-07 19:50:56 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-07 19:50:56 +0000
commitecefc5ddbd9ea2792a9a3982992d9524a2ef8651 (patch)
treee2961a3840ff10c50cf5693a89e08cd2bff03a01 /tests
parent38c3b6e73ebe56d7cc75b53360331439bf290b2a (diff)
downloadffmpeg-ecefc5ddbd9ea2792a9a3982992d9524a2ef8651.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/seek/%02d.bmp.ref (renamed from tests/ref/seek/lavf02.bmp.ref)0
-rw-r--r--tests/ref/seek/%02d.jpg.ref (renamed from tests/ref/seek/lavf02.jpg.ref)2
-rw-r--r--tests/ref/seek/%02d.pcx.ref (renamed from tests/ref/seek/lavf02.pcx.ref)2
-rw-r--r--tests/ref/seek/%02d.pgm.ref (renamed from tests/ref/seek/lavf02.pgm.ref)0
-rw-r--r--tests/ref/seek/%02d.ppm.ref (renamed from tests/ref/seek/lavf02.ppm.ref)0
-rw-r--r--tests/ref/seek/%02d.sgi.ref27
-rw-r--r--tests/ref/seek/%02d.tga.ref (renamed from tests/ref/seek/lavf02.tga.ref)0
-rw-r--r--tests/ref/seek/%02d.tiff.ref27
-rw-r--r--tests/ref/seek/lavf02.sgi.ref27
-rw-r--r--tests/ref/seek/lavf02.tiff.ref27
-rwxr-xr-xtests/seek-regression.sh3
11 files changed, 58 insertions, 57 deletions
diff --git a/tests/ref/seek/lavf02.bmp.ref b/tests/ref/seek/%02d.bmp.ref
index d60729b24c..d60729b24c 100644
--- a/tests/ref/seek/lavf02.bmp.ref
+++ b/tests/ref/seek/%02d.bmp.ref
diff --git a/tests/ref/seek/lavf02.jpg.ref b/tests/ref/seek/%02d.jpg.ref
index 5f87539a22..d968f3e072 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
index 6b72427666..418674f7a2 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
index 2836367b04..2836367b04 100644
--- a/tests/ref/seek/lavf02.pgm.ref
+++ b/tests/ref/seek/%02d.pgm.ref
diff --git a/tests/ref/seek/lavf02.ppm.ref b/tests/ref/seek/%02d.ppm.ref
index 6376b5ec4a..6376b5ec4a 100644
--- a/tests/ref/seek/lavf02.ppm.ref
+++ b/tests/ref/seek/%02d.ppm.ref
diff --git a/tests/ref/seek/%02d.sgi.ref b/tests/ref/seek/%02d.sgi.ref
new file mode 100644
index 0000000000..b2f605ad94
--- /dev/null
+++ b/tests/ref/seek/%02d.sgi.ref
@@ -0,0 +1,27 @@
+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
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret:-EINVAL st: 0 flags:0 ts: 0.360000
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret:-EINVAL st:-1 flags:1 ts: 0.200839
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret:-EINVAL st:-1 flags:0 ts: 0.460008
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf02.tga.ref b/tests/ref/seek/%02d.tga.ref
index 8f9075364f..8f9075364f 100644
--- a/tests/ref/seek/lavf02.tga.ref
+++ b/tests/ref/seek/%02d.tga.ref
diff --git a/tests/ref/seek/%02d.tiff.ref b/tests/ref/seek/%02d.tiff.ref
new file mode 100644
index 0000000000..1b49f2f2e7
--- /dev/null
+++ b/tests/ref/seek/%02d.tiff.ref
@@ -0,0 +1,27 @@
+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
+ret:-EINVAL st: 0 flags:1 ts:-0.320000
+ret:-EINVAL st:-1 flags:0 ts: 2.576668
+ret:-EINVAL st:-1 flags:1 ts: 1.470835
+ret:-EINVAL st: 0 flags:0 ts: 0.360000
+ret:-EINVAL st: 0 flags:1 ts:-0.760000
+ret:-EINVAL st:-1 flags:0 ts: 2.153336
+ret:-EINVAL st:-1 flags:1 ts: 1.047503
+ret:-EINVAL st: 0 flags:0 ts:-0.040000
+ret:-EINVAL st: 0 flags:1 ts: 2.840000
+ret:-EINVAL st:-1 flags:0 ts: 1.730004
+ret:-EINVAL st:-1 flags:1 ts: 0.624171
+ret:-EINVAL st: 0 flags:0 ts:-0.480000
+ret:-EINVAL st: 0 flags:1 ts: 2.400000
+ret:-EINVAL st:-1 flags:0 ts: 1.306672
+ret:-EINVAL st:-1 flags:1 ts: 0.200839
+ret:-EINVAL st: 0 flags:0 ts:-0.920000
+ret:-EINVAL st: 0 flags:1 ts: 2.000000
+ret:-EINVAL st:-1 flags:0 ts: 0.883340
+ret:-EINVAL st:-1 flags:1 ts:-0.222493
+ret:-EINVAL st: 0 flags:0 ts: 2.680000
+ret:-EINVAL st: 0 flags:1 ts: 1.560000
+ret:-EINVAL st:-1 flags:0 ts: 0.460008
+ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf02.sgi.ref b/tests/ref/seek/lavf02.sgi.ref
deleted file mode 100644
index 9c71747005..0000000000
--- a/tests/ref/seek/lavf02.sgi.ref
+++ /dev/null
@@ -1,27 +0,0 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:308151
-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
-ret:-EINVAL st: 0 flags:1 ts:-0.320000
-ret:-EINVAL st:-1 flags:0 ts: 2.576668
-ret:-EINVAL st:-1 flags:1 ts: 1.470835
-ret:-EINVAL st: 0 flags:0 ts: 0.360000
-ret:-EINVAL st: 0 flags:1 ts:-0.760000
-ret:-EINVAL st:-1 flags:0 ts: 2.153336
-ret:-EINVAL st:-1 flags:1 ts: 1.047503
-ret:-EINVAL st: 0 flags:0 ts:-0.040000
-ret:-EINVAL st: 0 flags:1 ts: 2.840000
-ret:-EINVAL st:-1 flags:0 ts: 1.730004
-ret:-EINVAL st:-1 flags:1 ts: 0.624171
-ret:-EINVAL st: 0 flags:0 ts:-0.480000
-ret:-EINVAL st: 0 flags:1 ts: 2.400000
-ret:-EINVAL st:-1 flags:0 ts: 1.306672
-ret:-EINVAL st:-1 flags:1 ts: 0.200839
-ret:-EINVAL st: 0 flags:0 ts:-0.920000
-ret:-EINVAL st: 0 flags:1 ts: 2.000000
-ret:-EINVAL st:-1 flags:0 ts: 0.883340
-ret:-EINVAL st:-1 flags:1 ts:-0.222493
-ret:-EINVAL st: 0 flags:0 ts: 2.680000
-ret:-EINVAL st: 0 flags:1 ts: 1.560000
-ret:-EINVAL st:-1 flags:0 ts: 0.460008
-ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/tests/ref/seek/lavf02.tiff.ref b/tests/ref/seek/lavf02.tiff.ref
deleted file mode 100644
index c980eabea5..0000000000
--- a/tests/ref/seek/lavf02.tiff.ref
+++ /dev/null
@@ -1,27 +0,0 @@
-ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:307131
-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
-ret:-EINVAL st: 0 flags:1 ts:-0.320000
-ret:-EINVAL st:-1 flags:0 ts: 2.576668
-ret:-EINVAL st:-1 flags:1 ts: 1.470835
-ret:-EINVAL st: 0 flags:0 ts: 0.360000
-ret:-EINVAL st: 0 flags:1 ts:-0.760000
-ret:-EINVAL st:-1 flags:0 ts: 2.153336
-ret:-EINVAL st:-1 flags:1 ts: 1.047503
-ret:-EINVAL st: 0 flags:0 ts:-0.040000
-ret:-EINVAL st: 0 flags:1 ts: 2.840000
-ret:-EINVAL st:-1 flags:0 ts: 1.730004
-ret:-EINVAL st:-1 flags:1 ts: 0.624171
-ret:-EINVAL st: 0 flags:0 ts:-0.480000
-ret:-EINVAL st: 0 flags:1 ts: 2.400000
-ret:-EINVAL st:-1 flags:0 ts: 1.306672
-ret:-EINVAL st:-1 flags:1 ts: 0.200839
-ret:-EINVAL st: 0 flags:0 ts:-0.920000
-ret:-EINVAL st: 0 flags:1 ts: 2.000000
-ret:-EINVAL st:-1 flags:0 ts: 0.883340
-ret:-EINVAL st:-1 flags:1 ts:-0.222493
-ret:-EINVAL st: 0 flags:0 ts: 2.680000
-ret:-EINVAL st: 0 flags:1 ts: 1.560000
-ret:-EINVAL st:-1 flags:0 ts: 0.460008
-ret:-EINVAL st:-1 flags:1 ts:-0.645825
diff --git a/tests/seek-regression.sh b/tests/seek-regression.sh
index 59befd0f2e..ae0ef6767e 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"