adding tests for elements
[platform/upstream/gstreamer.git] / tests / check / Makefile.am
1 TESTS_ENVIRONMENT=\
2         GST_PLUGIN_PATH_ONLY=yes \
3         GST_PLUGIN_PATH=$(top_builddir)/gst \
4         GST_REGISTRY=$(top_builddir)/check/test-registry.xml
5
6 plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
7
8 # rebuild gst-register-@GST_MAJORMINOR@ if needed
9 $(top_builddir)/tools/gst-register-@GST_MAJORMINOR@$(EXEEXT):
10         cd $(top_builddir)/tools && make
11
12 # override to _not_ install the test plugins
13 install-pluginLTLIBRARIES:
14
15 # ths core dumps of some machines have PIDs appended
16 CLEANFILES = core.* test-registry.xml
17
18 clean-local:
19         for i in `find . -name ".libs" -type d`; do \
20           rm -rf $$i; \
21         done
22
23 # FIXME: it'd be nicer to run the versioned register, but in that case
24 # "make dist" complains about not finding gst-register-0.9.c
25 TESTS = $(top_builddir)/tools/gst-register      \
26         gst/gst                                 \
27         gst/gstbin                              \
28         gst/gstbuffer                           \
29         gst/gstbus                              \
30         gst/gstcaps                             \
31         gst/gstelement                          \
32         gst/gstghostpad                         \
33         gst/gstiterator                         \
34         gst/gstmessage                          \
35         gst/gstobject                           \
36         gst/gstpad                              \
37         gst/gstsystemclock                      \
38         gst/gststructure                        \
39         gst/gsttag                              \
40         gst/gstvalue                            \
41         elements/gstfakesrc                     \
42         pipelines/simple_launch_lines           \
43         pipelines/cleanup                       \
44         states/sinks                            \
45         gst-libs/gdp    
46
47 check_PROGRAMS = $(TESTS)
48
49 noinst_LTLIBRARIES = libgstcheck.la
50
51 libgstcheck_la_SOURCES = gstcheck.c
52 libgstcheck_la_LIBADD = $(GST_OBJ_LIBS)
53 noinst_HEADERS = gstcheck.h gst/capslist.h
54
55 AM_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
56 LDADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) libgstcheck.la
57
58 gst_libs_gdp_SOURCES = \
59         gst-libs/gdp.c \
60         $(top_srcdir)/libs/gst/dataprotocol/dataprotocol.c
61 # remove GST_ENABLE_NEW when dataprotocol has been declared API-stable
62 gst_libs_gdp_CFLAGS = $(AM_CFLAGS) -DGST_ENABLE_NEW