new stream testcase using testbed
[oweals/gnunet.git] / src / stream / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 lib_LTLIBRARIES = libgnunetstream.la
13
14 libgnunetstream_la_SOURCES = \
15   stream_api.c stream_protocol.h
16 libgnunetstream_la_LIBADD = \
17  $(top_builddir)/src/mesh/libgnunetmesh.la \
18  $(top_builddir)/src/lockmanager/libgnunetlockmanager.la \
19  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
20 libgnunetstream_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS)
22
23 check_PROGRAMS = \
24  test_stream_2peers \
25  test_stream_2peers_new \
26  test_stream_2peers_halfclose \
27  test_stream_local \
28  test_stream_big \
29  test_stream_sequence_wraparound
30
31 EXTRA_DIST = test_stream_local.conf
32
33 if ENABLE_TEST_RUN
34 TESTS = \
35  test_stream_2peers \
36  test_stream_2peers_halfclose \
37  test_stream_local \
38  test_stream_big \
39  test_stream_sequence_wraparound
40 endif
41
42 test_stream_2peers_SOURCES = \
43  test_stream_2peers.c
44 test_stream_2peers_LDADD = \
45  $(top_builddir)/src/stream/libgnunetstream.la \
46  $(top_builddir)/src/util/libgnunetutil.la \
47  $(top_builddir)/src/testing_old/libgnunettesting_old.la
48
49 test_stream_2peers_new_SOURCES = \
50  test_stream_2peers_new.c
51 test_stream_2peers_new_LDADD = \
52  $(top_builddir)/src/stream/libgnunetstream.la \
53  $(top_builddir)/src/util/libgnunetutil.la \
54  $(top_builddir)/src/testbed/libgnunettestbed.la
55
56 test_stream_2peers_halfclose_SOURCES = \
57  test_stream_2peers_halfclose.c
58 test_stream_2peers_halfclose_LDADD = \
59  $(top_builddir)/src/stream/libgnunetstream.la \
60  $(top_builddir)/src/util/libgnunetutil.la \
61  $(top_builddir)/src/testing_old/libgnunettesting_old.la
62
63 test_stream_local_SOURCES = \
64  test_stream_local.c
65 test_stream_local_LDADD = \
66  $(top_builddir)/src/stream/libgnunetstream.la \
67  $(top_builddir)/src/util/libgnunetutil.la \
68  $(top_builddir)/src/testing/libgnunettesting.la
69
70 test_stream_big_SOURCES = \
71  test_stream_big.c
72 test_stream_big_LDADD = \
73  $(top_builddir)/src/stream/libgnunetstream.la \
74  $(top_builddir)/src/util/libgnunetutil.la \
75  $(top_builddir)/src/testing/libgnunettesting.la
76
77 test_stream_sequence_wraparound_SOURCES = \
78  test_stream_sequence_wraparound.c
79 test_stream_sequence_wraparound_LDADD = \
80  $(top_builddir)/src/stream/libgnunetstream.la \
81  $(top_builddir)/src/util/libgnunetutil.la \
82  $(top_builddir)/src/testing/libgnunettesting.la