mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-13 22:26:51 +03:00
25 lines
493 B
Bash
25 lines
493 B
Bash
|
#!/bin/bash
|
||
|
set -Eeuo pipefail
|
||
|
|
||
|
rm -rf target/profile
|
||
|
rm -rf target/coverage
|
||
|
cargo clean
|
||
|
|
||
|
RUSTFLAGS="-Cinstrument-coverage"
|
||
|
export RUSTFLAGS
|
||
|
LLVM_PROFILE_FILE="$(pwd)/target/profile/test-integ-%p-%m.profraw"
|
||
|
export LLVM_PROFILE_FILE
|
||
|
|
||
|
cargo build
|
||
|
PATH=$(pwd)/target/debug:$PATH
|
||
|
export PATH
|
||
|
bin/test/test_integ.sh
|
||
|
grcov target/profile \
|
||
|
--binary-path target/debug \
|
||
|
--source-dir . \
|
||
|
--output-types html \
|
||
|
--branch \
|
||
|
--ignore-not-existing \
|
||
|
--output-path target/coverage
|
||
|
|