libmp3lame: resize the output buffer if needed
[libav.git] / tests / Makefile
CommitLineData
7263cd55
MR
1VREF = tests/vsynth1/00.pgm
2AREF = tests/data/asynth1.sw
698a183e 3
7263cd55 4OBJDIRS += tests/data tests/vsynth1
e9ba6b37
DB
5
6tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
698a183e
MR
7 $(M)./$< 'tests/vsynth1/'
8
e9ba6b37 9tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
698a183e
MR
10 $(M)./$< $@
11
870165e2
JR
12tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
13 $(M)./$< $@ $(subst -, ,$*)
14
7263cd55 15tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
d0e9415d 16 $(M)$< $@
7263cd55
MR
17
18tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
d0e9415d 19 $(M)$< $(SRC_PATH)/tests/lena.pnm $@
7263cd55
MR
20
21tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
22
23include $(SRC_PATH)/tests/fate/acodec.mak
24include $(SRC_PATH)/tests/fate/vcodec.mak
698a183e 25
f038cf3c 26include $(SRC_PATH)/tests/fate/aac.mak
bf692357 27include $(SRC_PATH)/tests/fate/ac3.mak
2df5f59a 28include $(SRC_PATH)/tests/fate/adpcm.mak
e9812159 29include $(SRC_PATH)/tests/fate/alac.mak
f038cf3c 30include $(SRC_PATH)/tests/fate/als.mak
0291ce84
MR
31include $(SRC_PATH)/tests/fate/amrnb.mak
32include $(SRC_PATH)/tests/fate/amrwb.mak
44b7e1b9 33include $(SRC_PATH)/tests/fate/atrac.mak
ab2d11f7 34include $(SRC_PATH)/tests/fate/audio.mak
7756859a 35include $(SRC_PATH)/tests/fate/bmp.mak
159a2436 36include $(SRC_PATH)/tests/fate/cdxl.mak
bf2a7f91 37include $(SRC_PATH)/tests/fate/cover-art.mak
27e71443 38include $(SRC_PATH)/tests/fate/dct.mak
c7cb1730 39include $(SRC_PATH)/tests/fate/demux.mak
febd0222 40include $(SRC_PATH)/tests/fate/dfa.mak
209c4452 41include $(SRC_PATH)/tests/fate/dpcm.mak
394f0b18 42include $(SRC_PATH)/tests/fate/ea.mak
73cd131e 43include $(SRC_PATH)/tests/fate/filter.mak
983fa8bc 44include $(SRC_PATH)/tests/fate/flac.mak
f038cf3c
MR
45include $(SRC_PATH)/tests/fate/fft.mak
46include $(SRC_PATH)/tests/fate/h264.mak
d69a03ef 47include $(SRC_PATH)/tests/fate/image.mak
6146d78d 48include $(SRC_PATH)/tests/fate/indeo.mak
913b6b4b 49include $(SRC_PATH)/tests/fate/libavcodec.mak
7bc433b3 50include $(SRC_PATH)/tests/fate/libavformat.mak
03256d96 51include $(SRC_PATH)/tests/fate/libavutil.mak
86027674
DB
52include $(SRC_PATH)/tests/fate/lossless-audio.mak
53include $(SRC_PATH)/tests/fate/lossless-video.mak
4e616d09 54include $(SRC_PATH)/tests/fate/microsoft.mak
f038cf3c 55include $(SRC_PATH)/tests/fate/mp3.mak
9e5bd6cc 56include $(SRC_PATH)/tests/fate/mpc.mak
bdda1616 57include $(SRC_PATH)/tests/fate/pcm.mak
4bfa67bd 58include $(SRC_PATH)/tests/fate/probe.mak
a62d3669 59include $(SRC_PATH)/tests/fate/prores.mak
f6ba1f26 60include $(SRC_PATH)/tests/fate/qt.mak
f8c47cb8 61include $(SRC_PATH)/tests/fate/qtrle.mak
bad38179 62include $(SRC_PATH)/tests/fate/real.mak
753a5063 63include $(SRC_PATH)/tests/fate/screen.mak
42de665d 64include $(SRC_PATH)/tests/fate/utvideo.mak
628637f6 65include $(SRC_PATH)/tests/fate/video.mak
51150cf0 66include $(SRC_PATH)/tests/fate/voice.mak
f038cf3c 67include $(SRC_PATH)/tests/fate/vorbis.mak
bebf9f92 68include $(SRC_PATH)/tests/fate/vpx.mak
723c35fe 69include $(SRC_PATH)/tests/fate/vqf.mak
273f4b39 70include $(SRC_PATH)/tests/fate/wavpack.mak
b998aec4 71include $(SRC_PATH)/tests/fate/wma.mak
698a183e 72
698a183e
MR
73FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
74FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
75FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
76
7263cd55 77FATE_AVCONV += $(FATE_LAVF) \
4852cb37
MR
78 $(FATE_LAVFI) \
79 $(FATE_SEEK) \
698a183e 80
f7c2dca0 81FATE_AVCONV += $(FATE_AVCONV-yes)
63dcd16d 82FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
f7c2dca0
MR
83
84FATE-$(CONFIG_AVCODEC) += $(FATE_LIBAVCODEC)
7bc433b3 85FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT)
908f12f3 86
63dcd16d
MR
87FATE_SAMPLES-$(CONFIG_AVCONV) += $(FATE_SAMPLES_AVCONV)
88FATE_SAMPLES += $(FATE_SAMPLES-yes)
89
908f12f3 90FATE += $(FATE-yes)
f7c2dca0
MR
91FATE += $(FATE_LIBAVUTIL)
92
63dcd16d 93$(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
908f12f3 94
7263cd55 95$(FATE_LAVF): $(AREF) $(VREF)
7c29377b 96$(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
7263cd55 97$(FATE_SEEK): fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF)
698a183e 98
698a183e
MR
99$(FATE_LAVF): CMD = lavftest
100$(FATE_LAVFI): CMD = lavfitest
101$(FATE_SEEK): CMD = seektest
102
698a183e
MR
103fate-lavf: $(FATE_LAVF)
104fate-lavfi: $(FATE_LAVFI)
105fate-seek: $(FATE_SEEK)
106
107ifdef SAMPLES
63dcd16d 108FATE += $(FATE_SAMPLES)
698a183e
MR
109fate-rsync:
110 rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
111else
112fate-rsync:
113 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
63dcd16d
MR
114$(FATE_SAMPLES):
115 @echo "$@ requires external samples and SAMPLES not specified"; false
698a183e
MR
116endif
117
118FATE_UTILS = base64 tiny_psnr
119
120fate: $(FATE)
121
f7c2dca0 122$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
698a183e 123 @echo "TEST $(@:fate-%=%)"
47b5996b 124 $(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)'
698a183e
MR
125
126fate-list:
127 @printf '%s\n' $(sort $(FATE))
128
129clean:: testclean
130
131testclean:
a4880283 132 $(RM) -r tests/vsynth1 tests/data
deb3ed01 133 $(RM) $(CLEANSUFFIXES:%=tests/%)
698a183e
MR
134 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
135
136-include $(wildcard tests/*.d)
137
bd9a9a2f 138.PHONY: fate*