gst.h: Don't spew warnings if GST_USE_UNSTABLE_API is not defined
[platform/upstream/gstreamer.git] / tests / check / Makefile.am
index efcacb2..560b5b1 100644 (file)
@@ -7,14 +7,14 @@ GST_TOOLS_DIR = $(top_builddir)/tools
 REGISTRY_ENVIRONMENT = \
        GST_REGISTRY=$(CHECK_REGISTRY)
 
-TESTS_ENVIRONMENT = \
+AM_TESTS_ENVIRONMENT = \
         GST_STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)"   \
         $(REGISTRY_ENVIRONMENT)                                        \
-        GST_PLUGIN_SCANNER=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner \
-        GST_PLUGIN_SYSTEM_PATH=                                        \
-        GST_PLUGIN_PATH=$(top_builddir)/plugins
+        GST_PLUGIN_SCANNER_1_0=$(top_builddir)/libs/gst/helpers/gst-plugin-scanner \
+        GST_PLUGIN_SYSTEM_PATH_1_0=                                    \
+        GST_PLUGIN_PATH_1_0=$(top_builddir)/plugins
 
-plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
+plugindir = $(libdir)/gstreamer-@GST_API_VERSION@
 
 # override to _not_ install the test plugins
 install-pluginLTLIBRARIES:
@@ -27,6 +27,9 @@ SUPPRESSIONS = $(top_srcdir)/common/gst.supp
 
 clean-local: clean-local-check
 
+# These tests don't even build any longer:
+#   gst/gstindex.c
+
 if GST_DISABLE_PARSE
 PARSE_CHECKS = pipelines/parse-disabled
 else
@@ -35,14 +38,20 @@ endif
 
 # Do not run the abi test in case any option which causes the API to change has
 # been used
-if !GST_DISABLE_LOADSAVE
 if !GST_DISABLE_REGISTRY
 if !GST_DISABLE_TRACE
 ABI_CHECKS = gst/gstabi
 endif
 endif
+
+if !GST_DISABLE_GST_DEBUG
+PRINTF_CHECKS = gst/gstprintf
+else
+PRINTF_CHECKS =
 endif
 
+LIBSABI_CHECKS = libs/libsabi
+
 if HAVE_CXX
 CXX_CHECKS = gst/gstcpp libs/gstlibscpp
 else
@@ -58,20 +67,22 @@ REGISTRY_CHECKS =                           \
        gst/gst                                 \
        gst/gstbin                              \
        gst/gstchildproxy                       \
+       gst/gstcontext                          \
+       gst/gstcontroller                       \
        gst/gstelement                          \
        gst/gstelementfactory                   \
        gst/gstevent                            \
        gst/gstghostpad                         \
-       gst/gstindex                            \
-       gst/gstinterface                        \
        gst/gstplugin                           \
        gst/gstpreset                           \
+       gst/gstprotection                       \
        gst/gstquery                            \
        gst/gstregistry                         \
        gst/gsturi                              \
        gst/gstutils                            \
        generic/sinks                           \
        elements/capsfilter                     \
+       elements/concat                         \
        elements/fakesink                       \
        elements/fakesrc                        \
        elements/fdsrc                          \
@@ -85,9 +96,13 @@ REGISTRY_CHECKS =                            \
        elements/queue                          \
        elements/queue2                         \
        elements/valve                          \
+       elements/streamiddemux                  \
+       libs/baseparse                          \
        libs/basesrc                            \
        libs/basesink                           \
+       libs/sparsefile                         \
        libs/controller                         \
+       libs/queuearray                         \
        libs/typefindhelper                     \
        pipelines/seek                          \
        pipelines/stress                        \
@@ -99,10 +114,15 @@ check_PROGRAMS =                           \
        gst/gstatomicqueue                      \
        gst/gstbuffer                           \
        gst/gstbufferlist                       \
+       gst/gstbufferpool                       \
+       gst/gstmeta                             \
+       gst/gstmemory                           \
        gst/gstbus                              \
        gst/gstcaps                             \
+       gst/gstcapsfeatures                     \
        $(CXX_CHECKS)                           \
        gst/gstdatetime                         \
+       gst/gstdevice                           \
        gst/gstinfo                             \
        gst/gstiterator                         \
        gst/gstmessage                          \
@@ -110,33 +130,45 @@ check_PROGRAMS =                          \
        gst/gstobject                           \
        gst/gstpad                              \
        gst/gstparamspecs                       \
+       gst/gstpipeline                         \
        gst/gstpoll                             \
+       gst/gstprotection                       \
+       $(PRINTF_CHECKS)                        \
        gst/gstsegment                          \
        gst/gstsystemclock                      \
        gst/gstclock                            \
        gst/gststructure                        \
        gst/gsttag                              \
+       gst/gsttracerrecord                             \
        gst/gsttagsetter                        \
        gst/gsttask                             \
        gst/gsttoc                              \
+       gst/gsttocsetter                        \
        gst/gstvalue                            \
        generic/states                          \
        $(PARSE_CHECKS)                         \
        $(REGISTRY_CHECKS)                      \
