fate: use our variable names in test rules imported from Mike's db
[libav.git] / tests / copycooker.sh
CommitLineData
88b83cac
MN
1#!/bin/sh
2
3LC_ALL=C
4export LC_ALL
5
6datadir="tests/data"
7
8logfile="$datadir/copy.regression"
9reffile="$1"
10
af3390cb 11list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort)
88b83cac
MN
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