From d2c7febd269908680e46071e35f861a938ff78c1 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 30 Jan 2003 18:20:51 +0000 Subject: [PATCH] cleanup, add shared_ptr_alloc_test. [SVN r17095] --- test/Jamfile | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/test/Jamfile b/test/Jamfile index dfb20fb..2986e82 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -7,20 +7,28 @@ SEARCH on testing.jam = $(BOOST_BUILD_PATH) ; include testing.jam ; # Make tests run by default. -DEPENDS all : test ; +DEPENDS all : smart_ptr ; { - # look in BOOST_ROOT for sources first, just in this Jamfile - local SEARCH_SOURCE = $(BOOST_ROOT) $(SEARCH_SOURCE) ; - test-suite "smart_ptr" - : [ run libs/smart_ptr/test/smart_ptr_test.cpp ] - [ run libs/smart_ptr/test/shared_ptr_basic_test.cpp : : : <*>-Wno-non-virtual-dtor ] - [ run libs/smart_ptr/test/shared_ptr_test.cpp : : : <*>-Wno-non-virtual-dtor ] - [ run libs/smart_ptr/test/weak_ptr_test.cpp ] - [ run libs/smart_ptr/test/shared_from_this_test.cpp : : : <*>-Wno-non-virtual-dtor ] - [ run libs/smart_ptr/test/get_deleter_test.cpp ] - [ run libs/smart_ptr/test/intrusive_ptr_test.cpp ] - [ compile-fail libs/smart_ptr/test/shared_ptr_assign_fail.cpp ] + : [ run smart_ptr_test.cpp ] + [ run shared_ptr_basic_test.cpp : : : <*>-Wno-non-virtual-dtor ] + [ run shared_ptr_test.cpp : : : <*>-Wno-non-virtual-dtor ] + [ run weak_ptr_test.cpp ] + [ run shared_from_this_test.cpp : : : <*>-Wno-non-virtual-dtor ] + [ run get_deleter_test.cpp ] + [ run intrusive_ptr_test.cpp ] + [ run intrusive_ptr_test.cpp ] + [ compile-fail shared_ptr_assign_fail.cpp ] ; + + # this one is too slow to run unless explicitly requested, and ALL + # tests are run by default when this file is subincluded from + # boost/status, so it's guarded from that case. It will only be + # built from this directory when the targets "test" (all tests) or + # "shared_ptr_alloc_test" are requested. + if ! $(gIN_LIB_INCLUDE) + { + run shared_ptr_alloc_test.cpp ; + } }