Revision 6afd3b92 tests/Makefile

View differences:

tests/Makefile
7 7
VPATH=$(SRC_PATH)/tests
8 8
CFLAGS=-O2 -Wall -g
9 9

  
10
REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
10
REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref
11
REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref
11 12

  
12 13
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
13 14

  
......
19 20
	@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE)
20 21

  
21 22
# fast regression tests for all codecs
22
test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw tiny_psnr
23
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE) || true
23
test mpeg4 mpeg: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
24
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE1) vsynth1 || true
25
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE2) vsynth2 || true
24 26

  
25 27
# fast regression for libav formats
26 28
libavtest: vsynth1/0.pgm asynth1.sw
27
	@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
29
	@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) vsynth1
28 30

  
29 31
# video generation
30 32

  
......
32 34
	@mkdir -p vsynth1
33 35
	./videogen 'vsynth1/'
34 36

  
37
vsynth2/0.pgm: rotozoom
38
	@mkdir -p vsynth2
39
	./rotozoom 'vsynth2/'
40

  
35 41
videogen: videogen.c
36 42
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
37 43

  
44
rotozoom: rotozoom.c
45
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
46

  
38 47
# audio generation
39 48

  
40 49
asynth1.sw: audiogen
......
63 72
	$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
64 73

  
65 74
clean:
66
	rm -rf vsynth1 data
75
	rm -rf vsynth1 vsynth2 data
67 76
	rm -f asynth1.sw *~ audiogen videogen

Also available in: Unified diff