mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] gstreamer1: optionally install gstcheck library
@ 2019-04-05  9:00 Michael Tretter
  0 siblings, 0 replies; only message in thread
From: Michael Tretter @ 2019-04-05  9:00 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Tretter

The GStreamer unit test library provides helpers for writing unit tests
for GStreamer elements. The library include GstCheck for building a test
suite and GstHarness for feeding test data to elements.

Notably, gst-check does not enable the internal GStreamer unit tests.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/gstreamer1.in   | 5 +++++
 rules/gstreamer1.make | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/gstreamer1.in b/rules/gstreamer1.in
index 9fea4a903..0ce231133 100644
--- a/rules/gstreamer1.in
+++ b/rules/gstreamer1.in
@@ -29,6 +29,11 @@ if GSTREAMER1
 		default y
 		prompt "enable debug support"
 
+	config GSTREAMER1_CHECK
+		bool
+		default n
+		prompt "install gst-check library"
+
 	config GSTREAMER1_INSTALL_TOOLS
 		bool
 		default y
diff --git a/rules/gstreamer1.make b/rules/gstreamer1.make
index 82742482f..c11ece086 100644
--- a/rules/gstreamer1.make
+++ b/rules/gstreamer1.make
@@ -82,7 +82,7 @@ GSTREAMER1_CONF_OPT	:= \
 	--disable-poisoning \
 	--$(call ptx/endis, PTXCONF_GSTREAMER1_INTROSPECTION)-introspection \
 	\
-	--disable-check \
+	--$(call ptx/endis, PTXCONF_GSTREAMER1_CHECK)-check \
 	--with-ptp-helper-setuid-user=nobody \
 	--with-ptp-helper-setuid-group=nogroup \
 	--with-ptp-helper-permissions=setuid-root \
@@ -121,6 +121,9 @@ endif
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstcontroller-1.0)
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstnet-1.0)
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstreamer-1.0)
+ifdef PTXCONF_GSTREAMER1_CHECK
+	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstcheck-1.0)
+endif
 
 	@$(call install_lib, gstreamer1, 0, 0, 0644, \
 		gstreamer-1.0/libgstcoreelements)
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-05  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-05  9:00 [ptxdist] [PATCH] gstreamer1: optionally install gstcheck library Michael Tretter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox