Add branch coverage to our coveralls run
Coveralls is capable of reporting not only covered lines in a build, but also the number of times a given branch was taken vs. not taken. This will help us identify locations where we might make better use of the openssl_likely and openssl_unlikely macros to optimize branch prediction when building openssl Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> (Merged from https://github.com/openssl/openssl/pull/27839)
This commit is contained in:
parent
d8277a6fba
commit
1187df5328
1
.github/workflows/coveralls.yml
vendored
1
.github/workflows/coveralls.yml
vendored
@ -116,6 +116,7 @@ jobs:
|
||||
--exclude "${PWD}/fuzz/*"
|
||||
--exclude "/usr/include/*"
|
||||
--ignore-errors mismatch
|
||||
--branch-coverage
|
||||
-o ./lcov.info
|
||||
- name: Coveralls upload
|
||||
uses: coverallsapp/github-action@v2.3.2
|
||||
|
@ -680,8 +680,7 @@ my %targets = (
|
||||
CFLAGS => picker(default => "-Wall",
|
||||
debug => "-O0 -g",
|
||||
release => "-O3",
|
||||
profiled => "-O3 -fprofile-generate -fprofile-arcs -fprofile-values -ftest-coverage",
|
||||
pgo => "-O3 -fprofile-use -Wno-missing-profile"),
|
||||
pgo => "-O3 -fprofile-use -Wno-coverage-mismatch"),
|
||||
CXXFLAGS => picker(default => "-Wall",
|
||||
debug => "-O0 -g",
|
||||
release => "-O3"),
|
||||
|
@ -990,10 +990,6 @@ while (@argvcopy)
|
||||
{
|
||||
$config{build_type} = "debug";
|
||||
}
|
||||
elsif (/^-p$/)
|
||||
{
|
||||
$config{build_type} = "profiled";
|
||||
}
|
||||
elsif (/^-v$/) # From older 'config'
|
||||
{
|
||||
$guess_opts{verbose} = 1;
|
||||
@ -1021,10 +1017,6 @@ while (@argvcopy)
|
||||
{
|
||||
$config{build_type} = "release";
|
||||
}
|
||||
elsif (/^--profiled$/)
|
||||
{
|
||||
$config{build_type} = "profiled";
|
||||
}
|
||||
elsif (/^--pgo$/)
|
||||
{
|
||||
$config{build_type} = "pgo";
|
||||
|
Loading…
x
Reference in New Issue
Block a user