Makefile.am 1.01 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 \
Simon Morlat's avatar
Simon Morlat committed
18
				register_tester.h
Simon Morlat's avatar
Simon Morlat committed
19

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

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

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

26 27
belle_sip_parse_SOURCES=parse.c

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

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

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

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

jehan's avatar
jehan committed
36 37

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

else

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

45
endif
46