Revision 7507022d tests/regression.sh

View differences:

tests/regression.sh
116 116

  
117 117
do_ffmpeg()
118 118
{
119
    f="$1"
120 119
    shift
121 120
    echo $ffmpeg $FFMPEG_OPTS $*
122 121
    $ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$
123 122
    egrep -v "^(Stream|Press|Input|Output|frame|  Stream|  Duration|video:)" /tmp/ffmpeg$$ || true
124 123
    rm -f /tmp/ffmpeg$$
125
    do_md5sum $f >> $logfile
126
    if [ $f = $raw_dst ] ; then
127
        $tiny_psnr $f $raw_ref >> $logfile
128
    elif [ $f = $pcm_dst ] ; then
129
        $tiny_psnr $f $pcm_ref 2 >> $logfile
124
    do_md5sum $1 >> $logfile
125
    if [ $1 = $raw_dst ] ; then
126
        $tiny_psnr $1 $raw_ref >> $logfile
127
    elif [ $1 = $pcm_dst ] ; then
128
        $tiny_psnr $1 $pcm_ref 2 >> $logfile
130 129
    else
131
        wc -c $f >> $logfile
130
        wc -c $1 >> $logfile
132 131
    fi
133 132
    expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
134
    echo `cat $bench2` $f >> $benchfile
133
    echo `cat $bench2` $1 >> $benchfile
135 134
}
136 135

  
137 136
do_ffmpeg_crc()
138 137
{
139
    f="$1"
140 138
    shift
141 139
    echo $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc
142 140
    $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1
143 141
    egrep -v "^(Stream|Press|Input|Output|frame|  Stream|  Duration|video:|ffmpeg version|  configuration|  built)" /tmp/ffmpeg$$ || true
144 142
    rm -f /tmp/ffmpeg$$
145
    echo "$f `cat $datadir/ffmpeg.crc`" >> $logfile
143
    echo "$1 `cat $datadir/ffmpeg.crc`" >> $logfile
146 144
}
147 145

  
148 146
do_ffmpeg_nocheck()
......
154 152
    egrep -v "^(Stream|Press|Input|Output|frame|  Stream|  Duration|video:)" /tmp/ffmpeg$$ || true
155 153
    rm -f /tmp/ffmpeg$$
156 154
    expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
157
    echo `cat $bench2` $f >> $benchfile
155
    echo `cat $bench2` $1 >> $benchfile
158 156
}
159 157

  
160 158
do_video_decoding()

Also available in: Unified diff