Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Test-drive new coverage tooling in Rust nightly #177

Closed
@garious

Description

Here's how they hacked it in without Rust modifications:

https://jbp.io/2017/07/19/measuring-test-coverage-of-rust-programs.html

But that was unappealing to us because of the hardcoded LLVM paths and versions. However, in the nightly build, they added a -Zprofile which points the compiler to its own copy of LLVM.

Perhttps://github.com/rust-lang/rust/pull/42433:

@ofek Same as https://jbp.io/2017/07/19/measuring-test-coverage-of-rust-programs, but use -Zprofile instead of -Cpasses=insert-gcov-profiling -L/usr/lib/llvm-3.8/lib/clang/3.8.1/lib/linux/ -lclang_rt.profile-x86_64.

But per rust-lang/rust#42524, it looks like we an expect trouble if we don't pin down the nightly version:

rust-lang/rust#50203

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions