~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): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

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