Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
c7eaf5d2
Commit
c7eaf5d2
authored
Aug 24, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishtest: New coverage feature check
parent
f01918f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
v00004.vtc
bin/varnishtest/tests/v00004.vtc
+1
-3
vtc_misc.c
bin/varnishtest/vtc_misc.c
+9
-0
No files found.
bin/varnishtest/tests/v00004.vtc
View file @
c7eaf5d2
...
...
@@ -2,9 +2,7 @@ varnishtest "test if our default paramers make sense ..."
feature 64bit
feature !sanitizer
# Skip this test in GCOV mode, 68xx bytes extra per level makes it fail
feature cmd {test -z "$GCOVPROG"}
feature !coverage
# ... for our definition of a standard use case:
# - 2019 header madness
...
...
bin/varnishtest/vtc_misc.c
View file @
c7eaf5d2
...
...
@@ -438,6 +438,8 @@ addr_no_randomize_works(void)
* recognized as a macro.
* persistent_storage
* Varnish was built with the deprecated persistent storage.
* coverage
* Varnish was built with code coverage enabled.
* sanitizer
* Varnish was built with a sanitizer.
*
...
...
@@ -449,6 +451,12 @@ addr_no_randomize_works(void)
* run a test with strings of the form "${...}".
*/
#if ENABLE_COVERAGE
static
const
unsigned
coverage
=
1
;
#else
static
const
unsigned
coverage
=
0
;
#endif
#if WITH_PERSISTENT_STORAGE
static
const
unsigned
with_persistent_storage
=
1
;
#else
...
...
@@ -513,6 +521,7 @@ cmd_feature(CMD_ARGS)
FEATURE
(
"user_vcache"
,
getpwnam
(
"vcache"
)
!=
NULL
);
FEATURE
(
"group_varnish"
,
getgrnam
(
"varnish"
)
!=
NULL
);
FEATURE
(
"persistent_storage"
,
with_persistent_storage
);
FEATURE
(
"coverage"
,
coverage
);
FEATURE
(
"sanitizer"
,
sanitizer
);
FEATURE
(
"SO_RCVTIMEO_WORKS"
,
so_rcvtimeo_works
);
...
...
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