forked from premiere/premiere-libtorrent
test coverage script
This commit is contained in:
parent
9ff3030c7d
commit
2d4949cfed
|
@ -2329,7 +2329,7 @@ get_out:
|
|||
= TORRENT_ALLOCA(downloading_piece const*, partials_size);
|
||||
int c = 0;
|
||||
|
||||
#ifdef TORRENT_DEBUG
|
||||
#if defined TORRENT_DEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
||||
// if we get here, we're about to pick a busy block. First, make sure
|
||||
// we really exhausted the available blocks
|
||||
for (std::vector<downloading_piece>::const_iterator i
|
||||
|
@ -2428,7 +2428,7 @@ get_out:
|
|||
--partials_size;
|
||||
}
|
||||
|
||||
#ifdef TORRENT_DEBUG
|
||||
#if defined TORRENT_DEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
||||
// make sure that we at this point have added requests to all unrequested blocks
|
||||
// in all downloading pieces
|
||||
|
||||
|
@ -2864,7 +2864,7 @@ get_out:
|
|||
if (int(i->finished) + int(i->writing) < max_blocks) return false;
|
||||
TORRENT_ASSERT(int(i->finished) + int(i->writing) == max_blocks);
|
||||
|
||||
#ifdef TORRENT_DEBUG
|
||||
#if defined TORRENT_DEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
||||
for (int k = 0; k < max_blocks; ++k)
|
||||
{
|
||||
TORRENT_ASSERT(i->info[k].piece_index == index);
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd test
|
||||
bjam asserts=off invariant-checks=off link=static boost=source test-coverage=on picker-debugging=off -j4
|
||||
cd ..
|
||||
lcov --zerocounters -q
|
||||
lcov -d bin/gcc-4.8/debug/asserts-off/boost-source/debug-iterators-on/export-extra-on/invariant-checks-off/link-static/logging-on/picker-debugging-off/test-coverage-on/threading-multi/src/ -c -o coverage
|
||||
lcov --remove coverage "/usr*" -o coverage
|
||||
lcov --remove coverage "*/boost/*" -o coverage
|
||||
genhtml -o test_coverage -t "libtorrent test coverage" --num-spaces 4 coverage
|
||||
|
Loading…
Reference in New Issue