fix test coverage tool

This commit is contained in:
Arvid Norberg 2015-02-13 04:35:54 +00:00
parent 8265779fa2
commit 1e9e8e5f26
1 changed files with 6 additions and 3 deletions

View File

@ -12,8 +12,9 @@ function run_test {
lcov -d $OBJECT_PATH/ -c -o coverage_$1_full
lcov --extract coverage_$1_full "$2" -o coverage_$1
rm -rf $1_coverage
genhtml -o $1_coverage -t $1 --num-spaces 4 coverage_$1
rm -rf test-coverage/$1
genhtml -o test-coverage/$1 -t $1 --num-spaces 4 coverage_$1
rm coverage_$1 coverage_$1_full
}
@ -22,6 +23,8 @@ cd test
rm -rf bin
cd ..
mkdir test-coverage
run_test test_piece_picker "*/piece_picker.*"
run_test test_torrent_info "*/torrent_info.*"
run_test test_part_file "*/part_file.*"