Makefile.am 1005 Bytes
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 17
				belle_sip_resolver_tester.c \
				register_tester.h
Simon Morlat's avatar
Simon Morlat committed
18

jehan's avatar
jehan committed
19
belle_sip_tester_CFLAGS=$(CUNIT_CFLAGS) $(STRICT_OPTIONS) $(TLS_CFLAGS)
jehan's avatar
jehan committed
20

Ghislain MARY's avatar
Ghislain MARY committed
21
belle_sip_tester_LDFLAGS=$(CUNIT_LIBS) $(AM_LDFLAGS)
Simon Morlat's avatar
Simon Morlat committed
22

Simon Morlat's avatar
Simon Morlat committed
23 24
belle_sip_object_describe_SOURCES=describe.c

25 26
belle_sip_parse_SOURCES=parse.c

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

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

Ghislain MARY's avatar
Ghislain MARY committed
31
AM_LDFLAGS=-no-undefined -export-dynamic 
Simon Morlat's avatar
Simon Morlat committed
32

jehan's avatar
jehan committed
33
AM_CFLAGS=$(STRICT_OPTIONS) 
34

jehan's avatar
jehan committed
35 36

test: belle_sip_tester
Simon Morlat's avatar
Simon Morlat committed
37
	./belle_sip_tester $(TEST_OPTIONS)
38 39 40 41 42 43

else

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

44
endif
45