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

test: run dbus-broker under ASan and UBsan #359

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    506e25a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. test: require packages for the test instead of just recommending them

    We need all the listed packages so upgrade the dependency appropriately.
    mrc0mmand committed May 14, 2024
    Configuration menu
    Copy the full SHA
    a2d78c3 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Improve accuracy of gcov reports

    _exit() calls skip at-exit hooks, which also skips a call to
    __gcov_dump() when collecting coverage with gcov, resulting in
    inaccurate coverage reports. To mitigate this, define a custom _exit()
    function which injects __gcov_dump() just before _exit(), and use a
    macro to override the already existing _exit() function.
    
    To make this work without a bunch of includes scattered across the
    codebase, inject the coverage-specific include into the compiler command
    line when -Db_coverage=true is used.
    mrc0mmand committed May 20, 2024
    Configuration menu
    Copy the full SHA
    676e088 View commit details
    Browse the repository at this point in the history
  2. test: run dbus-broker under ASan and UBsan

    Let's introduce a test that runs dbus-broker under Address Sanitizer and
    Undefined Behavior Sanitizer, while running other tests against it.
    
    The setup to achieve this is slightly convoluted, since we need to run
    (and restart) sanitized dbus-broker without nuking the host machine. For
    that we setup an nspawn-container that re-uses host's rootfs (to some
    degree) and overlays our additions on top of that. This way we can test
    (not-only) the full user-space boot with sanitized dbus-broker without
    risking "damage" to the host machine.
    mrc0mmand committed May 20, 2024
    Configuration menu
    Copy the full SHA
    c7c6206 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddedfdd View commit details
    Browse the repository at this point in the history