Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
0e4896d5
Commit
0e4896d5
authored
16 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Fix coverage targets so that HTML view is reliably updated when test data
changes. Add some documenting comments.
parent
8f1658cb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Makefile.global.in
+17
-5
17 additions, 5 deletions
src/Makefile.global.in
with
17 additions
and
5 deletions
src/Makefile.global.in
+
17
−
5
View file @
0e4896d5
# -*-makefile-*-
# -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.24
3
2008/0
9
/0
5
1
2:11
:1
8
petere Exp $
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.24
4
2008/
1
0/0
3
1
5:35
:1
7
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment