2002-05-19 01:18:22 +02:00
|
|
|
#
|
|
|
|
# Makefile for tests
|
2002-05-26 00:47:17 +02:00
|
|
|
# (c) 2002 Fabrice Bellard
|
2002-05-19 01:18:22 +02:00
|
|
|
#
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/tests
|
|
|
|
CFLAGS=-O2 -Wall -g
|
2002-08-28 00:20:01 +02:00
|
|
|
|
2003-04-11 15:43:17 +02:00
|
|
|
REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref
|
|
|
|
REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref
|
2002-08-28 00:20:01 +02:00
|
|
|
|
2002-12-12 20:53:05 +01:00
|
|
|
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
|
|
|
|
|
2002-05-20 18:20:05 +02:00
|
|
|
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
|
2002-05-19 01:18:22 +02:00
|
|
|
|
2004-02-18 20:07:58 +01:00
|
|
|
all fulltest: codectest libavtest test-server
|
2005-07-18 19:21:08 +02:00
|
|
|
test: codectest libavtest test-server
|
2002-12-12 20:53:05 +01:00
|
|
|
|
|
|
|
test-server: vsynth1/0.pgm asynth1.sw
|
2003-07-16 20:50:35 +02:00
|
|
|
@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE) $(SRC_PATH)/tests/test.conf
|
2002-05-19 01:18:22 +02:00
|
|
|
|
|
|
|
# fast regression tests for all codecs
|
2005-04-03 17:39:17 +02:00
|
|
|
codectest mpeg4 mpeg ac3 snow: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
|
2003-04-12 16:50:35 +02:00
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE1) vsynth1
|
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE2) vsynth2
|
2002-05-19 01:18:22 +02:00
|
|
|
|
2002-05-20 18:20:05 +02:00
|
|
|
# fast regression for libav formats
|
|
|
|
libavtest: vsynth1/0.pgm asynth1.sw
|
2003-04-11 15:43:17 +02:00
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) vsynth1
|
2002-05-19 01:18:22 +02:00
|
|
|
|
2002-05-27 10:39:04 +02:00
|
|
|
# video generation
|
2002-05-19 01:18:22 +02:00
|
|
|
|
|
|
|
vsynth1/0.pgm: videogen
|
|
|
|
@mkdir -p vsynth1
|
|
|
|
./videogen 'vsynth1/'
|
|
|
|
|
2003-04-11 15:43:17 +02:00
|
|
|
vsynth2/0.pgm: rotozoom
|
|
|
|
@mkdir -p vsynth2
|
2003-06-05 14:36:05 +02:00
|
|
|
./rotozoom 'vsynth2/' $(SRC_PATH)/tests/lena.pnm
|
2003-04-11 15:43:17 +02:00
|
|
|
|
2002-05-19 01:18:22 +02:00
|
|
|
videogen: videogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
2003-04-11 15:43:17 +02:00
|
|
|
rotozoom: rotozoom.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
2002-05-19 01:18:22 +02:00
|
|
|
# audio generation
|
|
|
|
|
|
|
|
asynth1.sw: audiogen
|
|
|
|
./audiogen $@
|
|
|
|
|
|
|
|
audiogen: audiogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
2003-04-10 23:29:31 +02:00
|
|
|
tiny_psnr: tiny_psnr.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
2005-12-17 19:14:38 +01:00
|
|
|
|
2002-05-23 15:34:22 +02:00
|
|
|
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
|
2002-05-27 10:39:04 +02:00
|
|
|
$(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
|
2002-05-29 22:55:16 +02:00
|
|
|
$(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
|
2002-05-27 10:39:04 +02:00
|
|
|
$(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
|
|
|
|
$(SRC_PATH)/libavcodec/i386/idct_mmx.c \
|
|
|
|
$(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
|
|
|
|
$(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
|
|
|
|
$(SRC_PATH)/libavcodec/dsputil.c \
|
|
|
|
$(SRC_PATH)/libavcodec/dsputil.h \
|
|
|
|
$(SRC_PATH)/libavcodec/simple_idct.c
|
2002-05-23 15:34:22 +02:00
|
|
|
|
2002-05-23 16:57:11 +02:00
|
|
|
dsptestpic: dsptest.c $(DSPDEPS)
|
2002-05-27 10:39:04 +02:00
|
|
|
$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
|
2002-05-23 15:34:22 +02:00
|
|
|
dsptest: dsptest.c $(DSPDEPS)
|
2002-05-27 10:39:04 +02:00
|
|
|
$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
|
2002-05-23 15:34:22 +02:00
|
|
|
|
2002-05-19 01:18:22 +02:00
|
|
|
clean:
|
2003-04-11 15:43:17 +02:00
|
|
|
rm -rf vsynth1 vsynth2 data
|
2005-12-17 19:14:38 +01:00
|
|
|
rm -f asynth1.sw *~ audiogen videogen rotozoom tiny_psnr
|