build enum_if with the same configuration as the other tests (to avoid building libtorrent twice)

This commit is contained in:
Arvid Norberg 2018-07-29 09:05:32 +02:00 committed by Arvid Norberg
parent df3068ab19
commit d7a60442bd
1 changed files with 34 additions and 31 deletions

View File

@ -3,37 +3,6 @@ import feature : feature ;
use-project /torrent : .. ; use-project /torrent : .. ;
exe test_natpmp : test_natpmp.cpp
: # requirements
<library>/torrent//torrent
<export-extra>on
<conditional>@warnings
: # default-build
<threading>multi
<asserts>on
<invariant-checks>full
<link>shared
<picker-debugging>on
<logging>on
;
exe enum_if : enum_if.cpp
: # requirements
<library>/torrent//torrent
<export-extra>on
<conditional>@warnings
: # default-build
<threading>multi
<asserts>on
<invariant-checks>full
<link>shared
<picker-debugging>on
<logging>on
;
explicit test_natpmp ;
explicit enum_if ;
lib libtorrent_test lib libtorrent_test
: # sources : # sources
main.cpp main.cpp
@ -98,6 +67,40 @@ project
feature launcher : none valgrind : composite ; feature launcher : none valgrind : composite ;
feature.compose <launcher>valgrind : <testing.launcher>"valgrind --tool=memcheck -v --num-callers=20 --read-var-info=yes --track-origins=yes --error-exitcode=222 --suppressions=valgrind_suppressions.txt" <use-valgrind>on ; feature.compose <launcher>valgrind : <testing.launcher>"valgrind --tool=memcheck -v --num-callers=20 --read-var-info=yes --track-origins=yes --error-exitcode=222 --suppressions=valgrind_suppressions.txt" <use-valgrind>on ;
exe test_natpmp : test_natpmp.cpp
: # requirements
<library>/torrent//torrent
<export-extra>on
<conditional>@warnings
: # default-build
<threading>multi
<asserts>on
<invariant-checks>full
<link>shared
<picker-debugging>on
<logging>on
;
exe enum_if : enum_if.cpp
: # requirements
<library>/torrent//torrent
<export-extra>on
<conditional>@warnings
: # default-build
<threading>multi
<asserts>on
<invariant-checks>full
<link>shared
<picker-debugging>on
<logging>on
;
install stage_enum_if : enum_if : <location>. ;
explicit test_natpmp ;
explicit enum_if ;
explicit stage_enum_if ;
test-suite libtorrent : test-suite libtorrent :
[ run [ run
test_primitives.cpp test_primitives.cpp