Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / tests / Makefile.am
1 #
2 # Makefile.am for the Nice Glib ICE library
3 #
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
6 #
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
8
9 include $(top_srcdir)/common.mk
10
11 AM_CFLAGS = \
12         $(LIBNICE_CFLAGS) \
13         $(GLIB_CFLAGS) \
14         $(GUPNP_CFLAGS) \
15         -I $(top_srcdir) \
16         -I $(top_srcdir)/agent \
17         -I $(top_srcdir)/random \
18         -I $(top_srcdir)/socket \
19         -I $(top_srcdir)/stun
20 AM_CPPFLAGS = -DG_LOG_DOMAIN=\"libnice-tests\"
21
22 AM_TESTS_ENVIRONMENT = \
23         G_MESSAGES_DEBUG=all \
24         NICE_DEBUG=all \
25         GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:$(top_builddir)/gst
26
27 COMMON_LDADD = $(top_builddir)/agent/libagent.la $(top_builddir)/socket/libsocket.la $(GLIB_LIBS) $(GUPNP_LIBS)
28
29 check_PROGRAMS = \
30         test-pseudotcp \
31         test-pseudotcp-fin \
32         test-pseudotcp-fuzzy \
33         test-bsd \
34         test \
35         test-address \
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 \
43         test-send-recv \
44         test-socket-is-based-on \
45         test-udp-turn-fragmentation \
46         test-priority \
47         test-fullmode \
48         test-different-number-streams \
49         test-restart \
50         test-fallback \
51         test-thread \
52         test-trickle \
53         test-new-trickle \
54         test-tcp \
55         test-icetcp \
56         test-credentials \
57         test-turn \
58         test-drop-invalid \
59         test-nomination \
60         test-interfaces
61
62 dist_check_SCRIPTS = \
63         check-test-fullmode-with-stun.sh \
64         test-pseudotcp-random.sh
65
66 if HAVE_GST_CHECK
67 check_PROGRAMS += test-gstreamer
68 endif
69
70 TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)
71
72 noinst_HEADERS = test-io-stream-common.h
73
74 test_pseudotcp_LDADD = $(COMMON_LDADD)
75
76 test_pseudotcp_fin_LDADD = $(COMMON_LDADD)
77
78 test_pseudotcp_fuzzy_LDADD = $(COMMON_LDADD) -lm
79
80 test_bsd_LDADD = $(COMMON_LDADD)
81
82 test_LDADD = $(COMMON_LDADD)
83
84 test_thread_LDADD = $(COMMON_LDADD)
85
86 test_address_LDADD = $(COMMON_LDADD)
87
88 test_add_remove_stream_LDADD = $(COMMON_LDADD)
89
90 test_build_io_stream_LDADD = $(COMMON_LDADD)
91
92 test_io_stream_thread_SOURCES = test-io-stream-thread.c test-io-stream-common.c
93 test_io_stream_thread_LDADD = $(COMMON_LDADD)
94
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)
97
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)
100
101 test_io_stream_cancelling_SOURCES = test-io-stream-cancelling.c test-io-stream-common.c
102 test_io_stream_cancelling_LDADD = $(COMMON_LDADD)
103
104 test_io_stream_pollable_SOURCES = test-io-stream-pollable.c test-io-stream-common.c
105 test_io_stream_pollable_LDADD = $(COMMON_LDADD)
106
107 test_send_recv_SOURCES = test-send-recv.c test-io-stream-common.c
108 test_send_recv_LDADD = $(COMMON_LDADD)
109
110 test_socket_is_based_on_LDADD = $(COMMON_LDADD)
111
112 test_udp_turn_fragmentation_LDADD = $(COMMON_LDADD)
113
114 test_priority_LDADD = $(COMMON_LDADD)
115
116 test_fullmode_LDADD = $(COMMON_LDADD)
117
118 test_different_number_streams_LDADD = $(COMMON_LDADD)
119
120 test_restart_LDADD = $(COMMON_LDADD)
121
122 test_fallback_LDADD = $(COMMON_LDADD)
123
124 test_trickle_LDADD = $(COMMON_LDADD)
125
126 test_new_trickle_LDADD = $(COMMON_LDADD)
127
128 test_tcp_LDADD = $(COMMON_LDADD)
129
130 test_icetcp_LDADD = $(COMMON_LDADD)
131
132 test_credentials_LDADD = $(COMMON_LDADD)
133
134 test_turn_LDADD = $(COMMON_LDADD)
135
136 test_drop_invalid_LDADD = $(COMMON_LDADD)
137
138 test_nomination_LDADD = $(COMMON_LDADD)
139
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)
142
143 test_interfaces_LDADD = $(COMMON_LDADD)
144
145 all-local:
146         chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh
147         chmod a+x $(srcdir)/test-pseudotcp-random.sh
148
149 EXTRA_DIST = \
150         libnice.supp \
151         meson.build \
152         test-fullmode-with-stun.c