mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
9ffa8aff27
Original commit message from CVS: 2005-02-11 Andy Wingo <wingo@pobox.com> * check/gst/gstcaps.c: New test suite. Only one test at the moment -- this is an infrastructure commit. * check/gst/gstobject.c (main): * check/gst/gstdata.c (main): * check/gst-libs/gdp.c (main): Use gst_check_init() to initialize gstreamer. * check/gstcheck.h: Declare all variables as extern so they are defined once in gstcheck.c. (ASSERT_CRITICAL): New macro, asserts that the expression passed as an argument raises one or more critical logs. * check/gstcheck.c: Define the extern-declared variables here. (gst_check_log_message_func, gst_check_log_critical_func): The log function was split in two, one for messages and one for criticals. The criticals logfunc will fail if a critical was not expected. The messages logfunc is the same as before. (gst_check_init): Set up all log handlers, and initialize gstreamer too. * check/Makefile.am: Pulled over some pieces from the old testsuite/ directory. Don't use --gst-fatal-warnings though, we have some new mechanisms for that. (TESTS): Added gst/gstcaps.
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
TESTS_ENVIRONMENT=\
|
|
GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/check \
|
|
GST_REGISTRY=$(top_builddir)/check/test-registry.xml
|
|
|
|
plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
|
|
|
|
# make all tests depend on the versioned gst-register
|
|
$(TESTS): $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@
|
|
|
|
# rebuild gst-register-@GST_MAJORMINOR@ if needed
|
|
# the EXEEXT is because am 1.6 complained about overrides
|
|
$(top_builddir)/tools/gst-register-@GST_MAJORMINOR@$(EXEEXT):
|
|
cd $(top_builddir)/tools && make
|
|
|
|
# override to _not_ install the test plugins
|
|
install-pluginLTLIBRARIES:
|
|
|
|
# This rule is here so make distcheck works on machines where core
|
|
# dumps have PIDs appended
|
|
CLEANFILES = core.*
|
|
|
|
TESTS = $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@ \
|
|
gst/gstcaps \
|
|
gst/gstdata \
|
|
gst/gstobject \
|
|
gst-libs/gdp
|
|
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
noinst_LTLIBRARIES = libgstcheck.la
|
|
|
|
libgstcheck_la_SOURCES = gstcheck.c
|
|
libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
|
|
noinst_HEADERS = gstcheck.h
|
|
|
|
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
|
|
LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
|
|
|
|
gst_libs_gdp_SOURCES = \
|
|
gst-libs/gdp.c \
|
|
$(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
|
|
# remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
|
|
gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW
|