add 'toolsdir' to the pc files add our first plugin test, which involves simply runni...
authorAndy Wingo <wingo@pobox.com>
Sat, 16 Feb 2002 17:53:58 +0000 (17:53 +0000)
committerAndy Wingo <wingo@pobox.com>
Sat, 16 Feb 2002 17:53:58 +0000 (17:53 +0000)
Original commit message from CVS:
* add 'toolsdir' to the pc files
* add our first plugin test, which involves simply running gst-compprep,
which in the course of creating the completion registry instantiates every
plugin. gst-register is run first.

Makefile.am
configure.ac
tests/old/Makefile.am [new file with mode: 0644]
testsuite/Makefile.am [new file with mode: 0644]

index f29fe334d7ff54f7c54303463936c9f3752eb5d6..8631a72aba99fbd4e4fc2e3bcf1d58ff4f233279 100644 (file)
@@ -1,5 +1,5 @@
-SUBDIRS=gst-libs gst sys ext examples tools
+SUBDIRS=gst-libs gst sys ext examples tools testsuite
 
-DIST_SUBDIRS=gst-libs gst sys ext examples tools
+DIST_SUBDIRS=gst-libs gst sys ext examples tools testsuite
 
 EXTRA_DIST=gst-plugins.spec depcomp AUTHORS COPYING README RELEASE ChangeLog autogen.sh
index d018f56a6c0820b94689e13ed0d2269da5f7b501..7e7d98ba0f12e15e5e11e6d9bd46ed825b961fbf 100644 (file)
@@ -90,12 +90,19 @@ else
 fi
 
 dnl check for gstreamer; uninstalled is selected preferentially -- see pkg-config(1)
-PKG_CHECK_MODULES(GST, gstreamer >= 0.3.1, HAVE_GST="yes", HAVE_GST="no")
+PKG_CHECK_MODULES(GST, gstreamer >= $GST_PLUGINS_MAJOR.$GST_PLUGINS_MINOR.$GST_PLUGINS_MICRO,
+  HAVE_GST="yes", HAVE_GST="no")
 
 if test "x$HAVE_GST" = "xno"; then
   AC_MSG_ERROR(no GStreamer found)
 fi
 
+GST_TOOLS_DIR=`pkg-config --variable=toolsdir gstreamer`
+if test -z $GST_TOOLS_DIR; then
+  AC_MSG_ERROR([no tools dir defined in GStreamer pkg-config file; core upgrade needed.])
+fi
+AC_SUBST(GST_TOOLS_DIR)
+
 dnl Set up conditionals for (target) architecture:
 dnl ==============================================
 
@@ -791,6 +798,7 @@ gst-libs/gst/riff/Makefile
 examples/capsfilter/Makefile
 examples/Makefile
 tools/Makefile
+testsuite/Makefile
 )
 
 AC_OUTPUT
diff --git a/tests/old/Makefile.am b/tests/old/Makefile.am
new file mode 100644 (file)
index 0000000..6afed10
--- /dev/null
@@ -0,0 +1,9 @@
+SUBDIRS=
+DIST_SUBDIRS=
+
+$(TESTS):
+       $(GST_TOOLS_DIR)/gst-register --gst-plugin-path=$(top_builddir)
+
+TESTS=$(GST_TOOLS_DIR)/gst-compprep
+
+.PHONY: $(TESTS)
diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
new file mode 100644 (file)
index 0000000..6afed10
--- /dev/null
@@ -0,0 +1,9 @@
+SUBDIRS=
+DIST_SUBDIRS=
+
+$(TESTS):
+       $(GST_TOOLS_DIR)/gst-register --gst-plugin-path=$(top_builddir)
+
+TESTS=$(GST_TOOLS_DIR)/gst-compprep
+
+.PHONY: $(TESTS)