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

22

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

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

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

29 30
belle_sip_parse_SOURCES=parse.c

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

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

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

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

jehan's avatar
jehan committed
39 40

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

else

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

48
endif
49