Makefile.am 1.07 KB
Newer Older
Simon Morlat's avatar
Simon Morlat committed
1

jehan's avatar
jehan committed
2
if ENABLE_TESTS
3

4
noinst_PROGRAMS=belle_sip_tester  belle_sip_object_describe belle_sip_parse
5

Simon Morlat's avatar
Simon Morlat committed
6
belle_sip_tester_SOURCES=	belle_sip_tester.c belle_sip_tester.h\
jehan's avatar
jehan committed
7 8 9
				belle_sdp_tester.c \
				belle_sip_uri_tester.c \
				belle_sip_headers_tester.c \
jehan's avatar
jehan committed
10
				belle_sip_message_tester.c \
Simon Morlat's avatar
Simon Morlat committed
11
				auth_helper_tester.c \
jehan's avatar
jehan committed
12
				cast_test.c \
jehan's avatar
jehan committed
13
				belle_sip_register_tester.c \
jehan's avatar
jehan committed
14
				belle_sip_dialog_tester.c \
Ghislain MARY's avatar
Ghislain MARY committed
15
				belle_sip_refresher_tester.c \
Simon Morlat's avatar
Simon Morlat committed
16
				belle_sip_resolver_tester.c \
17
				belle_sip_core_tester.c \
18
				belle_generic_uri_tester.c \
Simon Morlat's avatar
Simon Morlat committed
19 20
				register_tester.h \
				belle_http_tester.c
Simon Morlat's avatar
Simon Morlat committed
21

jehan's avatar
jehan committed
22
belle_sip_tester_CFLAGS=$(CUNIT_CFLAGS) $(STRICT_OPTIONS) $(TLS_CFLAGS)
jehan's avatar
jehan committed
23

Ghislain MARY's avatar
Ghislain MARY committed
24
belle_sip_tester_LDFLAGS=$(CUNIT_LIBS) $(AM_LDFLAGS)
Simon Morlat's avatar
Simon Morlat committed
25

Simon Morlat's avatar
Simon Morlat committed
26 27
belle_sip_object_describe_SOURCES=describe.c

28 29
belle_sip_parse_SOURCES=parse.c

jehan's avatar
jehan committed
30
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src
31

jehan's avatar
jehan committed
32
LDADD=$(top_builddir)/src/libbellesip.la 
33

Ghislain MARY's avatar
Ghislain MARY committed
34
AM_LDFLAGS=-no-undefined -export-dynamic 
Simon Morlat's avatar
Simon Morlat committed
35

jehan's avatar
jehan committed
36
AM_CFLAGS=$(STRICT_OPTIONS) 
37

jehan's avatar
jehan committed
38 39

test: belle_sip_tester
Simon Morlat's avatar
Simon Morlat committed
40
	./belle_sip_tester $(TEST_OPTIONS)
41 42 43 44 45 46

else

test:
	@echo "CUnit must be installed to be able to run the tests!"

47
endif
48