2 # Makefile.am for the Nice Glib ICE library
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
9 include $(top_srcdir)/common.mk
16 -I $(top_srcdir)/agent \
17 -I $(top_srcdir)/random \
18 -I $(top_srcdir)/socket \
20 AM_CPPFLAGS = -DG_LOG_DOMAIN=\"libnice-tests\"
22 AM_TESTS_ENVIRONMENT = \
23 G_MESSAGES_DEBUG=all \
25 GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:$(top_builddir)/gst
27 COMMON_LDADD = $(top_builddir)/agent/libagent.la $(top_builddir)/socket/libsocket.la $(GLIB_LIBS) $(GUPNP_LIBS)
32 test-pseudotcp-fuzzy \
36 test-add-remove-stream \
37 test-build-io-stream \
38 test-io-stream-thread \
39 test-io-stream-closing-write \
40 test-io-stream-closing-read \
41 test-io-stream-cancelling \
42 test-io-stream-pollable \
44 test-socket-is-based-on \
45 test-udp-turn-fragmentation \
48 test-different-number-streams \
62 dist_check_SCRIPTS = \
63 check-test-fullmode-with-stun.sh \
64 test-pseudotcp-random.sh
67 check_PROGRAMS += test-gstreamer
70 TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
72 noinst_HEADERS = test-io-stream-common.h
74 test_pseudotcp_LDADD = $(COMMON_LDADD)
76 test_pseudotcp_fin_LDADD = $(COMMON_LDADD)
78 test_pseudotcp_fuzzy_LDADD = $(COMMON_LDADD) -lm
80 test_bsd_LDADD = $(COMMON_LDADD)
82 test_LDADD = $(COMMON_LDADD)
84 test_thread_LDADD = $(COMMON_LDADD)
86 test_address_LDADD = $(COMMON_LDADD)
88 test_add_remove_stream_LDADD = $(COMMON_LDADD)
90 test_build_io_stream_LDADD = $(COMMON_LDADD)
92 test_io_stream_thread_SOURCES = test-io-stream-thread.c test-io-stream-common.c
93 test_io_stream_thread_LDADD = $(COMMON_LDADD)
95 test_io_stream_closing_write_SOURCES = test-io-stream-closing-write.c test-io-stream-common.c
96 test_io_stream_closing_write_LDADD = $(COMMON_LDADD)
98 test_io_stream_closing_read_SOURCES = test-io-stream-closing-read.c test-io-stream-common.c
99 test_io_stream_closing_read_LDADD = $(COMMON_LDADD)
101 test_io_stream_cancelling_SOURCES = test-io-stream-cancelling.c test-io-stream-common.c
102 test_io_stream_cancelling_LDADD = $(COMMON_LDADD)
104 test_io_stream_pollable_SOURCES = test-io-stream-pollable.c test-io-stream-common.c
105 test_io_stream_pollable_LDADD = $(COMMON_LDADD)
107 test_send_recv_SOURCES = test-send-recv.c test-io-stream-common.c
108 test_send_recv_LDADD = $(COMMON_LDADD)
110 test_socket_is_based_on_LDADD = $(COMMON_LDADD)
112 test_udp_turn_fragmentation_LDADD = $(COMMON_LDADD)
114 test_priority_LDADD = $(COMMON_LDADD)
116 test_fullmode_LDADD = $(COMMON_LDADD)
118 test_different_number_streams_LDADD = $(COMMON_LDADD)
120 test_restart_LDADD = $(COMMON_LDADD)
122 test_fallback_LDADD = $(COMMON_LDADD)
124 test_trickle_LDADD = $(COMMON_LDADD)
126 test_new_trickle_LDADD = $(COMMON_LDADD)
128 test_tcp_LDADD = $(COMMON_LDADD)
130 test_icetcp_LDADD = $(COMMON_LDADD)
132 test_credentials_LDADD = $(COMMON_LDADD)
134 test_turn_LDADD = $(COMMON_LDADD)
136 test_drop_invalid_LDADD = $(COMMON_LDADD)
138 test_nomination_LDADD = $(COMMON_LDADD)
140 test_gstreamer_CFLAGS = $(AM_CFLAGS) $(GST_CHECK_CFLAGS)
141 test_gstreamer_LDADD = -lnice -L$(top_builddir)/nice/.libs $(GLIB_LIBS) $(GUPNP_LIBS) $(GST_CHECK_LIBS) $(GST_LIBS)
143 test_interfaces_LDADD = $(COMMON_LDADD)
146 chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh
147 chmod a+x $(srcdir)/test-pseudotcp-random.sh
152 test-fullmode-with-stun.c