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