[FFmpeg-devel] [PATCH 1/2] fate/api-tests: Add directory and Makefile for API tests
George Boyle
george at thebuds.net
Wed Jun 24 03:27:31 CEST 2015
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.
---
tests/Makefile | 3 +++
tests/api/Makefile | 9 +++++++++
2 files changed, 12 insertions(+)
create mode 100644 tests/api/Makefile
diff --git a/tests/Makefile b/tests/Makefile
index cffa541..2eaa0cc 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -89,6 +89,9 @@ FILTERDEMDECENCMUX = $(call ALLYES, $(1:%=%_FILTER) $(2)_DEMUXER $(3)_DECODER $(
PARSERDEMDEC = $(call ALLYES, $(1)_PARSER $(2)_DEMUXER $(3)_DECODER)
+APITESTSDIR := tests/api
+include $(SRC_PATH)/$(APITESTSDIR)/Makefile
+
include $(SRC_PATH)/tests/fate/acodec.mak
include $(SRC_PATH)/tests/fate/vcodec.mak
include $(SRC_PATH)/tests/fate/avformat.mak
diff --git a/tests/api/Makefile b/tests/api/Makefile
new file mode 100644
index 0000000..9cb3d7f
--- /dev/null
+++ b/tests/api/Makefile
@@ -0,0 +1,9 @@
+APITESTOBJS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
+APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF))
+-include $(wildcard $(APITESTOBJS:.o=.d))
+
+$(APITESTPROGS): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF)
+ $(CP) $< $@
+ $(STRIP) $@
+
+$(foreach P,$(APITESTPROGS),$(eval $(call DOPROG,$(P:$(PROGSSUF)$(EXESUF)=))))
--
2.4.4
More information about the ffmpeg-devel
mailing list