diff --git a/test/test_coverage_win.bat b/test/test_coverage_win.bat new file mode 100644 index 000000000..574c0092d --- /dev/null +++ b/test/test_coverage_win.bat @@ -0,0 +1,19 @@ +REM this is just to get libtorrent built +bjam -j8 msvc-12.0 boost=source invariant-checks=off asserts=off link=shared boost-link=shared test_primitives linkflags=/profile + +Vsinstr -coverage ..\bin\msvc-12.0\debug\asserts-off\boost-link-shared\boost-source\debug-iterators-on\export-extra-on\invariant-checks-off\threading-multi\torrent.dll @vsinstr_excludes.rsp + +REM prepare for running all the tests again +del /s /q bin +del /q test.coverage + +REM add vsperfmon to the path +set path=%path%;c:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools + +Start vsperfmon -coverage -output:test.coverage + +REM Now we run all the unit tests to record test coverage +bjam -j8 msvc-12.0 boost=source invariant-checks=off asserts=off link=shared boost-link=shared linkflags=/profile + +vsperfcmd -shutdown + diff --git a/test/vsinstr_excludes.rsp b/test/vsinstr_excludes.rsp new file mode 100644 index 000000000..72e70abd9 --- /dev/null +++ b/test/vsinstr_excludes.rsp @@ -0,0 +1,6 @@ +/exclude:boost::* +/exclude:std::* +/exclude:mp_* +/exclude:fast_s_mp_* +/exclude:boost_asio_handler* +/exclude:s_mp_*