view coverage.sh @ 453:ca875a71e17e

fix(borrow): Attempt at fixing #2 (BorrowError in DBImpl). It looks like maybe_do_compaction() was called with the current version being borrowed, and VersionSet::needs_compaction() attempts to re-borrow the current version.
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 10 Mar 2018 20:07:26 +0100
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