fate/api-tests: Tests that need samples should only run if SAMPLES is set
[ffmpeg.git] / tests / fate / api.mak
1 FATE_API_LIBAVCODEC-$(call ENCDEC, FLAC, FLAC) += fate-api-flac
2 fate-api-flac: $(APITESTSDIR)/api-flac-test$(EXESUF)
3 fate-api-flac: CMD = run $(APITESTSDIR)/api-flac-test
4 fate-api-flac: CMP = null
5 fate-api-flac: REF = /dev/null
6
7 FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, H264, H264) += fate-api-h264
8 fate-api-h264: $(APITESTSDIR)/api-h264-test$(EXESUF)
9 fate-api-h264: CMD = run $(APITESTSDIR)/api-h264-test $(TARGET_SAMPLES)/h264-conformance/SVA_NL2_E.264
10
11 FATE_API_SAMPLES-$(CONFIG_AVFORMAT) += $(FATE_API_SAMPLES_LIBAVFORMAT-yes)
12
13 ifdef SAMPLES
14     FATE_API_SAMPLES += $(FATE_API_SAMPLES-yes)
15 endif
16
17 FATE_API-$(CONFIG_AVCODEC) += $(FATE_API_LIBAVCODEC-yes)
18 FATE_API-$(CONFIG_AVFORMAT) += $(FATE_API_LIBAVFORMAT-yes)
19 FATE_API = $(FATE_API-yes)
20
21 FATE-yes += $(FATE_API) $(FATE_API_SAMPLES)
22
23 fate-api: $(FATE_API) $(FATE_API_SAMPLES)