diff options
| author | bors <bors@rust-lang.org> | 2021-06-01 01:22:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-01 01:22:43 +0000 |
| commit | cf5f894536e56c580265b066f26719146a08bb98 (patch) | |
| tree | 9a9e0f9423527601b4948365513472446e103cd4 | |
| parent | ca570f9b84420afa2fe52ac104f9c4df1ce3fb79 (diff) | |
| parent | f49251a33e8fb8519c8aa03893962b67152d676e (diff) | |
Auto merge of #7297 - flip1995:rm-cov, r=giraffate
Remove util/cov.sh script This script hasn't been working and wasn't used for years. changelog: none
| -rwxr-xr-x | util/cov.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/util/cov.sh b/util/cov.sh deleted file mode 100755 index 3f9a6b06f72..00000000000 --- a/util/cov.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/bash - -# This run `kcov` on Clippy. The coverage report will be at -# `./target/cov/index.html`. -# `compile-test` is special. `kcov` does not work directly on it so these files -# are compiled manually. - -tests=$(find tests/ -maxdepth 1 -name '*.rs' ! -name compile-test.rs -exec basename {} .rs \;) -tmpdir=$(mktemp -d) - -cargo test --no-run --verbose - -for t in $tests; do - kcov \ - --verify \ - --include-path="$(pwd)/src,$(pwd)/clippy_lints/src" \ - "$tmpdir/$t" \ - cargo test --test "$t" -done - -for t in ./tests/compile-fail/*.rs; do - kcov \ - --verify \ - --include-path="$(pwd)/src,$(pwd)/clippy_lints/src" \ - "$tmpdir/compile-fail-$(basename "$t")" \ - cargo run -- -L target/debug -L target/debug/deps -Z no-trans "$t" -done - -for t in ./tests/run-pass/*.rs; do - kcov \ - --verify \ - --include-path="$(pwd)/src,$(pwd)/clippy_lints/src" \ - "$tmpdir/run-pass-$(basename "$t")" \ - cargo run -- -L target/debug -L target/debug/deps -Z no-trans "$t" -done - -kcov --verify --merge target/cov "$tmpdir"/* |
