aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunasSudo <runassudo@yingtongli.me>2021-10-26 00:55:04 +1100
committerRunasSudo <runassudo@yingtongli.me>2021-10-26 00:55:04 +1100
commite867e85142a639febdd227deae7a33532507b415 (patch)
tree3c798f78e08fde07f2193bdf7f9fdff21b2d2660
parentf120cf2eeeba83092e14c2b16f5b36d2776b85ee (diff)
Update rustfilt path
-rwxr-xr-xcoverage.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/coverage.sh b/coverage.sh
index ba1b362..189b96b 100755
--- a/coverage.sh
+++ b/coverage.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+PATH=$PATH:$HOME/.cargo/bin
+
mkdir -p target/coverage/prof
rm target/coverage/prof/*.profraw
@@ -12,12 +14,12 @@ llvm-profdata merge -sparse target/coverage/prof/*.profraw -o target/coverage/op
for file in $(cargo test --no-run --message-format=json 2>/dev/null | jq -r "select(.profile.test == true) | .filenames[]"); do echo -n --object '"'$file'" '; done > target/coverage/objects
# Need "eval" to correctly parse arguments
-eval llvm-cov show target/coverage/debug/opentally -instr-profile=target/coverage/opentally.profdata -Xdemangler="$HOME/.cargo/bin/rustfilt" \
+eval llvm-cov show target/coverage/debug/opentally -instr-profile=target/coverage/opentally.profdata -Xdemangler=rustfilt \
$(cat target/coverage/objects) \
- -ignore-filename-regex="$HOME/." \
- -ignore-filename-regex=rustc \
- -ignore-filename-regex=numbers/rational_num.rs \
- -ignore-filename-regex=stv/gregory/prettytable_html.rs \
- -ignore-filename-regex=stv/wasm.rs \
- -ignore-filename-regex=tests \
+ -ignore-filename-regex="/\\\\." \
+ -ignore-filename-regex="^/rustc" \
+ -ignore-filename-regex="src/numbers/rational_num.rs" \
+ -ignore-filename-regex="src/stv/gregory/prettytable_html.rs" \
+ -ignore-filename-regex="src/stv/wasm.rs" \
+ -ignore-filename-regex="tests/" \
-format=html --show-instantiations=false --output-dir=target/coverage/html
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.