From d7a60442bd5df6a04cf13aedda6de6f2f93950b3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 29 Jul 2018 09:05:32 +0200 Subject: [PATCH] build enum_if with the same configuration as the other tests (to avoid building libtorrent twice) --- test/Jamfile | 65 +++++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index 45ff6676a..5d27fbd62 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -3,37 +3,6 @@ import feature : feature ; use-project /torrent : .. ; -exe test_natpmp : test_natpmp.cpp - : # requirements - /torrent//torrent - on - @warnings - : # default-build - multi - on - full - shared - on - on - ; - -exe enum_if : enum_if.cpp - : # requirements - /torrent//torrent - on - @warnings - : # default-build - multi - on - full - shared - on - on - ; - -explicit test_natpmp ; -explicit enum_if ; - lib libtorrent_test : # sources main.cpp @@ -98,6 +67,40 @@ project feature launcher : none valgrind : composite ; feature.compose valgrind : "valgrind --tool=memcheck -v --num-callers=20 --read-var-info=yes --track-origins=yes --error-exitcode=222 --suppressions=valgrind_suppressions.txt" on ; +exe test_natpmp : test_natpmp.cpp + : # requirements + /torrent//torrent + on + @warnings + : # default-build + multi + on + full + shared + on + on + ; + +exe enum_if : enum_if.cpp + : # requirements + /torrent//torrent + on + @warnings + : # default-build + multi + on + full + shared + on + on + ; + +install stage_enum_if : enum_if : . ; + +explicit test_natpmp ; +explicit enum_if ; +explicit stage_enum_if ; + test-suite libtorrent : [ run test_primitives.cpp