#!/bin/sh export CARGO_INCREMENTAL=0 export RUSTC_BOOTSTRAP=1 export RUSTFLAGS=-Cinstrument-coverage export RUSTFLAGS="$RUSTFLAGS -Zprofile" export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1" export RUSTFLAGS="$RUSTFLAGS -Copt-level=0" export RUSTFLAGS="$RUSTFLAGS -Clink-dead-code" export RUSTFLAGS="$RUSTFLAGS -Coverflow-checks=off" export RUSTFLAGS="$RUSTFLAGS -Zpanic_abort_tests" export RUSTFLAGS="$RUSTFLAGS -Cpanic=abort" cargo build --verbose $CARGO_OPTIONS rm -f *.profraw export LLVM_PROFILE_FILE='prefix-%p-%m.profraw' rm --force --recursive ./target/debug cargo test --verbose $CARGO_OPTIONS -- --include-ignored #grcov . \ # --source-dir . \ # --binary-path ./target/debug/ \ # --output-type html \ # --branch \ # --ignore-not-existing \ # --output-path ./target/debug/coverage/ grcov . \ --source-dir . \ --binary-path ./target/debug/ \ --output-type lcov \ --branch \ --ignore-not-existing \ --output-path ./target/debug/lcov.info genhtml \ --output ./target/debug/coverage/ \ --show-details \ --highlight \ --ignore-errors source \ --legend ./target/debug/lcov.info \ --css-file ./cov.css