Revision c676895f Makefile

View differences:

Makefile
155 155
ENCDEC = $(and $(CONFIG_$(1)_ENCODER),$(CONFIG_$(1)_DECODER))
156 156
MUXDEM = $(and $(CONFIG_$(1)_MUXER),$(CONFIG_$(or $(2),$(1))_DEMUXER))
157 157

  
158
CODEC_TESTS =
159
CODEC_TESTS-$(call ENCDEC,AC3)               += ac3
160
CODEC_TESTS-$(call ENCDEC,ADPCM_G726)        += g726
161
CODEC_TESTS-$(call ENCDEC,ADPCM_IMA_QT)      += adpcm_ima_qt
162
CODEC_TESTS-$(call ENCDEC,ADPCM_IMA_WAV)     += adpcm_ima_wav
163
CODEC_TESTS-$(call ENCDEC,ADPCM_MS)          += adpcm_ms
164
CODEC_TESTS-$(call ENCDEC,ADPCM_SWF)         += adpcm_swf
165
CODEC_TESTS-$(call ENCDEC,ADPCM_YAMAHA)      += adpcm_yam
166
CODEC_TESTS-$(call ENCDEC,ALAC)              += alac
167
CODEC_TESTS-$(call ENCDEC,ASV1)              += asv1
168
CODEC_TESTS-$(call ENCDEC,ASV2)              += asv2
169
CODEC_TESTS-$(call ENCDEC,DNXHD)             += dnxhd_1080i dnxhd_720p dnxhd_720p_rd
170
CODEC_TESTS-$(call ENCDEC,DVVIDEO)           += dv dv50
171
CODEC_TESTS-$(call ENCDEC,FFV1)              += ffv1
172
CODEC_TESTS-$(call ENCDEC,FLAC)              += flac
173
CODEC_TESTS-$(call ENCDEC,FLASHSV)           += flashsv
174
CODEC_TESTS-$(call ENCDEC,FLV)               += flv
175
CODEC_TESTS-$(call ENCDEC,H261)              += h261
176
CODEC_TESTS-$(call ENCDEC,H263)              += h263 h263p
177
CODEC_TESTS-$(call ENCDEC,HUFFYUV)           += huffyuv
178
CODEC_TESTS-$(call ENCDEC,JPEGLS)            += jpegls
179
CODEC_TESTS-$(call ENCDEC,MJPEG)             += mjpeg ljpeg
180
CODEC_TESTS-$(call ENCDEC,MP2)               += mp2
181
CODEC_TESTS-$(call ENCDEC,MPEG1VIDEO)        += mpeg mpeg1b
182
CODEC_TESTS-$(call ENCDEC,MPEG2VIDEO)        += mpeg2 mpeg2thread
183
CODEC_TESTS-$(call ENCDEC,MPEG4)             += mpeg4 mpeg4adv mpeg4nr mpeg4thread error rc
184
CODEC_TESTS-$(call ENCDEC,MSMPEG4V1)         += msmpeg4
185
CODEC_TESTS-$(call ENCDEC,MSMPEG4V2)         += msmpeg4v2
186
CODEC_TESTS-$(call ENCDEC,PCM_S16LE)         += pcm         # fixme
187
CODEC_TESTS-$(call ENCDEC,ROQ)               += roq
188
CODEC_TESTS-$(call ENCDEC,RV10)              += rv10
189
CODEC_TESTS-$(call ENCDEC,RV20)              += rv20
190
CODEC_TESTS-$(call ENCDEC,SNOW)              += snow snowll
191
CODEC_TESTS-$(call ENCDEC,SVQ1)              += svq1
192
CODEC_TESTS-$(call ENCDEC,WMAV1)             += wmav1
193
CODEC_TESTS-$(call ENCDEC,WMAV1)             += wmav2
194
CODEC_TESTS-$(call ENCDEC,WMV1)              += wmv1
195
CODEC_TESTS-$(call ENCDEC,WMV2)              += wmv2
158
VCODEC_TESTS =
159
VCODEC_TESTS-$(call ENCDEC,ASV1)             += asv1
160
VCODEC_TESTS-$(call ENCDEC,ASV2)             += asv2
161
VCODEC_TESTS-$(call ENCDEC,DNXHD)            += dnxhd_1080i dnxhd_720p dnxhd_720p_rd
162
VCODEC_TESTS-$(call ENCDEC,DVVIDEO)          += dv dv50
163
VCODEC_TESTS-$(call ENCDEC,FFV1)             += ffv1
164
VCODEC_TESTS-$(call ENCDEC,FLASHSV)          += flashsv
165
VCODEC_TESTS-$(call ENCDEC,FLV)              += flv
166
VCODEC_TESTS-$(call ENCDEC,H261)             += h261
167
VCODEC_TESTS-$(call ENCDEC,H263)             += h263 h263p
168
VCODEC_TESTS-$(call ENCDEC,HUFFYUV)          += huffyuv
169
VCODEC_TESTS-$(call ENCDEC,JPEGLS)           += jpegls
170
VCODEC_TESTS-$(call ENCDEC,MJPEG)            += mjpeg ljpeg
171
VCODEC_TESTS-$(call ENCDEC,MPEG1VIDEO)       += mpeg mpeg1b
172
VCODEC_TESTS-$(call ENCDEC,MPEG2VIDEO)       += mpeg2 mpeg2thread
173
VCODEC_TESTS-$(call ENCDEC,MPEG4)            += mpeg4 mpeg4adv mpeg4nr mpeg4thread error rc
174
VCODEC_TESTS-$(call ENCDEC,MSMPEG4V1)        += msmpeg4
175
VCODEC_TESTS-$(call ENCDEC,MSMPEG4V2)        += msmpeg4v2
176
VCODEC_TESTS-$(call ENCDEC,ROQ)              += roq
177
VCODEC_TESTS-$(call ENCDEC,RV10)             += rv10
178
VCODEC_TESTS-$(call ENCDEC,RV20)             += rv20
179
VCODEC_TESTS-$(call ENCDEC,SNOW)             += snow snowll
180
VCODEC_TESTS-$(call ENCDEC,SVQ1)             += svq1
181
VCODEC_TESTS-$(call ENCDEC,WMV1)             += wmv1
182
VCODEC_TESTS-$(call ENCDEC,WMV2)             += wmv2
183

  
184
ACODEC_TESTS =
185
ACODEC_TESTS-$(call ENCDEC,AC3)              += ac3
186
ACODEC_TESTS-$(call ENCDEC,ADPCM_G726)       += g726
187
ACODEC_TESTS-$(call ENCDEC,ADPCM_IMA_QT)     += adpcm_ima_qt
188
ACODEC_TESTS-$(call ENCDEC,ADPCM_IMA_WAV)    += adpcm_ima_wav
189
ACODEC_TESTS-$(call ENCDEC,ADPCM_MS)         += adpcm_ms
190
ACODEC_TESTS-$(call ENCDEC,ADPCM_SWF)        += adpcm_swf
191
ACODEC_TESTS-$(call ENCDEC,ADPCM_YAMAHA)     += adpcm_yam
192
ACODEC_TESTS-$(call ENCDEC,ALAC)             += alac
193
ACODEC_TESTS-$(call ENCDEC,FLAC)             += flac
194
ACODEC_TESTS-$(call ENCDEC,MP2)              += mp2
195
ACODEC_TESTS-$(call ENCDEC,PCM_S16LE)        += pcm         # fixme
196
ACODEC_TESTS-$(call ENCDEC,WMAV1)            += wmav1
197
ACODEC_TESTS-$(call ENCDEC,WMAV1)            += wmav2
196 198

  
197 199
LAVF_TESTS =
198 200
LAVF_TESTS-$(call MUXDEM,AIFF)               += aiff
......
232 234

  
233 235
LAVFI_TESTS =
234 236

  
235
CODEC_TESTS := $(addprefix regtest-, $(CODEC_TESTS) $(CODEC_TESTS-yes))
237
ACODEC_TESTS := $(addprefix regtest-, $(ACODEC_TESTS) $(ACODEC_TESTS-yes))
238
VCODEC_TESTS := $(addprefix regtest-, $(VCODEC_TESTS) $(VCODEC_TESTS-yes))
236 239
LAVF_TESTS  := $(addprefix regtest-, $(LAVF_TESTS)  $(LAVF_TESTS-yes))
237 240
LAVFI_TESTS := $(addprefix regtest-, $(LAVFI_TESTS) $(LAVFI_TESTS-yes))
238 241

  
242
CODEC_TESTS = $(VCODEC_TESTS) $(ACODEC_TESTS)
243

  
239 244
codectest: $(CODEC_TESTS)
240 245
lavftest:  $(LAVF_TESTS)
241 246

  
242 247
# lavfitest: $(LAVFI_TESTS)
243 248

  
244
$(CODEC_TESTS) $(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref
249
$(ACODEC_TESTS): regtest-aref
250
$(VCODEC_TESTS): regtest-vref
251
$(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref
245 252

  
246 253
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
247 254
RESFILE = tests/data/$(2:regtest-%=%).$(1).regression
......
251 258
	$(SRC_PATH)/tests/codec-regression.sh $@ vsynth2 tests/vsynth2 a "$(TARGET_EXEC)" "$(TARGET_PATH)"
252 259
endef
253 260

  
254
regtest-ref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm tests/data/asynth1.sw
261
regtest-ref: regtest-aref regtest-vref
262

  
263
regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
255 264
	$(CODECTEST_CMD)
256 265

  
257
$(CODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
258
	@echo "TEST CODEC $(@:regtest-%=%)"
266
regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw
267
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec a "$(TARGET_EXEC)" "$(TARGET_PATH)"
268

  
269
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
270
	@echo "TEST VCODEC $(@:regtest-%=%)"
259 271
	@$(CODECTEST_CMD)
260 272
	@diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@)
261 273
	@diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@)
262 274

  
275
$(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
276
	@echo "TEST ACODEC $(@:regtest-%=%)"
277
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec a "$(TARGET_EXEC)" "$(TARGET_PATH)"
278
	@diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@)
279

  
263 280
$(LAVF_TESTS):
264 281
	@echo "TEST LAVF  $(@:regtest-%=%)"
265 282
	@$(SRC_PATH)/tests/lavf-regression.sh $@ lavf tests/vsynth1 b "$(TARGET_EXEC)" "$(TARGET_PATH)"

Also available in: Unified diff