Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Fix coverage targets. #3830

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

clumens
Copy link
Contributor

@clumens clumens commented Feb 18, 2025

  • COVERAGE_DIR should be an absolute path so it doesn't get accidentally created outside of the source/build tree.

  • Use long command line arguments to everything to make it a little more clear what these commands do. We so rarely use any of these tools that no one remembers the short versions.

  • Ignore unused excludes. At some point, an unused exclude became an error which stops the build process. Ignore those errors instead of trying to figure out what is and isn't used.

  • Restrict code coverage to the lib/ directory in the main target. Previously, we were scanning everything and then going through and removing certain directories. Instead, let's just scan the one thing we do care about. This loses coverage checking of include/, but I'm okay with that.

  • Add && before the genhtml commands. This was previously broken - the line continuation made it part of the preceeding lcov command.

* COVERAGE_DIR should be an absolute path so it doesn't get accidentally
  created outside of the source/build tree.

* Use long command line arguments to everything to make it a little more
  clear what these commands do.  We so rarely use any of these tools
  that no one remembers the short versions.

* Ignore unused excludes.  At some point, an unused exclude became an
  error which stops the build process.  Ignore those errors instead of
  trying to figure out what is and isn't used.

* Restrict code coverage to the lib/ directory in the main target.
  Previously, we were scanning everything and then going through and
  removing certain directories.  Instead, let's just scan the one thing
  we do care about.  This loses coverage checking of include/, but I'm
  okay with that.

* Add && before the genhtml commands.  This was previously broken - the
  line continuation made it part of the preceeding lcov command.
@clumens
Copy link
Contributor Author

clumens commented Feb 18, 2025

@waltdisgrace Here's a pretty simple build process fix if you could review it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant