Statistics
| Revision:

root / trunk / tests / Makefile.am @ 1843

History | View | Annotate | Download (3.2 KB)

1
include $(top_srcdir)/Makefile.decl
2

                
3
noinst_PROGRAMS = test_schedular test_regex test_nzbcreator test_nntpconnection_backend test_jsonrpc test_download_queue
4

                
5
INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)/base -I$(top_srcdir)/plugins -I$(top_srcdir)/nntpgrab_core
6
AM_CFLAGS = -Wall
7

                
8
# The testcases test_nntp_connection and test_configuration require the
9
# use of private functions in the NNTPGrab Core. These are disabled for now
10
if FALSE
11
noinst_PROGRAMS += test_nntp_connection test_configuration
12
endif
13

                
14
# The testcases test_par2 and test_unpack don't compile on Mac OS X
15
if DARWIN
16
else
17
noinst_PROGRAMS += test_par2 test_unpack
18
endif
19

                
20
if FALSE
21
test_nntp_connection_LDADD = $(top_srcdir)/nntpgrab_core/libnntpgrab.la
22
test_nntp_connection_SOURCES = test_nntp_connection.c
23

                
24
test_configuration_LDADD = $(top_srcdir)/nntpgrab_core/libnntpgrab.la
25
test_configuration_SOURCES = test_configuration.c
26
endif
27

                
28
test_schedular_LDADD = $(top_srcdir)/nntpgrab_core/libnntpgrab.la
29
test_schedular_SOURCES = test_schedular.c
30

                
31
test_regex_LDADD = $(top_srcdir)/base/libnntpgrab_utils.la
32
test_regex_SOURCES = test_regex.c
33

                
34
test_par2_CPPFLAGS = -I$(top_srcdir)/plugins/par2
35
test_par2_LDADD = $(top_srcdir)/plugins/par2/libnntpgrab_plugin_par2.la
36
test_par2_SOURCES = test_par2.c
37

                
38
test_nzbcreator_LDADD = $(top_srcdir)/base/libnntpgrab_utils.la
39
test_nzbcreator_SOURCES = test_nzbcreator.c
40

                
41
test_unpack_CPPFLAGS = -I$(top_srcdir)/plugins/unpack
42
test_unpack_LDADD = $(top_srcdir)/plugins/unpack/libnntpgrab_plugin_unpack.la
43
test_unpack_SOURCES = test_unpack.c
44

                
45
test_nntpconnection_backend_LDADD = $(GLIB_LIBS) $(GIO_LIBS) $(LIBPROXY_LIBS) $(OPENSSL_LIBS) $(NSS_LIBS) $(GNUTLS_LIBS)
46
test_nntpconnection_backend_SOURCES =    test_nntpconnection_backend.c \
47
                                        $(top_srcdir)/nntpgrab_core/nntpconnection_utils.c \
48
                                        $(top_srcdir)/nntpgrab_core/nntpconnection_backend_iface.c \
49
                                        $(top_srcdir)/nntpgrab_core/nntpconnection_backend_gio.c \
50
                                        $(top_srcdir)/nntpgrab_core/nntpconnection_backend_native.c
51

                
52
test_jsonrpc_CFLAGS = -I$(top_srcdir)/plugins/jsonrpc
53
test_jsonrpc_LDADD = $(GLIB_LIBS)
54
test_jsonrpc_SOURCES =   test_jsonrpc.c \
55
                 $(top_srcdir)/plugins/jsonrpc/arraylist.c \
56
                 $(top_srcdir)/plugins/jsonrpc/circular_buffer.c \
57
                 $(top_srcdir)/plugins/jsonrpc/debug.c \
58
                 $(top_srcdir)/plugins/jsonrpc/hashmap.c \
59
                 $(top_srcdir)/plugins/jsonrpc/json_object.c \
60
                 $(top_srcdir)/plugins/jsonrpc/json_tokener.c \
61
                 $(top_srcdir)/plugins/jsonrpc/json_util.c \
62
                 $(top_srcdir)/plugins/jsonrpc/jsonrpc.c \
63
                 $(top_srcdir)/plugins/jsonrpc/linkhash.c \
64
                 $(top_srcdir)/plugins/jsonrpc/printbuf.c
65

                
66
test_download_queue_CFLAGS = -DDOWNLOAD_QUEUE_DONT_SET_TMP_FILENAME
67
test_download_queue_LDADD = $(GLIB_LIBS) $(top_srcdir)/base/libnntpgrab_utils.la
68
test_download_queue_SOURCES =    test_download_queue.c \
69
                         common.c \
70
                         $(top_srcdir)/nntpgrab_core/core_signals.c \
71
                         $(top_srcdir)/nntpgrab_core/collection_alloc.c \
72
                         $(top_srcdir)/nntpgrab_core/configuration.c \
73
                         $(top_srcdir)/nntpgrab_core/download_queue.c \
74
                         $(top_srcdir)/nntpgrab_core/queue_rawfile.c
75

                
76
TEST_PROGS += test_nzbcreator test_nntpconnection_backend test_jsonrpc test_download_queue
77