Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 47805d21

History | View | Annotate | Download (2.2 KB)

1 51133a7d Fabrice Bellard
#
2
# Makefile for tests
3 d0c30ca5 Fabrice Bellard
# (c) 2002 Fabrice Bellard
4 51133a7d Fabrice Bellard
#
5
include ../config.mak
6
7
VPATH=$(SRC_PATH)/tests
8
CFLAGS=-O2 -Wall -g
9 1b78558a Michael Niedermayer
10 6afd3b92 Michael Niedermayer
REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref
11
REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref
12 1b78558a Michael Niedermayer
13 e2b2851e Philip Gladstone
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
14
15 89d5dfd5 Fabrice Bellard
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
16 51133a7d Fabrice Bellard
17 2dd59ebd Michael Niedermayer
all fulltest: codectest libavtest test-server
18
test: codectest libavtest
19 e2b2851e Philip Gladstone
20
test-server: vsynth1/0.pgm asynth1.sw
21 8ff7d1ad Fabrice Bellard
	@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE) $(SRC_PATH)/tests/test.conf
22 51133a7d Fabrice Bellard
23
# fast regression tests for all codecs
24 d13eef3d Michael Niedermayer
codectest mpeg4 mpeg ac3 snow: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
25 6692d61b Michael Niedermayer
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE1) vsynth1
26
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE2) vsynth2
27 51133a7d Fabrice Bellard
28 89d5dfd5 Fabrice Bellard
# fast regression for libav formats
29
libavtest: vsynth1/0.pgm asynth1.sw
30 6afd3b92 Michael Niedermayer
	@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) vsynth1
31 51133a7d Fabrice Bellard
32 6fea8454 Zdenek Kabelac
# video generation
33 51133a7d Fabrice Bellard
34
vsynth1/0.pgm: videogen
35
	@mkdir -p vsynth1
36
	./videogen 'vsynth1/'
37
38 6afd3b92 Michael Niedermayer
vsynth2/0.pgm: rotozoom
39
	@mkdir -p vsynth2
40 e2946a86 Fabrice Bellard
	./rotozoom 'vsynth2/' $(SRC_PATH)/tests/lena.pnm
41 6afd3b92 Michael Niedermayer
42 51133a7d Fabrice Bellard
videogen: videogen.c
43
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
44
45 6afd3b92 Michael Niedermayer
rotozoom: rotozoom.c
46
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
47
48 51133a7d Fabrice Bellard
# audio generation
49
50
asynth1.sw: audiogen
51
	./audiogen $@
52
53
audiogen: audiogen.c
54
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
55
56 67cbe681 Michael Niedermayer
tiny_psnr: tiny_psnr.c
57
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
58
        
59 ec9a41f5 Zdenek Kabelac
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
60 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
61 5845431a Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
62 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
63
 $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
64
 $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
65
 $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
66
 $(SRC_PATH)/libavcodec/dsputil.c \
67
 $(SRC_PATH)/libavcodec/dsputil.h \
68
 $(SRC_PATH)/libavcodec/simple_idct.c
69 ec9a41f5 Zdenek Kabelac
70 9e8098e7 Zdenek Kabelac
dsptestpic: dsptest.c $(DSPDEPS)
71 6fea8454 Zdenek Kabelac
	$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
72 ec9a41f5 Zdenek Kabelac
dsptest: dsptest.c $(DSPDEPS)
73 6fea8454 Zdenek Kabelac
	$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
74 ec9a41f5 Zdenek Kabelac
75 51133a7d Fabrice Bellard
clean:
76 6afd3b92 Michael Niedermayer
	rm -rf vsynth1 vsynth2 data
77 6e023978 Roman Shaposhnik
	rm -f asynth1.sw *~ audiogen videogen rotozoom tiny_psnr