summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 24738e6a175b420914a668484804995ede9a71cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.

include $(top_srcdir)/common.mk

TESTS_ENVIRONMENT=\
	GST_PLUGIN_PATH=${GST_PLUGIN_PATH}:$(top_builddir)/gst

AM_CFLAGS = \
	$(LIBNICE_CFLAGS) \
	$(GLIB_CFLAGS) \
        $(GUPNP_CFLAGS) \
	-I $(top_srcdir) \
	-I $(top_srcdir)/agent \
	-I $(top_srcdir)/random \
	-I $(top_srcdir)/socket \
	-I $(top_srcdir)/stun
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"libnice-tests\"

AM_TESTS_ENVIRONMENT = \
	G_MESSAGES_DEBUG=all \
	NICE_DEBUG=all

COMMON_LDADD = $(top_builddir)/agent/libagent.la $(top_builddir)/socket/libsocket.la $(GLIB_LIBS) $(GUPNP_LIBS)

check_PROGRAMS = \
	test-pseudotcp \
	test-pseudotcp-fin \
	test-pseudotcp-fuzzy \
	test-bsd \
	test \
	test-address \
	test-add-remove-stream \
	test-build-io-stream \
	test-io-stream-thread \
	test-io-stream-closing-write \
	test-io-stream-closing-read \
	test-io-stream-cancelling \
	test-io-stream-pollable \
	test-send-recv \
	test-socket-is-based-on \
	test-udp-turn-fragmentation \
	test-priority \
	test-fullmode \
        test-different-number-streams \
	test-restart \
	test-fallback \
	test-thread \
	test-trickle \
	test-new-trickle \
	test-tcp \
	test-icetcp \
	test-credentials \
	test-turn \
	test-drop-invalid \
	test-nomination

dist_check_SCRIPTS = \
	check-test-fullmode-with-stun.sh \
	test-pseudotcp-random.sh

if HAVE_GST_CHECK
check_PROGRAMS += test-gstreamer
endif

TESTS = $(check_PROGRAMS) $(dist_check_SCRIPTS)

noinst_HEADERS = test-io-stream-common.h

test_pseudotcp_LDADD = $(COMMON_LDADD)

test_pseudotcp_fin_LDADD = $(COMMON_LDADD)

test_pseudotcp_fuzzy_LDADD = $(COMMON_LDADD) -lm

test_bsd_LDADD = $(COMMON_LDADD)

test_LDADD = $(COMMON_LDADD)

test_thread_LDADD = $(COMMON_LDADD)

test_address_LDADD = $(COMMON_LDADD)

test_add_remove_stream_LDADD = $(COMMON_LDADD)

test_build_io_stream_LDADD = $(COMMON_LDADD)

test_io_stream_thread_SOURCES = test-io-stream-thread.c test-io-stream-common.c
test_io_stream_thread_LDADD = $(COMMON_LDADD)

test_io_stream_closing_write_SOURCES = test-io-stream-closing-write.c test-io-stream-common.c
test_io_stream_closing_write_LDADD = $(COMMON_LDADD)

test_io_stream_closing_read_SOURCES = test-io-stream-closing-read.c test-io-stream-common.c
test_io_stream_closing_read_LDADD = $(COMMON_LDADD)

test_io_stream_cancelling_SOURCES = test-io-stream-cancelling.c test-io-stream-common.c
test_io_stream_cancelling_LDADD = $(COMMON_LDADD)

test_io_stream_pollable_SOURCES = test-io-stream-pollable.c test-io-stream-common.c
test_io_stream_pollable_LDADD = $(COMMON_LDADD)

test_send_recv_SOURCES = test-send-recv.c test-io-stream-common.c
test_send_recv_LDADD = $(COMMON_LDADD)

test_socket_is_based_on_LDADD = $(COMMON_LDADD)

test_udp_turn_fragmentation_LDADD = $(COMMON_LDADD)

test_priority_LDADD = $(COMMON_LDADD)

test_fullmode_LDADD = $(COMMON_LDADD)

test_different_number_streams_LDADD = $(COMMON_LDADD)

test_restart_LDADD = $(COMMON_LDADD)

test_fallback_LDADD = $(COMMON_LDADD)

test_trickle_LDADD = $(COMMON_LDADD)

test_new_trickle_LDADD = $(COMMON_LDADD)

test_tcp_LDADD = $(COMMON_LDADD)

test_icetcp_LDADD = $(COMMON_LDADD)

test_credentials_LDADD = $(COMMON_LDADD)

test_turn_LDADD = $(COMMON_LDADD)

test_drop_invalid_LDADD = $(COMMON_LDADD)

test_nomination_LDADD = $(COMMON_LDADD)

test_gstreamer_CFLAGS = $(AM_CFLAGS) $(GST_CHECK_CFLAGS)
test_gstreamer_LDADD = -lnice -L$(top_builddir)/nice/.libs $(GLIB_LIBS) $(GUPNP_LIBS) $(GST_CHECK_LIBS) $(GST_LIBS)

all-local:
	chmod a+x $(srcdir)/check-test-fullmode-with-stun.sh
	chmod a+x $(srcdir)/test-pseudotcp-random.sh

EXTRA_DIST = \
	libnice.supp \
	meson.build