view coverage.sh @ 290:4c403f9e8391

version_set: Fix bug in how reusing the manifest was reported. This bug led to manifests not being written when they should have been.
author Lewin Bormann <lbo@spheniscida.de>
date Tue, 26 Sep 2017 19:00:23 +0200
parents 62c425f76e9a
children 76562348cb17
line wrap: on
line source


#!/bin/bash

KCOV=kcov
KCOV_OPTS="--verify --exclude-pattern=/.cargo"
KCOV_OUT="./kcov-out/"

export RUSTFLAGS="-C link-dead-code"

TEST_BIN=$(cargo test 2>&1 >/dev/null | awk '/^     Running target\/debug\// { print $2 }')

${KCOV} ${KCOV_OPTS} ${KCOV_OUT} ${TEST_BIN} && xdg-open ${KCOV_OUT}/index.html