From 7428c306d4b24990f4156902b71b63b37db626ac Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 26 Dec 2013 13:34:45 +0100 Subject: [PATCH] Moved coverage.sh to the t/ subdirectory. --- Makefile.am | 2 +- t/Makefile.am | 2 ++ coverage.sh => t/coverage.sh | 10 +++++----- 3 files changed, 8 insertions(+), 6 deletions(-) rename coverage.sh => t/coverage.sh (85%) diff --git a/Makefile.am b/Makefile.am index 1cf1e53..10794f0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,7 @@ if BUILD_TESTING SUBDIRS += t endif -EXTRA_DIST = autogen.sh coverage.sh version-gen.sh +EXTRA_DIST = autogen.sh version-gen.sh version: FORCE @# As a side-effect, this updates version. diff --git a/t/Makefile.am b/t/Makefile.am index c74da44..7aa6d77 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -1,3 +1,5 @@ +EXTRA_DIST = coverage.sh + # coverage related flags are only set when gcov is enabled AM_CFLAGS = @STRICT_CFLAGS@ @COVERAGE_CFLAGS@ AM_LDFLAGS = @COVERAGE_LDFLAGS@ diff --git a/coverage.sh b/t/coverage.sh similarity index 85% rename from coverage.sh rename to t/coverage.sh index a62f883..5bb1de0 100755 --- a/coverage.sh +++ b/t/coverage.sh @@ -1,6 +1,6 @@ #! /bin/bash # -# SysDB -- coverage.sh +# SysDB -- t/coverage.sh # # Create a test coverage report for the System DataBase. @@ -11,10 +11,10 @@ if ! which lcov || ! which genhtml; then exit 1 fi -cd $( dirname "$0" ) +cd $( dirname "$0" )/.. -if test -e coverage; then - echo "coverage exists already; please remove manually" >&2 +if test -e t/coverage; then + echo "t/coverage exists already; please remove manually" >&2 exit 1 fi @@ -52,7 +52,7 @@ make test lcov --base-directory src --directory src --no-external \ --capture -o sysdb_coverage.info -genhtml -o "$srcdir"/coverage \ +genhtml -o "$srcdir"/t/coverage \ -t "SysDB $V1 test coverage" --num-spaces=4 --legend \ sysdb_coverage.info -- 2.30.2