Makefile.am 886 Bytes
Newer Older
1 2 3 4
#
# Tests using check
#

5
EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c
6 7

TESTS =
8 9
tests_PROGRAMS =
testsdir := ${libdir}/tests/libsofia-sip-ua-tests
10 11 12 13 14 15 16 17

include $(top_srcdir)/rules/sofia.am

INCLUDES = ${INTERNAL_INCLUDES}

AM_CFLAGS += @CHECK_CFLAGS@

if HAVE_CHECK
18

19 20 21 22 23 24 25 26 27
TESTS += check2_sofia check_sofia 
tests_PROGRAMS += check2_sofia check_sofia

check2_sofia_SOURCES = \
	check2_sofia.c check2_sofia.h s2tester.h s2tester.c suite2_for_nua.c

check2_sofia_LDADD = \
	${sofiabuilddir}/libsofia-sip-ua.la \
	@CHECK_LIBS@
28 29 30 31

check_sofia_SOURCES = check_sofia.c check_sofia.h \
	suite_for_nua.c

32
NUA_TEST_LIBS := ${sofiabuilddir}/nua/libtestnua.la \
33
	${sofiabuilddir}/nua/libtestproxy.la \
34 35
	${sofiabuilddir}/nua/libtestnat.la

36
$(NUA_TEST_LIBS):
37 38
	cd ${sofiabuilddir}/nua && make checklib

39
check_sofia_LDADD = \
40
	$(NUA_TEST_LIBS) ${sofiabuilddir}/libsofia-sip-ua.la \
41
	@CHECK_LIBS@
42
endif