-       libs/libsabi                            \
-       libs/gdp                                \
+       $(LIBSABI_CHECKS)                       \
        libs/adapter                            \
        libs/bitreader                          \
        libs/bytereader                         \
        libs/bytewriter                         \
+       libs/bitreader-noinline         \
+       libs/bytereader-noinline        \
+       libs/bytewriter-noinline        \
+       libs/flowcombiner                       \
+       libs/sparsefile                         \
+       libs/collectpads                        \
+       libs/gstharness                         \
        libs/gstnetclientclock                  \
        libs/gstnettimeprovider                 \
-       libs/transform1
+       libs/gsttestclock                       \
+       libs/transform1                         \
+       libs/transform2                         \
+       tools/gstinspect
 
 # failing tests
-noinst_PROGRAMS =                              \
-       gst/gstpipeline                         \
-       libs/collectpads
+noinst_PROGRAMS =
 
 # elements to ignore for the state tests
 # STATE_IGNORE_ELEMENTS =
@@ -163,22 +195,24 @@ noinst_HEADERS = \
 EXTRA_DIST = \
        libs/test_transform.c
 
-AM_CFLAGS = $(GST_OBJ_CFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
-AM_CXXFLAGS = $(GST_OBJ_CXXFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
-LDADD = $(top_builddir)/libs/gst/check/libgstcheck-@GST_MAJORMINOR@.la \
-       $(top_builddir)/libs/gst/base/libgstbase-@GST_MAJORMINOR@.la \
+AM_CFLAGS = $(GST_OBJ_CFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS \
+       -DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_STATE_IGNORE_ELEMENTS\""
+AM_CXXFLAGS = $(GST_OBJ_CXXFLAGS) -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS \
+       -DGST_CHECK_TEST_ENVIRONMENT_BEACON="\"GST_STATE_IGNORE_ELEMENTS\""
+LDADD = $(top_builddir)/libs/gst/check/libgstcheck-@GST_API_VERSION@.la \
+       $(top_builddir)/libs/gst/base/libgstbase-@GST_API_VERSION@.la \
        $(GST_OBJ_LIBS)
 
 gst_gstcpp_SOURCES = gst/gstcpp.cc
 
 libs_gstlibscpp_SOURCES = libs/gstlibscpp.cc
 
+gst_gsttracerrecord_CFLAGS = $(GST_OBJ_CFLAGS) $(AM_CFLAGS) -DGST_USE_UNSTABLE_API
+
 gst_gstutils_LDADD = $(LDADD) $(GSL_LIBS) $(GMP_LIBS)
 
-libs_gdp_SOURCES = \
-       libs/gdp.c
-libs_gdp_LDADD = \
-       $(top_builddir)/libs/gst/dataprotocol/libgstdataprotocol-@GST_MAJORMINOR@.la \
+gst_gstprintf_LDADD = \
+       $(top_builddir)/gst/printf/libgstprintf.la \
        $(LDADD)
 
 elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \
@@ -187,21 +221,21 @@ elements_filesrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \
        -DTESTFILE=\"$(top_srcdir)/configure.ac\"
 
 libs_controller_LDADD = \
-       $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_MAJORMINOR@.la \
+       $(top_builddir)/libs/gst/controller/libgstcontroller-@GST_API_VERSION@.la \
        $(LDADD)
 libs_gstnetclientclock_LDADD = \
-       $(top_builddir)/libs/gst/net/libgstnet-@GST_MAJORMINOR@.la \
+       $(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
        $(LDADD)
 libs_gstnettimeprovider_LDADD = \
-       $(top_builddir)/libs/gst/net/libgstnet-@GST_MAJORMINOR@.la \
-       $(LDADD)
+       $(top_builddir)/libs/gst/net/libgstnet-@GST_API_VERSION@.la \
+       $(GIO_LIBS) $(LDADD)
 
 # valgrind testing
 # these just need valgrind fixing, period
 VALGRIND_TO_FIX = \
        gst/gstinfo \
-       libs/collectpads \
-       pipelines/parse-launch
+       pipelines/parse-launch \
+       tools/gstinspect
 
 VALGRIND_IGNORE = \
        pipelines/stress
@@ -222,7 +256,6 @@ COVERAGE_DIRS = \
        libs/gst/base \
        libs/gst/controller \
        libs/gst/check \
-       libs/gst/dataprotocol \
        libs/gst/net \
        plugins/elements
 COVERAGE_FILES = $(foreach dir,$(COVERAGE_DIRS),$(wildcard $(top_builddir)/$(dir)/*.gcov))
@@ -267,7 +300,6 @@ coverage-report:
              coverage/$$dir/index.xml > coverage/$$dir/index.html;     \
          fi; \
         done
-       
        for file in $(COVERAGE_FILES_REL); do                           \
          echo Generating coverage/$$file.html;                         \
          perl $(top_srcdir)/common/coverage/coverage-report-entry.pl   \