Commit c7eaf5d2 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

varnishtest: New coverage feature check

parent f01918f5
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment