Skip to content

src/test/run-make*/coverage* tests should be reimplemented as a custom compiletest #85009

Closed
@richkadel

Description

@richkadel

The coverage tests (for -Z instrument-coverage) are implemented using Makefiles and embedded shell scripts, which is fragile.

Some cross-platform issues are unavoidable, but there have been some cross-platform issues, due to differences in the shell scripts and external commands (like sed).

Also, there is a known bug in some versions of make on MacOS that corrupts shell scripts during script interpretation.

Some of these issues could be avoided in the future if the test logic was rewritten/ported to Rust as a compiletest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions