Commit 6a27305a authored by Pekka Pessi's avatar Pekka Pessi

test_nua: moved to tests subdirectory

darcs-hash:20080507183454-db55f-585b9155d9058c88dd3b6cb986fb4815be8c6f4e.gz
parent 903fa3a9
...@@ -13,13 +13,8 @@ ...@@ -13,13 +13,8 @@
noinst_LTLIBRARIES = libnua.la noinst_LTLIBRARIES = libnua.la
check_LTLIBRARIES = libtestnua.la libtestproxy.la libtestnat.la check_PROGRAMS =
TESTS =
check_PROGRAMS = test_nua
TESTS = test_nua
CLEANFILES = tmp_sippasswd.??????
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Rules for building the targets # Rules for building the targets
...@@ -43,42 +38,6 @@ libnua_la_SOURCES = nua.c nua_stack.h nua_common.c nua_stack.c \ ...@@ -43,42 +38,6 @@ libnua_la_SOURCES = nua.c nua_stack.h nua_common.c nua_stack.c \
COVERAGE_INPUT = $(libnua_la_SOURCES) $(include_sofia_HEADERS) COVERAGE_INPUT = $(libnua_la_SOURCES) $(include_sofia_HEADERS)
test_nua_LDFLAGS = -static
libtestnua_la_SOURCES = test_nua.h test_ops.c \
test_init.c \
test_nua_api.c test_nua_params.c \
test_register.c test_basic_call.c \
test_offer_answer.c \
test_call_reject.c test_cancel_bye.c \
test_call_hold.c test_session_timer.c \
test_refer.c test_100rel.c \
test_simple.c test_sip_events.c \
test_extension.c
libtestproxy_la_SOURCES = test_proxy.h test_proxy.c
libtestnat_la_SOURCES = test_nat.h test_nat.c test_nat_tags.c
test_nua_SOURCES = test_nua.c
test_nua_LDADD = libnua.la libtestnua.la libtestproxy.la libtestnat.la \
../iptsec/libiptsec.la \
../ipt/libipt.la \
../nea/libnea.la \
../nta/libnta.la \
../sresolv/libsresolv.la \
../tport/libtport.la \
../stun/libstun.la \
../soa/libsoa.la \
../sdp/libsdp.la \
../sip/libsip.la \
../http/libhttp.la \
../msg/libmsg.la \
../url/liburl.la \
../bnf/libbnf.la \
../su/libsu.la
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Install and distribution rules # Install and distribution rules
......
# #
# Tests using check # Makefile.am for Sofia SIP tests
# #
# Copyright (C) 2007,2008 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
TESTS = test_nua
check_PROGRAMS = test_nua
EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c
TESTS = test_nua_SOURCES = test_nua.c
tests_PROGRAMS =
testsdir := ${libdir}/tests/libsofia-sip-ua-tests
include $(top_srcdir)/rules/sofia.am test_nua_LDADD = $(check_LIBRARIES) \
${sofiabuilddir}/libsofia-sip-ua.la
INCLUDES = ${INTERNAL_INCLUDES} check_LIBRARIES = libtestnua.a libtestproxy.a libtestnat.a
AM_CFLAGS += @CHECK_CFLAGS@ libtestnua_a_SOURCES = test_nua.h test_ops.c \
test_init.c \
test_nua_api.c test_nua_params.c \
test_register.c test_basic_call.c \
test_offer_answer.c \
test_call_reject.c test_cancel_bye.c \
test_call_hold.c test_session_timer.c \
test_refer.c test_100rel.c \
test_simple.c test_sip_events.c \
test_extension.c
if HAVE_CHECK libtestproxy_a_SOURCES = test_proxy.h test_proxy.c
TESTS += check2_sofia check_sofia libtestnat_a_SOURCES = test_nat.h test_nat.c test_nat_tags.c
tests_PROGRAMS += check2_sofia check_sofia
check2_sofia_SOURCES = \ #
check2_sofia.c check2_sofia.h s2tester.h s2tester.c suite2_for_nua.c # Install in special test package
#
testsdir = ${libdir}/tests/libsofia-sip-ua-tests
tests_PROGRAMS =
if HAVE_CHECK
TESTS += check_sofia
tests_PROGRAMS += check_sofia
endif
check_sofia_CFLAGS = @CHECK_CFLAGS@
check2_sofia_LDADD = \
${sofiabuilddir}/libsofia-sip-ua.la \
@CHECK_LIBS@
check_sofia_SOURCES = check_sofia.c check_sofia.h \ check_sofia_SOURCES = check_sofia.c check_sofia.h \
suite_for_nua.c suite_for_nua.c
NUA_TEST_LIBS := ${sofiabuilddir}/nua/libtestnua.la \ check_sofia_LDADD = $(check_LIBRARIES) \
${sofiabuilddir}/nua/libtestproxy.la \ ${sofiabuilddir}/libsofia-sip-ua.la \
${sofiabuilddir}/nua/libtestnat.la @CHECK_LIBS@
$(NUA_TEST_LIBS): CLEANFILES = tmp_sippasswd.??????
cd ${sofiabuilddir}/nua && make checklib
check_sofia_LDADD = \ # ----------------------------------------------------------------------
$(NUA_TEST_LIBS) ${sofiabuilddir}/libsofia-sip-ua.la \ # Sofia specific rules
@CHECK_LIBS@
endif include $(top_srcdir)/rules/sofia.am
INCLUDES = ${INTERNAL_INCLUDES}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment