[FFmpeg-devel] [PATCH] Create tests/regression-funcs.sh

Diego Biurrun diego
Sat Oct 17 17:29:22 CEST 2009


On Wed, Oct 14, 2009 at 09:40:31PM +0200, Stefano Sabatini wrote:
> 
> as recently suggested, avoid code duplication.
> 
> --- /dev/null	1970-01-01 00:00:00.000000000 +0000
> +++ ffmpeg/tests/lavfi-regression.sh	2009-10-14 21:32:34.000000000 +0200
> @@ -0,0 +1,56 @@
> +
> +datadir="./tests/data"
> +target_datadir="${target_path}/${datadir}"
> +
> +test="${1#regtest-}"
> +this="$test.$2"
> +logfile="$datadir/$this.regression"
> +outfile="$datadir/$4-"
> +
> +eval do_$test=y
> +
> +# various files
> +ffmpeg="$target_exec ${target_path}/ffmpeg_g"
> +tiny_psnr="tests/tiny_psnr"
> +benchfile="$datadir/$this.bench"
> +bench="$datadir/$this.bench.tmp"
> +bench2="$datadir/$this.bench2.tmp"
> +raw_src="${target_path}/$3/%02d.pgm"
> +raw_dst="$datadir/$this.out.yuv"

Some of this looks common, so it could be put in the common file.

Diego



More information about the ffmpeg-devel mailing list