Imported Debian version 2.5.2~trusty
[deb_ffmpeg.git] / ffmpeg / tests / copycooker.sh
CommitLineData
2ba45a60
DM
1#!/bin/sh
2
3LC_ALL=C
4export LC_ALL
5
6datadir="tests/data"
7
8logfile="$datadir/copy.regression"
9reffile="$1"
10
11list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort)
12rm -f $logfile
13for i in $list ; do
14 echo ---------------- >> $logfile
15 echo $i >> $logfile
16 ./ffmpeg_g -flags +bitexact -i $i -acodec copy -vcodec copy -y first.nut
17 ./ffmpeg_g -flags +bitexact -i first.nut -acodec copy -vcodec copy -y second.nut
18 cmp first.nut second.nut >> $logfile
19 md5sum first.nut >> $logfile
20done
21
22if diff -u -w "$reffile" "$logfile" ; then
23 echo
24 echo copy regression test: success
25 exit 0
26else
27 echo
28 echo copy regression test: error
29 exit 1
30fi