From a22763358d1d682b30b83807663cef238996aeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Schr=C3=B6der?= Date: Tue, 30 Aug 2016 15:59:24 +0200 Subject: [PATCH] add additional code coverage flags etc.. --- .travis.yml | 1 + Makefile.am | 1 + Makefile.in | 1 + test/Makefile.am | 4 ++-- test/Makefile.in | 4 ++-- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7b917d..02f5679 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: c +sudo: required install: - pip install --user cpp-coveralls script: autoreconf -if && ./configure --enable-code-coverage && make && make check diff --git a/Makefile.am b/Makefile.am index b0c3b2d..32df79d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,4 @@ +@CODE_COVERAGE_RULES@ ACLOCAL_AMFLAGS=-I m4 SUBDIRS=src test EXTRA_DIST=autogen.mk diff --git a/Makefile.in b/Makefile.in index 7421a6c..86d5659 100644 --- a/Makefile.in +++ b/Makefile.in @@ -788,6 +788,7 @@ uninstall-am: mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am +@CODE_COVERAGE_RULES@ test: check # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/test/Makefile.am b/test/Makefile.am index 5ba2178..d128edc 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,6 +1,6 @@ @CODE_COVERAGE_RULES@ check_PROGRAMS=random random_SOURCES=random.c -random_CFLAGS=-I../src/ -std=c99 -random_LDFLAGS=-L../src/.libs/ -lblobpack -lm +random_CFLAGS=$(CODE_COVERAGE_CFLAGS) -I../src/ -std=c99 +random_LDFLAGS=$(CODE_COVERAGE_LDFLAGS) -L../src/.libs/ -lblobpack -lm TESTS=$(check_PROGRAMS) diff --git a/test/Makefile.in b/test/Makefile.in index 3cfd0b0..b92c610 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -490,8 +490,8 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ random_SOURCES = random.c -random_CFLAGS = -I../src/ -std=c99 -random_LDFLAGS = -L../src/.libs/ -lblobpack -lm +random_CFLAGS = $(CODE_COVERAGE_CFLAGS) -I../src/ -std=c99 +random_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) -L../src/.libs/ -lblobpack -lm TESTS = $(check_PROGRAMS) all: all-am