Split codec-regression.sh again and create a lavfi-regression.sh for
[libav.git] / tests / lavfi-regression.sh
CommitLineData
77f66963
SS
1#!/bin/sh
2#
3# automatic regression test for libavfilter
4#
5#
6#set -x
7
8set -e
9
10. $(dirname $0)/regression-funcs.sh
11
12eval do_$test=y
13
14rm -f "$logfile"
15rm -f "$benchfile"
16
17do_lavfi() {
18 test_name=$1
19 eval test=\$do_$test_name
20 vfilters=$2
21
22 if [ -n "$test" ] ; then
23 do_video_encoding ${test_name}.avi "" "-vcodec rawvideo -vfilters $vfilters"
24 fi
25}
26
27# example tests:
28# do_lavfi "crop" "crop=100:100:-1:-1"
29# do_lavfi "crop_scale" "crop=100:100,scale=200:-1"
30# do_lavfi "scale" "scale=200:200"
31
32# TODO: add tests for
33# direct rendering,
34# slices
35# chains with feedback loops
36
37rm -f "$bench" "$bench2"