Makefile 4.36 KB
Newer Older
1 2
VREF = tests/vsynth1/00.pgm
AREF = tests/data/asynth1.sw
3

4
OBJDIRS += tests/data tests/vsynth1
5

6 7 8
# Required due to missing automatic dependency tracking for HOSTOBJS.
tests/rotozoom.o tests/videogen.o: tests/utils.c

9
tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
10 11
	$(M)./$< 'tests/vsynth1/'

12
tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
13 14
	$(M)./$< $@

15 16 17
tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
	$(M)./$< $@ $(subst -, ,$*)

18
tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
19
	$(M)$< $@
20 21

tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
22
	$(M)$< $(SRC_PATH)/tests/lena.pnm $@
23 24 25 26 27

tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN

include $(SRC_PATH)/tests/fate/acodec.mak
include $(SRC_PATH)/tests/fate/vcodec.mak
28

29
include $(SRC_PATH)/tests/fate/aac.mak
30
include $(SRC_PATH)/tests/fate/ac3.mak
31
include $(SRC_PATH)/tests/fate/adpcm.mak
32
include $(SRC_PATH)/tests/fate/als.mak
33 34
include $(SRC_PATH)/tests/fate/amrnb.mak
include $(SRC_PATH)/tests/fate/amrwb.mak
35
include $(SRC_PATH)/tests/fate/atrac.mak
36
include $(SRC_PATH)/tests/fate/audio.mak
Ronald S. Bultje's avatar
Ronald S. Bultje committed
37
include $(SRC_PATH)/tests/fate/bmp.mak
Paul B Mahol's avatar
Paul B Mahol committed
38
include $(SRC_PATH)/tests/fate/cdxl.mak
Mans Rullgard's avatar
Mans Rullgard committed
39
include $(SRC_PATH)/tests/fate/dct.mak
40
include $(SRC_PATH)/tests/fate/demux.mak
Oana Stratulat's avatar
Oana Stratulat committed
41
include $(SRC_PATH)/tests/fate/dfa.mak
42
include $(SRC_PATH)/tests/fate/dpcm.mak
43
include $(SRC_PATH)/tests/fate/ea.mak
44
include $(SRC_PATH)/tests/fate/flac.mak
45 46
include $(SRC_PATH)/tests/fate/fft.mak
include $(SRC_PATH)/tests/fate/h264.mak
47
include $(SRC_PATH)/tests/fate/image.mak
48
include $(SRC_PATH)/tests/fate/indeo.mak
49
include $(SRC_PATH)/tests/fate/libavcodec.mak
50
include $(SRC_PATH)/tests/fate/libavutil.mak
51 52
include $(SRC_PATH)/tests/fate/lossless-audio.mak
include $(SRC_PATH)/tests/fate/lossless-video.mak
53
include $(SRC_PATH)/tests/fate/microsoft.mak
54
include $(SRC_PATH)/tests/fate/mp3.mak
55
include $(SRC_PATH)/tests/fate/mpc.mak
56
include $(SRC_PATH)/tests/fate/pcm.mak
57
include $(SRC_PATH)/tests/fate/probe.mak
Diego Biurrun's avatar
Diego Biurrun committed
58
include $(SRC_PATH)/tests/fate/prores.mak
59
include $(SRC_PATH)/tests/fate/qt.mak
60
include $(SRC_PATH)/tests/fate/qtrle.mak
61
include $(SRC_PATH)/tests/fate/real.mak
62
include $(SRC_PATH)/tests/fate/screen.mak
63
include $(SRC_PATH)/tests/fate/utvideo.mak
64
include $(SRC_PATH)/tests/fate/video.mak
65
include $(SRC_PATH)/tests/fate/voice.mak
66
include $(SRC_PATH)/tests/fate/vorbis.mak
67
include $(SRC_PATH)/tests/fate/vpx.mak
68
include $(SRC_PATH)/tests/fate/vqf.mak
69
include $(SRC_PATH)/tests/fate/wavpack.mak
70
include $(SRC_PATH)/tests/fate/wma.mak
71 72 73 74 75

FATE_LAVF    = $(LAVF_TESTS:%=fate-lavf-%)
FATE_LAVFI   = $(LAVFI_TESTS:%=fate-lavfi-%)
FATE_SEEK    = $(SEEK_TESTS:seek_%=fate-seek-%)

76
FATE_AVCONV += $(FATE_LAVF)                                             \
77 78
               $(FATE_LAVFI)                                            \
               $(FATE_SEEK)                                             \
79

Mans Rullgard's avatar
Mans Rullgard committed
80
FATE_AVCONV += $(FATE_AVCONV-yes)
81
FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
Mans Rullgard's avatar
Mans Rullgard committed
82 83

FATE-$(CONFIG_AVCODEC)  += $(FATE_LIBAVCODEC)
84

85 86 87
FATE_SAMPLES-$(CONFIG_AVCONV) += $(FATE_SAMPLES_AVCONV)
FATE_SAMPLES += $(FATE_SAMPLES-yes)

88
FATE += $(FATE-yes)
Mans Rullgard's avatar
Mans Rullgard committed
89 90
FATE += $(FATE_LIBAVUTIL)

91
$(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
92

93 94 95
$(FATE_LAVF):  $(AREF) $(VREF)
$(FATE_LAVFI): $(VREF) tools/lavfi-showfiltfmts$(EXESUF)
$(FATE_SEEK):  fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF)
96 97 98 99 100 101 102 103 104 105

$(FATE_LAVF):    CMD = lavftest
$(FATE_LAVFI):   CMD = lavfitest
$(FATE_SEEK):    CMD = seektest

fate-lavf:   $(FATE_LAVF)
fate-lavfi:  $(FATE_LAVFI)
fate-seek:   $(FATE_SEEK)

ifdef SAMPLES
106
FATE += $(FATE_SAMPLES)
107 108 109 110 111
fate-rsync:
	rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
else
fate-rsync:
	@echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
112 113
$(FATE_SAMPLES):
	@echo "$@ requires external samples and SAMPLES not specified"; false
114 115 116 117 118 119
endif

FATE_UTILS = base64 tiny_psnr

fate: $(FATE)

Mans Rullgard's avatar
Mans Rullgard committed
120
$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
121
	@echo "TEST    $(@:fate-%=%)"
122
	$(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)'
123 124 125 126 127 128 129

fate-list:
	@printf '%s\n' $(sort $(FATE))

clean:: testclean

testclean:
130
	$(RM) -r tests/vsynth1 tests/data
131
	$(RM) $(CLEANSUFFIXES:%=tests/%)
132 133 134 135
	$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))

-include $(wildcard tests/*.d)

136
.PHONY: fate*