Revision 77f66963

View differences:

Makefile
300 300
	$(SRC_PATH)/tests/lavf-regression.sh $@ lavf tests/vsynth1 b "$(TARGET_EXEC)" "$(TARGET_PATH)"
301 301

  
302 302
$(LAVFI_TESTS):
303
	$(SRC_PATH)/tests/codec-regression.sh $@ lavfi tests/vsynth1 b "$(TARGET_EXEC)" "$(TARGET_PATH)"
303
	$(SRC_PATH)/tests/lavfi-regression.sh $@ lavfi tests/vsynth1 b "$(TARGET_EXEC)" "$(TARGET_PATH)"
304 304

  
305 305
seektest: codectest lavftest tests/seek_test$(EXESUF)
306 306
	$(SRC_PATH)/tests/seek-regression.sh $(SEEK_REFFILE) "$(TARGET_EXEC)" "$(TARGET_PATH)"
tests/codec-regression.sh
342 342
do_audio_enc_dec 302 s16 pcm_s24daud "-ac 6 -ar 96000"
343 343
fi
344 344

  
345
# libavfilter testing
346

  
347
do_lavfi() {
348
    test_name=$1
349
    eval test=\$do_$test_name
350
    vfilters=$2
351

  
352
    if [ -n "$test" ] ; then
353
        do_video_encoding ${test_name}.avi "" "-vcodec rawvideo -vfilters $vfilters"
354
    fi
355
}
356

  
357
# example tests:
358
# do_lavfi "crop" "crop=100:100:-1:-1"
359
# do_lavfi "crop_scale" "crop=100:100,scale=200:-1"
360
# do_lavfi "scale" "scale=200:200"
361

  
362
# TODO: add tests for
363
# direct rendering,
364
# slices
365
# chains with feedback loops
366

  
367 345
rm -f "$bench" "$bench2"
tests/lavfi-regression.sh
1
#!/bin/sh
2
#
3
# automatic regression test for libavfilter
4
#
5
#
6
#set -x
7

  
8
set -e
9

  
10
. $(dirname $0)/regression-funcs.sh
11

  
12
eval do_$test=y
13

  
14
rm -f "$logfile"
15
rm -f "$benchfile"
16

  
17
do_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

  
37
rm -f "$bench" "$bench2"

Also available in: Unified diff