mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
fate/api-tests: Add directory and Makefile for API tests
The intention of this change is to allow separation of API tests from the existing tests, and also to have a place for the API test source/executable files so they're not mixed in with the actual library code. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1221b7df68
commit
3f18cb97e5
@ -16,7 +16,8 @@ ffservertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/data/asynth1.sw
|
|||||||
@echo
|
@echo
|
||||||
$(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf
|
$(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf
|
||||||
|
|
||||||
OBJDIRS += tests/data tests/vsynth1 tests/data/filtergraphs
|
APITESTSDIR := tests/api
|
||||||
|
OBJDIRS += tests/data tests/vsynth1 tests/data/filtergraphs $(APITESTSDIR)
|
||||||
|
|
||||||
$(VREF): tests/videogen$(HOSTEXESUF) | tests/vsynth1
|
$(VREF): tests/videogen$(HOSTEXESUF) | tests/vsynth1
|
||||||
$(M)./$< 'tests/vsynth1/'
|
$(M)./$< 'tests/vsynth1/'
|
||||||
@ -89,6 +90,8 @@ FILTERDEMDECENCMUX = $(call ALLYES, $(1:%=%_FILTER) $(2)_DEMUXER $(3)_DECODER $(
|
|||||||
|
|
||||||
PARSERDEMDEC = $(call ALLYES, $(1)_PARSER $(2)_DEMUXER $(3)_DECODER)
|
PARSERDEMDEC = $(call ALLYES, $(1)_PARSER $(2)_DEMUXER $(3)_DECODER)
|
||||||
|
|
||||||
|
include $(SRC_PATH)/$(APITESTSDIR)/Makefile
|
||||||
|
|
||||||
include $(SRC_PATH)/tests/fate/acodec.mak
|
include $(SRC_PATH)/tests/fate/acodec.mak
|
||||||
include $(SRC_PATH)/tests/fate/vcodec.mak
|
include $(SRC_PATH)/tests/fate/vcodec.mak
|
||||||
include $(SRC_PATH)/tests/fate/avformat.mak
|
include $(SRC_PATH)/tests/fate/avformat.mak
|
||||||
@ -218,7 +221,7 @@ lcov-reset:
|
|||||||
|
|
||||||
clean:: testclean
|
clean:: testclean
|
||||||
|
|
||||||
testclean:
|
testclean::
|
||||||
$(RM) -r tests/vsynth1 tests/data tools/lavfi-showfiltfmts$(EXESUF)
|
$(RM) -r tests/vsynth1 tests/data tools/lavfi-showfiltfmts$(EXESUF)
|
||||||
$(RM) $(CLEANSUFFIXES:%=tests/%)
|
$(RM) $(CLEANSUFFIXES:%=tests/%)
|
||||||
$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
|
$(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
|
||||||
|
15
tests/api/Makefile
Normal file
15
tests/api/Makefile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
APITESTPROGS += $(APITESTPROGS-yes)
|
||||||
|
|
||||||
|
APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
|
||||||
|
APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF))
|
||||||
|
-include $(wildcard $(APITESTOBJS:.o=.d))
|
||||||
|
|
||||||
|
$(APITESTOBJS): | $(sort $(dir $(APITESTOBJS)))
|
||||||
|
$(APITESTOBJS) $(APITESTOBJS:.o=.i): CPPFLAGS += -DTEST
|
||||||
|
$(APITESTOBJS) $(APITESTOBJS:.o=.i): CFLAGS += -Umain
|
||||||
|
|
||||||
|
$(APITESTPROGS): %$(EXESUF): %.o $(EXEOBJS)
|
||||||
|
$(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(filter %.o,$^) $(FF_DEP_LIBS) $(FFEXTRALIBS) $(ELIBS)
|
||||||
|
|
||||||
|
testclean::
|
||||||
|
$(RM) $(addprefix $(APITESTSDIR)/,$(CLEANSUFFIXES) *-test$(EXESUF))
|
Loading…
Reference in New Issue
Block a user