2002-05-18 23:18:22 +00:00
|
|
|
#
|
|
|
|
# Makefile for tests
|
2002-05-25 22:47:17 +00:00
|
|
|
# (c) 2002 Fabrice Bellard
|
2002-05-18 23:18:22 +00:00
|
|
|
#
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/tests
|
|
|
|
CFLAGS=-O2 -Wall -g
|
2002-08-27 22:20:01 +00:00
|
|
|
|
2002-05-18 23:18:22 +00:00
|
|
|
REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
|
2002-08-27 22:20:01 +00:00
|
|
|
|
2002-12-12 19:53:05 +00:00
|
|
|
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
|
|
|
|
|
2002-05-20 16:20:05 +00:00
|
|
|
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
|
2002-05-18 23:18:22 +00:00
|
|
|
|
2002-12-12 19:53:05 +00:00
|
|
|
all: test test-server
|
|
|
|
|
|
|
|
test-server: vsynth1/0.pgm asynth1.sw
|
|
|
|
@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE)
|
2002-05-18 23:18:22 +00:00
|
|
|
|
|
|
|
# fast regression tests for all codecs
|
|
|
|
test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
|
2003-03-26 23:19:50 +00:00
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE) || true
|
2002-05-18 23:18:22 +00:00
|
|
|
|
2002-05-20 16:20:05 +00:00
|
|
|
# fast regression for libav formats
|
|
|
|
libavtest: vsynth1/0.pgm asynth1.sw
|
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
|
2002-05-18 23:18:22 +00:00
|
|
|
|
2002-05-27 08:39:04 +00:00
|
|
|
# video generation
|
2002-05-18 23:18:22 +00:00
|
|
|
|
|
|
|
vsynth1/0.pgm: videogen
|
|
|
|
@mkdir -p vsynth1
|
|
|
|
./videogen 'vsynth1/'
|
|
|
|
|
|
|
|
videogen: videogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
# audio generation
|
|
|
|
|
|
|
|
asynth1.sw: audiogen
|
|
|
|
./audiogen $@
|
|
|
|
|
|
|
|
audiogen: audiogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
2002-05-23 13:34:22 +00:00
|
|
|
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
|
2002-05-27 08:39:04 +00:00
|
|
|
$(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
|
2002-05-29 20:55:16 +00:00
|
|
|
$(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
|
2002-05-27 08:39:04 +00: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 13:34:22 +00:00
|
|
|
|
2002-05-23 14:57:11 +00:00
|
|
|
dsptestpic: dsptest.c $(DSPDEPS)
|
2002-05-27 08:39:04 +00: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 13:34:22 +00:00
|
|
|
dsptest: dsptest.c $(DSPDEPS)
|
2002-05-27 08:39:04 +00: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 13:34:22 +00:00
|
|
|
|
2002-05-18 23:18:22 +00:00
|
|
|
clean:
|
2002-06-05 18:14:21 +00:00
|
|
|
rm -rf vsynth1 data
|
2002-05-18 23:18:22 +00:00
|
|
|
rm -f asynth1.sw *~ audiogen videogen
|