sync to latest sofia-sip darcs tree

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5104 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-05-08 19:14:10 +00:00
1 parent 50b4a37771
commit 5d8a952b5e
117 files changed
+2800 -509

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
#
# Generate lcov output
#
#
# Copyright (C) 2007 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
#
# Scripts
LCOV_UNCOVERED=${top_srcdir}/scripts/uncovered
LCOV_REPORT=${top_srcdir}/scripts/lcov-report
# Report directory
lcovdir=${top_builddir}/lcov
# Options
GENHTML_OPTIONS = --show-details --legend
if HAVE_GENPNG
GENHTML_OPTIONS += --frames
endif
# Fancy shell command that expands to directory relative to top_builddir
expand_subdir=`pwd|sed "s'\`cd ${top_builddir};pwd\`''"`
#
# Generate pretty coverage report (unless it has been already done)
#
lcov:
@-test -r ${lcovdir}${expand_subdir}/lcov.info \
|| make lcov-report
# Generate pretty coverage report based on current coverage data
lcov-report:
sub=${expand_subdir} odir=${lcovdir}$$sub ; \
rm -rf $$odir ; mkdir -p $$odir && \
${LCOV_REPORT} ${GENHTML_OPTIONS} \
--title "${PACKAGE_NAME}-${PACKAGE_VERSION}$$sub" \
--srcdir=${srcdir} -o $$odir
# Rerun checks before generating report
lcov-rerun: clean-lcov
$(MAKE) $(AM_MAKEFLAGS) check
$(MAKE) $(AM_MAKEFLAGS) lcov-report
# Show all uncovered lines as errors
uncovered:
${LCOV_UNCOVERED} --lcov-dir=${lcovdir} --srcdir=${srcdir}
# Run check in current dir and show all uncovered lines as errors
covcheck:
-find . -name "*.gcda" | xargs rm -rf
$(MAKE) $(AM_MAKEFLAGS) check
${LCOV_UNCOVERED} --lcov-dir=${lcovdir} --srcdir=${srcdir}
clean-local::
-rm -rf ${lcovdir}`pwd|sed "s'\`cd ${top_builddir};pwd\`''"`
find . -name "*.gcda" | xargs rm -f || true
clean-lcov:
-rm -rf ${lcovdir}`pwd|sed "s'\`cd ${top_builddir};pwd\`''"`
find . -name "*.gcda" | xargs rm -f || true
PHONY += lcov lcov-report lcov-rerun clean-lcov covcheck uncovered
+1 -7
View File
@@ -1,19 +1,13 @@
# Recursive Makefile targets
# --------------------------
if ENABLE_COVERAGE
COVERAGE_RECURSIVE = coverage-recursive
coverage: $(COVERAGE_RECURSIVE)
endif
all-recursive: built-sources-recursive
built-sources: built-sources-recursive
clean-built-sources: clean-built-sources-recursive
valcheck: valcheck-recursive
SOFIA_RECURSIVE = \
valcheck-recursive \
$(COVERAGE_RECURSIVE)
valcheck-recursive
SOFIA_DIST_RECURSIVE = \
built-sources-recursive \
+10 -6
View File
@@ -3,6 +3,8 @@
AM_CFLAGS = $(CWFLAG) $(SOFIA_COVERAGE) $(SOFIA_CFLAGS) $(openssl_CFLAGS)
SOFIA_COVERAGE = $(COVERAGE_FLAGS)
# Use with --enable-ndebug
if NDEBUG
AM_CFLAGS += -DNDEBUG
@@ -26,11 +28,6 @@ SUFFIXES = _tag_ref.c _tag.c
_tag.c_tag_ref.c:
$(AWK) -f $(TAG_AWK) NODLL=1 $(TAG_DLL_FLAGS) REF=$@ $<
if ENABLE_COVERAGE
coverage:
@$(top_srcdir)/scripts/coverage $(COVERAGE_FLAGS) $(COVERAGE_INPUT)
endif
../bnf/libbnf.la ../http/libhttp.la ../ipt/libipt.la ../iptsec/libiptsec.la \
../msg/libmsg.la ../nea/libnea.la ../nta/libnta.la ../nth/libnth.la \
../nua/libnua.la ../sdp/libsdp.la ../sip/libsip.la ../soa/libsoa.la \
@@ -59,4 +56,11 @@ INTERNAL_INCLUDES = \
-I$(srcdir)/../url -I../url \
-I$(srcdir)/../su -I../su
include $(top_srcdir)/rules/valcheck.am
PHONY = built-sources clean-built-sources
include $(top_srcdir)/rules/valcheck.am
if HAVE_LCOV
include $(top_srcdir)/rules/lcov.am
endif