Originally committed as revision 668 to svn://svn.ffmpeg.org/ffmpeg/trunk
$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
clean:
$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
clean:
rm -f asynth1.sw *~ audiogen videogen
rm -f asynth1.sw *~ audiogen videogen
-logfile="/tmp/ffmpeg.regression"
+datadir="./data"
+
+logfile="$datadir/ffmpeg.regression"
# tests to do
if [ "$1" = "mpeg4" ] ; then
# tests to do
if [ "$1" = "mpeg4" ] ; then
do_mpeg=y
elif [ "$1" = "libavtest" ] ; then
do_libav=y
do_mpeg=y
elif [ "$1" = "libavtest" ] ; then
do_libav=y
- logfile="/tmp/libav.regression"
+ logfile="$datadir/libav.regression"
else
do_mpeg=y
do_msmpeg4=y
else
do_mpeg=y
do_msmpeg4=y
# various files
ffmpeg="../ffmpeg"
# various files
ffmpeg="../ffmpeg"
-benchfile="/tmp/ffmpeg.bench"
+benchfile="$datadir/ffmpeg.bench"
+raw_dst="$datadir/out.yuv"
+pcm_dst="$datadir/out.wav"
+
+# create the data directory if it does not exists
+mkdir -p $datadir
function do_ffmpeg ()
{
f="$1"
shift
echo $ffmpeg -bitexact $*
function do_ffmpeg ()
{
f="$1"
shift
echo $ffmpeg -bitexact $*
- $ffmpeg -bitexact -benchmark $* > /tmp/bench.tmp
+ $ffmpeg -bitexact -benchmark $* > $datadir/bench.tmp
- expr match "`cat /tmp/bench.tmp`" '.*utime=\(.*s\)' > /tmp/bench2.tmp
- echo `cat /tmp/bench2.tmp` $f >> $benchfile
+ expr match "`cat $datadir/bench.tmp`" '.*utime=\(.*s\)' > $datadir/bench2.tmp
+ echo `cat $datadir/bench2.tmp` $f >> $benchfile
}
function do_ffmpeg_crc ()
{
f="$1"
shift
}
function do_ffmpeg_crc ()
{
f="$1"
shift
- echo $ffmpeg -y -bitexact $* -f crc /tmp/ffmpeg.crc
- $ffmpeg -y -bitexact $* -f crc /tmp/ffmpeg.crc
+ echo $ffmpeg -y -bitexact $* -f crc $datadir/ffmpeg.crc
+ $ffmpeg -y -bitexact $* -f crc $datadir/ffmpeg.crc
echo -n "$f " >> $logfile
echo -n "$f " >> $logfile
- cat /tmp/ffmpeg.crc >> $logfile
+ cat $datadir/ffmpeg.crc >> $logfile
}
echo "ffmpeg regression test" > $logfile
}
echo "ffmpeg regression test" > $logfile