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