view coverage.sh @ 41:d2559e2729e4

Completely rebase sstable code on rusty_leveldb 0.2.2
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 11 Mar 2018 16:00:32 +0100
parents fa21b7ec0e02
children 9486965587ce
line wrap: on
line source

#!/bin/bash

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

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