Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 5d078bdb

History | View | Annotate | Download (2.43 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 997baf01 Måns Rullgård
VPATH=$(SRC_PATH_BARE)/tests
8
SRC_DIR=$(SRC_PATH)/tests
9 51133a7d Fabrice Bellard
CFLAGS=-O2 -Wall -g
10 1b78558a Michael Niedermayer
11 997baf01 Måns Rullgård
REFFILE1=$(SRC_DIR)/ffmpeg.regression.ref
12
REFFILE2=$(SRC_DIR)/rotozoom.regression.ref
13 1b78558a Michael Niedermayer
14 997baf01 Måns Rullgård
SERVER_REFFILE=$(SRC_DIR)/ffserver.regression.ref
15 e2b2851e Philip Gladstone
16 997baf01 Måns Rullgård
LIBAV_REFFILE=$(SRC_DIR)/libav.regression.ref
17 51133a7d Fabrice Bellard
18 d568d0fe Diego Biurrun
all fulltest test: codectest libavtest test-server
19 e2b2851e Philip Gladstone
20 9fd353e9 Diego Biurrun
test-server: vsynth1/00.pgm asynth1.sw
21 997baf01 Måns Rullgård
	@$(SRC_DIR)/server-regression.sh $(SERVER_REFFILE) $(SRC_DIR)/test.conf
22 51133a7d Fabrice Bellard
23
# fast regression tests for all codecs
24 9fd353e9 Diego Biurrun
codectest mpeg4 mpeg ac3 snow snowll: vsynth1/00.pgm vsynth2/00.pgm asynth1.sw tiny_psnr$(EXESUF)
25 997baf01 Måns Rullgård
	@$(SRC_DIR)/regression.sh $@ $(REFFILE1) vsynth1
26
	@$(SRC_DIR)/regression.sh $@ $(REFFILE2) vsynth2
27 51133a7d Fabrice Bellard
28 89d5dfd5 Fabrice Bellard
# fast regression for libav formats
29 ca612735 Diego Biurrun
ifeq ($(CONFIG_GPL),yes)
30 9fd353e9 Diego Biurrun
libavtest: vsynth1/00.pgm asynth1.sw
31 997baf01 Måns Rullgård
	@$(SRC_DIR)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
32 ca612735 Diego Biurrun
else
33
libavtest:
34 41ada6e5 Diego Biurrun
	@echo
35
	@echo "This test requires FFmpeg to be compiled with --enable-gpl."
36
	@echo
37 ca612735 Diego Biurrun
endif
38 51133a7d Fabrice Bellard
39 6fea8454 Zdenek Kabelac
# video generation
40 51133a7d Fabrice Bellard
41 9fd353e9 Diego Biurrun
vsynth1/00.pgm: videogen$(EXESUF)
42 51133a7d Fabrice Bellard
	@mkdir -p vsynth1
43 5d078bdb Diego Biurrun
	$< 'vsynth1/'
44 51133a7d Fabrice Bellard
45 9fd353e9 Diego Biurrun
vsynth2/00.pgm: rotozoom$(EXESUF)
46 6afd3b92 Michael Niedermayer
	@mkdir -p vsynth2
47 5d078bdb Diego Biurrun
	$< 'vsynth2/' $(SRC_DIR)/lena.pnm
48 6afd3b92 Michael Niedermayer
49 462f3c37 Víctor Paesa
videogen$(EXESUF): videogen.c
50 51133a7d Fabrice Bellard
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
51
52 462f3c37 Víctor Paesa
rotozoom$(EXESUF): rotozoom.c
53 6afd3b92 Michael Niedermayer
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
54
55 51133a7d Fabrice Bellard
# audio generation
56
57 f5c85943 Víctor Paesa
asynth1.sw: audiogen$(EXESUF)
58 5d078bdb Diego Biurrun
	$< $@
59 51133a7d Fabrice Bellard
60 462f3c37 Víctor Paesa
audiogen$(EXESUF): audiogen.c
61 51133a7d Fabrice Bellard
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
62
63 462f3c37 Víctor Paesa
tiny_psnr$(EXESUF): tiny_psnr.c
64 67cbe681 Michael Niedermayer
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
65 115329f1 Diego Biurrun
66 ec9a41f5 Zdenek Kabelac
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
67 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
68 5845431a Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
69 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
70
 $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
71
 $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
72
 $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
73
 $(SRC_PATH)/libavcodec/dsputil.c \
74
 $(SRC_PATH)/libavcodec/dsputil.h \
75
 $(SRC_PATH)/libavcodec/simple_idct.c
76 ec9a41f5 Zdenek Kabelac
77 0e16a1fc Diego Biurrun
DSPCFLAGS = -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. \
78
 -I$(SRC_PATH)/libavutil/ -I$(SRC_PATH)/libavcodec/i386 \
79
 -I$(SRC_PATH)/libavcodec/ -lm
80
81 9e8098e7 Zdenek Kabelac
dsptestpic: dsptest.c $(DSPDEPS)
82 0e16a1fc Diego Biurrun
	$(CC) -fPIC -DPIC $(DSPCFLAGS) -o $@ $<
83 ec9a41f5 Zdenek Kabelac
dsptest: dsptest.c $(DSPDEPS)
84 0e16a1fc Diego Biurrun
	$(CC) $(DSPCFLAGS) -o $@ $<
85 ec9a41f5 Zdenek Kabelac
86 98013cc1 Diego Biurrun
distclean clean:
87 6afd3b92 Michael Niedermayer
	rm -rf vsynth1 vsynth2 data
88 462f3c37 Víctor Paesa
	rm -f asynth1.sw *~ audiogen$(EXESUF) videogen$(EXESUF) rotozoom$(EXESUF) tiny_psnr$(EXESUF)
89 3263626f Diego Biurrun
90
.PHONY: all fulltest test codectest libavtest test-server
91
.PHONY: mpeg4 mpeg ac3 snow snowll distclean clean