Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0e4896d5
Commit
0e4896d5
authored
Oct 03, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coverage targets so that HTML view is reliably updated when test data
changes. Add some documenting comments.
parent
8f1658cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
src/Makefile.global.in
src/Makefile.global.in
+17
-5
No files found.
src/Makefile.global.in
View file @
0e4896d5
# -*-makefile-*-
# -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.24
3 2008/09/05 12:11:18
petere Exp $
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.24
4 2008/10/03 15:35:17
petere Exp $
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
# All PostgreSQL makefiles include this file and use the variables it sets,
...
@@ -592,6 +592,20 @@ endif # enable_nls
...
@@ -592,6 +592,20 @@ endif # enable_nls
#
#
# Coverage
# Coverage
# Explanation of involved files:
# foo.c source file
# foo.o object file
# foo.gcno gcov graph (a.k.a. "notes") file, created at compile time
# (by gcc -ftest-coverage)
# foo.gcda gcov data file, created when the program is run (for
# programs compiled with gcc -fprofile-arcs)
# foo.c.gcov gcov output file with coverage information, created by
# gcov from foo.gcda (by "make coverage")
# foo.c.gcov.out stdout captured when foo.c.gcov is created, mildly
# interesting
# lcov.info lcov tracefile, built from gcda files in one directory,
# later collected by "make coverage-html"
ifeq
($(enable_coverage), yes)
ifeq
($(enable_coverage), yes)
# There is a strange interaction between lcov and existing .gcov
# There is a strange interaction between lcov and existing .gcov
...
@@ -599,11 +613,9 @@ ifeq ($(enable_coverage), yes)
...
@@ -599,11 +613,9 @@ ifeq ($(enable_coverage), yes)
gcda_files
:=
$(
wildcard
*
.gcda
)
gcda_files
:=
$(
wildcard
*
.gcda
)
lcov.info
:
lcov.info
:
$(gcda_files)
rm
-f
*
.gcov
rm
-f
*
.gcov
ifneq
(,$(gcda_files))
$(
if
$^
,
$(LCOV)
-d
.
-c
-o
$@
$(LCOVFLAGS)
)
$(LCOV)
-d
.
-c
-o
$@
$(LCOVFLAGS)
endif
%.c.gcov
:
%.gcda | lcov.info
%.c.gcov
:
%.gcda | lcov.info
$(GCOV)
-b
-f
-p
-o
.
$(GCOVFLAGS)
$*
.c
>
$*
.c.gcov.out
$(GCOV)
-b
-f
-p
-o
.
$(GCOVFLAGS)
$*
.c
>
$*
.c.gcov.out
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment