2002-05-19 02:18:22 +03:00
|
|
|
#
|
|
|
|
# Makefile for tests
|
2002-05-26 01:47:17 +03:00
|
|
|
# (c) 2002 Fabrice Bellard
|
2002-05-19 02:18:22 +03:00
|
|
|
#
|
|
|
|
include ../config.mak
|
|
|
|
|
2007-05-27 17:05:01 +03:00
|
|
|
VPATH = $(SRC_PATH_BARE)/tests
|
|
|
|
SRC_DIR = $(SRC_PATH)/tests
|
|
|
|
BUILD_DIR = $(BUILD_ROOT)/tests
|
|
|
|
CFLAGS = -O2 -Wall -g
|
|
|
|
|
|
|
|
FFMPEG_REFFILE = $(SRC_DIR)/ffmpeg.regression.ref
|
|
|
|
LIBAV_REFFILE = $(SRC_DIR)/libav.regression.ref
|
|
|
|
ROTOZOOM_REFFILE = $(SRC_DIR)/rotozoom.regression.ref
|
|
|
|
SEEK_REFFILE = $(SRC_DIR)/seek.regression.ref
|
|
|
|
SERVER_REFFILE = $(SRC_DIR)/ffserver.regression.ref
|
2007-02-05 20:15:03 +02:00
|
|
|
|
2007-04-22 22:19:43 +03:00
|
|
|
all fulltest test: codectest libavtest seektest
|
2002-12-12 21:53:05 +02:00
|
|
|
|
2006-10-15 15:08:42 +03:00
|
|
|
test-server: vsynth1/00.pgm asynth1.sw
|
2007-01-25 14:56:14 +02:00
|
|
|
@echo
|
|
|
|
@echo "Unfortunately ffserver is broken and therefore its regression"
|
|
|
|
@echo "test fails randomly. Treat the results accordingly."
|
|
|
|
@echo
|
2007-05-27 16:48:19 +03:00
|
|
|
$(SRC_DIR)/server-regression.sh $(SERVER_REFFILE) $(SRC_DIR)/test.conf
|
2002-05-19 02:18:22 +03:00
|
|
|
|
2006-10-15 15:08:42 +03:00
|
|
|
codectest mpeg4 mpeg ac3 snow snowll: vsynth1/00.pgm vsynth2/00.pgm asynth1.sw tiny_psnr$(EXESUF)
|
2007-05-27 16:59:13 +03:00
|
|
|
$(SRC_DIR)/regression.sh $@ $(FFMPEG_REFFILE) vsynth1
|
|
|
|
$(SRC_DIR)/regression.sh $@ $(ROTOZOOM_REFFILE) vsynth2
|
2002-05-19 02:18:22 +03:00
|
|
|
|
2006-10-18 13:09:16 +03:00
|
|
|
ifeq ($(CONFIG_GPL),yes)
|
2006-10-15 15:08:42 +03:00
|
|
|
libavtest: vsynth1/00.pgm asynth1.sw
|
2007-05-27 16:48:19 +03:00
|
|
|
$(SRC_DIR)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
|
2006-10-18 13:09:16 +03:00
|
|
|
else
|
|
|
|
libavtest:
|
2006-10-15 15:10:46 +03:00
|
|
|
@echo
|
|
|
|
@echo "This test requires FFmpeg to be compiled with --enable-gpl."
|
|
|
|
@echo
|
2006-10-18 13:09:16 +03:00
|
|
|
endif
|
2002-05-19 02:18:22 +03:00
|
|
|
|
2007-01-10 22:40:02 +02:00
|
|
|
ifeq ($(CONFIG_SWSCALER),yes)
|
|
|
|
test-server codectest mpeg4 mpeg ac3 snow snowll libavtest: swscale_error
|
|
|
|
swscale_error:
|
|
|
|
@echo
|
|
|
|
@echo "This regression test is incompatible with --enable-swscaler."
|
|
|
|
@echo
|
|
|
|
@exit 1
|
|
|
|
endif
|
|
|
|
|
2007-02-05 20:15:03 +02:00
|
|
|
seektest: seek_test$(EXESUF)
|
2007-05-27 16:48:19 +03:00
|
|
|
$(SRC_DIR)/seek_test.sh $(SEEK_REFFILE)
|
2007-02-05 20:15:03 +02:00
|
|
|
|
2006-10-15 15:08:42 +03:00
|
|
|
vsynth1/00.pgm: videogen$(EXESUF)
|
2007-05-27 16:48:19 +03:00
|
|
|
mkdir -p vsynth1
|
2006-12-23 02:22:15 +02:00
|
|
|
$(BUILD_DIR)/$< 'vsynth1/'
|
2002-05-19 02:18:22 +03:00
|
|
|
|
2006-10-15 15:08:42 +03:00
|
|
|
vsynth2/00.pgm: rotozoom$(EXESUF)
|
2007-05-27 16:48:19 +03:00
|
|
|
mkdir -p vsynth2
|
2006-12-23 02:22:15 +02:00
|
|
|
$(BUILD_DIR)/$< 'vsynth2/' $(SRC_DIR)/lena.pnm
|
2003-04-11 16:43:17 +03:00
|
|
|
|
2006-08-03 20:27:33 +03:00
|
|
|
asynth1.sw: audiogen$(EXESUF)
|
2006-12-23 02:22:15 +02:00
|
|
|
$(BUILD_DIR)/$< $@
|
2002-05-19 02:18:22 +03:00
|
|
|
|
2007-05-25 02:32:50 +03:00
|
|
|
%$(EXESUF): %.c
|
2003-04-11 00:29:31 +03:00
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
2005-12-17 20:14:38 +02:00
|
|
|
|
2007-05-27 16:36:02 +03:00
|
|
|
seek_test$(EXESUF): seek_test.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -o $@ $< $(BUILD_ROOT)/libavformat/libavformat.a $(BUILD_ROOT)/libavcodec/libavcodec.a $(BUILD_ROOT)/libavutil/libavutil.a $(EXTRALIBS)
|
2007-02-05 20:15:03 +02:00
|
|
|
|
2006-01-16 16:59:54 +02:00
|
|
|
distclean clean:
|
2007-05-25 15:41:41 +03:00
|
|
|
rm -rf vsynth1 vsynth2 data asynth1.sw *~
|
|
|
|
rm -f $(addsuffix $(EXESUF),audiogen videogen rotozoom seek_test tiny_psnr)
|
2006-10-03 20:42:17 +03:00
|
|
|
|
2007-02-06 23:31:05 +02:00
|
|
|
.PHONY: all fulltest test codectest libavtest test-server seektest
|
2006-10-03 20:42:17 +03:00
|
|
|
.PHONY: mpeg4 mpeg ac3 snow snowll distclean clean
|