~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/tests/seek_test.sh

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
#feel free to clean this up ive made no attempt to write this overly portable ...
3
 
 
4
 
datadir="./data"
 
2
 
 
3
LC_ALL=C
 
4
export LC_ALL
 
5
 
 
6
datadir="tests/data"
5
7
 
6
8
logfile="$datadir/seek.regression"
7
9
reffile="$1"
8
10
 
9
 
list=`ls data/a-* data/b-* | sort`
10
 
rm $logfile
 
11
list=`grep '^tests/data/[ab]-' "$reffile"`
 
12
rm -f $logfile
11
13
for i in $list ; do
12
 
    echo ---------------- >>$logfile
13
 
    echo $i >>$logfile
14
 
    ./seek_test $i >> $logfile
 
14
    echo ---------------- >> $logfile
 
15
    echo $i >> $logfile
 
16
    tests/seek_test $i >> $logfile
15
17
done
16
18
 
17
 
if diff -u "$logfile" "$reffile" ; then
 
19
if diff -u -w "$reffile" "$logfile" ; then
18
20
    echo
19
 
    echo Regression test succeeded.
 
21
    echo seek regression test: success
20
22
    exit 0
21
23
else
22
24
    echo
23
 
    echo Regression test: Error.
 
25
    echo seek regression test: error
24
26
    exit 1
25
27
fi