Mercurial > lbo > hg > leveldb-rs
view coverage.sh @ 637:2e83675d5c47
Add more comment about Mojang's implementation
author | kaiyohugo <41114603+KAIYOHUGO@users.noreply.github.com> |
---|---|
date | Wed, 15 May 2024 20:09:53 +0800 |
parents | 6887e24fd83f |
children |
line wrap: on
line source
#!/bin/bash set -x KCOV=kcov KCOV_OPTS="--exclude-pattern=/.cargo,/glibc,/usr/lib,/usr/include" KCOV_OUT="./kcov-out/" export RUSTFLAGS="-C link-dead-code" TEST_BIN=$(cargo test 2>&1 >/dev/null | awk '/^ Running target\/debug\/deps\// { print $2 }') echo $TEST_BIN ${KCOV} ${KCOV_OPTS} ${KCOV_OUT} ${TEST_BIN} && xdg-open ${KCOV_OUT}/index.html