1include $(top_srcdir)/common/check.mak 2 3CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.xml 4 5REGISTRY_ENVIRONMENT = \ 6 GST_REGISTRY=$(CHECK_REGISTRY) 7 8TESTS_ENVIRONMENT = \ 9 G_SLICE=debug-blocks \ 10 CK_DEFAULT_TIMEOUT=120 \ 11 STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)" \ 12 $(REGISTRY_ENVIRONMENT) \ 13 GST_PLUGIN_LOADING_WHITELIST=gstreamer:gst-plugins-base:gst-plugins-good:libnice:valve:siren:autoconvert:rtpmux:dtmf:mimic:shm:spandsp:srtp:farstream@$(top_builddir)/gst \ 14 GST_PLUGIN_PATH=$(top_builddir)/gst:${GST_PLUGIN_PATH} \ 15 GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:${GST_PLUGIN_PATH_1_0} \ 16 FS_PLUGIN_PATH=$(top_builddir)/transmitters/rawudp/.libs:$(top_builddir)/transmitters/multicast/.libs:$(top_builddir)/transmitters/nice/.libs:$(top_builddir)/transmitters/shm/.libs \ 17 LD_LIBRARY_PATH=$(top_builddir)/farstream/.libs:${LD_LIBRARY_PATH} \ 18 UPNP_XML_PATH=$(srcdir)/upnp \ 19 SRCDIR=$(srcdir) \ 20 XDG_CACHE_HOME=$(builddir)/cache 21 22 23# ths core dumps of some machines have PIDs appended 24CLEANFILES = core* test-registry.xml 25 26clean-local: clean-local-check 27 rm -rf cache 28 29$(CHECK_REGISTRY): 30 $(TESTS_ENVIRONMENT) 31 32 33TESTS = $(check_PROGRAMS) 34 35SUPPRESSIONS = $(top_srcdir)/common/gst.supp 36 37EXTRA_DIST = \ 38 upnp/InternetGatewayDevice.xml \ 39 upnp/WANIPConnection.xml \ 40 base/test1.conf \ 41 utils/gstelements.conf 42 43####### 44# From here.. Its a list of our tests and their sub stuff 45# 46check_PROGRAMS = \ 47 base/fscodec \ 48 base/fstransmitter \ 49 transmitter/rawudp \ 50 transmitter/multicast \ 51 transmitter/nice \ 52 transmitter/shm \ 53 raw/conference \ 54 rtp/codecs \ 55 rtp/sendcodecs \ 56 rtp/conference \ 57 rtp/recvcodecs \ 58 utils/binadded 59 60AM_CFLAGS = \ 61 $(CFLAGS) \ 62 $(FS_INTERNAL_CFLAGS) \ 63 $(FS_CFLAGS) \ 64 $(GST_CHECK_CFLAGS) \ 65 $(GST_CFLAGS) 66 67LDADD = \ 68 $(top_builddir)/farstream/libfarstream-@FS_APIVERSION@.la \ 69 $(GST_CHECK_LIBS) \ 70 $(GST_LIBS) 71 72base_fscodec_SOURCES = \ 73 testutils.c \ 74 testutils.h \ 75 base/fscodec.c 76 77 78transmitter_rawudp_CFLAGS = $(AM_CFLAGS) \ 79 $(GUPNP_CFLAGS) $(GIO_CFLAGS) $(NICE_CFLAGS) 80transmitter_rawudp_LDADD = $(LDADD) \ 81 $(GUPNP_LIBS) \ 82 $(GIO_LIBS) \ 83 $(NICE_LIBS) 84transmitter_rawudp_SOURCES = \ 85 check-threadsafe.h \ 86 testutils.c \ 87 testutils.h \ 88 transmitter/generic.c \ 89 transmitter/generic.h \ 90 transmitter/rawudp.c \ 91 transmitter/rawudp-upnp.c \ 92 transmitter/rawudp-upnp.h \ 93 transmitter/stunalternd.c \ 94 transmitter/stunalternd.h 95 96 97transmitter_multicast_CFLAGS = $(AM_CFLAGS) 98transmitter_multicast_SOURCES = \ 99 check-threadsafe.h \ 100 testutils.c \ 101 testutils.h \ 102 transmitter/generic.c \ 103 transmitter/generic.h \ 104 transmitter/multicast.c 105transmitter_multicast_LDADD = $(LDADD) $(GST_BASE_LIBS) 106 107transmitter_nice_CFLAGS = $(FS_INTERNAL_CFLAGS) $(CFLAGS) $(AM_CFLAGS) 108transmitter_nice_SOURCES = \ 109 check-threadsafe.h \ 110 transmitter/generic.c \ 111 transmitter/generic.h \ 112 transmitter/nice.c 113transmitter_nice_LDADD = $(LDADD) $(GST_BASE_LIBS) 114 115 116transmitter_shm_CFLAGS = $(AM_CFLAGS) $(GUPNP_CFLAGS) $(NICE_CFLAGS) 117transmitter_shm_LDADD = $(LDADD) \ 118 $(GUPNP_LIBS) \ 119 $(NICE_LIBS) 120transmitter_shm_SOURCES = \ 121 check-threadsafe.h \ 122 transmitter/generic.c \ 123 transmitter/generic.h \ 124 transmitter/shm.c 125 126raw_conference_CFLAGS = $(CFLAGS) $(AM_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) 127raw_conference_SOURCES = \ 128 check-threadsafe.h \ 129 testutils.c \ 130 testutils.h \ 131 raw/conference.c 132 133rtp_conference_CFLAGS = $(AM_CFLAGS) 134rtp_conference_SOURCES = \ 135 check-threadsafe.h \ 136 testutils.c \ 137 testutils.h \ 138 rtp/generic.c \ 139 rtp/generic.h \ 140 rtp/conference.c 141 142rtp_codecs_CFLAGS = $(AM_CFLAGS) 143rtp_codecs_SOURCES = \ 144 rtp/generic.c \ 145 rtp/generic.h \ 146 rtp/codecs.c 147 148rtp_sendcodecs_CFLAGS = $(AM_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) 149rtp_sendcodecs_LDADD = $(LDADD) -lgstrtp-@GST_API_VERSION@ 150rtp_sendcodecs_SOURCES = \ 151 rtp/generic.c \ 152 rtp/generic.h \ 153 rtp/sendcodecs.c 154 155rtp_recvcodecs_CFLAGS = $(AM_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) 156rtp_recvcodecs_LDADD = $(LDADD) -lgstrtp-@GST_API_VERSION@ 157 158utils_binadded_CFLAGS = $(AM_CFLAGS) 159utils_binadded_SOURCES = \ 160 testutils.c \ 161 testutils.h \ 162 utils/binadded.c 163