added first version of regression tests - simply type 'make test' to test every codec...
[ffmpeg.git] / tests / Makefile
1 #
2 # Makefile for tests
3 # (c) 2002 Gerard Lantau
4 #
5 include ../config.mak
6
7 VPATH=$(SRC_PATH)/tests
8 CFLAGS=-O2 -Wall -g
9 REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
10
11 all: test
12
13 # fast regression tests for all codecs
14 test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
15         @$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
16
17 # update the regression test with the current results
18 updatetest:
19         cp /tmp/ffmpeg.regression $(REFFILE)
20
21 # video generation 
22
23 vsynth1/0.pgm: videogen
24         @mkdir -p vsynth1
25         ./videogen 'vsynth1/'
26
27 videogen: videogen.c
28         $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
29
30 # audio generation
31
32 asynth1.sw: audiogen
33         ./audiogen $@
34
35 audiogen: audiogen.c
36         $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
37
38 clean:
39         rm -rf vsynth1
40         rm -f asynth1.sw *~ audiogen videogen