From abb0d9e725de0afcf5908cf2bb7e480d262485a2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 25 Jan 2003 16:17:17 +0000 Subject: [PATCH] Moved smart_ptr contents to subdirectories, switched to a local test/Jamfile. [SVN r17042] --- .../scoped_ptr_example.cpp | 0 .../scoped_ptr_example.hpp | 0 .../scoped_ptr_example_test.cpp | 0 .../shared_ptr_example.cpp | 0 .../shared_ptr_example2.cpp | 0 .../shared_ptr_example2.hpp | 0 .../shared_ptr_example2_test.cpp | 0 sp_debug_hooks.cpp => src/sp_debug_hooks.cpp | 0 test/Jamfile | 25 +++++++++++++++++++ .../get_deleter_test.cpp | 0 .../intrusive_ptr_test.cpp | 0 .../shared_from_this_test.cpp | 0 .../shared_ptr_alloc_test.cpp | 0 .../shared_ptr_assign_fail.cpp | 0 .../shared_ptr_basic_test.cpp | 0 .../shared_ptr_mt_test.cpp | 0 .../shared_ptr_test.cpp | 0 .../shared_ptr_timing_test.cpp | 0 smart_ptr_test.cpp => test/smart_ptr_test.cpp | 0 weak_ptr_test.cpp => test/weak_ptr_test.cpp | 0 20 files changed, 25 insertions(+) rename scoped_ptr_example.cpp => example/scoped_ptr_example.cpp (100%) rename scoped_ptr_example.hpp => example/scoped_ptr_example.hpp (100%) rename scoped_ptr_example_test.cpp => example/scoped_ptr_example_test.cpp (100%) rename shared_ptr_example.cpp => example/shared_ptr_example.cpp (100%) rename shared_ptr_example2.cpp => example/shared_ptr_example2.cpp (100%) rename shared_ptr_example2.hpp => example/shared_ptr_example2.hpp (100%) rename shared_ptr_example2_test.cpp => example/shared_ptr_example2_test.cpp (100%) rename sp_debug_hooks.cpp => src/sp_debug_hooks.cpp (100%) create mode 100644 test/Jamfile rename get_deleter_test.cpp => test/get_deleter_test.cpp (100%) rename intrusive_ptr_test.cpp => test/intrusive_ptr_test.cpp (100%) rename shared_from_this_test.cpp => test/shared_from_this_test.cpp (100%) rename shared_ptr_alloc_test.cpp => test/shared_ptr_alloc_test.cpp (100%) rename shared_ptr_assign_fail.cpp => test/shared_ptr_assign_fail.cpp (100%) rename shared_ptr_basic_test.cpp => test/shared_ptr_basic_test.cpp (100%) rename shared_ptr_mt_test.cpp => test/shared_ptr_mt_test.cpp (100%) rename shared_ptr_test.cpp => test/shared_ptr_test.cpp (100%) rename shared_ptr_timing_test.cpp => test/shared_ptr_timing_test.cpp (100%) rename smart_ptr_test.cpp => test/smart_ptr_test.cpp (100%) rename weak_ptr_test.cpp => test/weak_ptr_test.cpp (100%) diff --git a/scoped_ptr_example.cpp b/example/scoped_ptr_example.cpp similarity index 100% rename from scoped_ptr_example.cpp rename to example/scoped_ptr_example.cpp diff --git a/scoped_ptr_example.hpp b/example/scoped_ptr_example.hpp similarity index 100% rename from scoped_ptr_example.hpp rename to example/scoped_ptr_example.hpp diff --git a/scoped_ptr_example_test.cpp b/example/scoped_ptr_example_test.cpp similarity index 100% rename from scoped_ptr_example_test.cpp rename to example/scoped_ptr_example_test.cpp diff --git a/shared_ptr_example.cpp b/example/shared_ptr_example.cpp similarity index 100% rename from shared_ptr_example.cpp rename to example/shared_ptr_example.cpp diff --git a/shared_ptr_example2.cpp b/example/shared_ptr_example2.cpp similarity index 100% rename from shared_ptr_example2.cpp rename to example/shared_ptr_example2.cpp diff --git a/shared_ptr_example2.hpp b/example/shared_ptr_example2.hpp similarity index 100% rename from shared_ptr_example2.hpp rename to example/shared_ptr_example2.hpp diff --git a/shared_ptr_example2_test.cpp b/example/shared_ptr_example2_test.cpp similarity index 100% rename from shared_ptr_example2_test.cpp rename to example/shared_ptr_example2_test.cpp diff --git a/sp_debug_hooks.cpp b/src/sp_debug_hooks.cpp similarity index 100% rename from sp_debug_hooks.cpp rename to src/sp_debug_hooks.cpp diff --git a/test/Jamfile b/test/Jamfile new file mode 100644 index 0000000..88cfbfe --- /dev/null +++ b/test/Jamfile @@ -0,0 +1,25 @@ +# Boost.SmartPtr Library test Jamfile + +subproject libs/smart_ptr/test ; + +# bring in rules for testing +SEARCH on testing.jam = $(BOOST_BUILD_PATH) ; +include testing.jam ; + +# Make tests run by default. +DEPENDS all : test ; + +{ + # 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 ] + [ compile-fail libs/smart_ptr/test/shared_ptr_assign_fail.cpp ] + ; +} diff --git a/get_deleter_test.cpp b/test/get_deleter_test.cpp similarity index 100% rename from get_deleter_test.cpp rename to test/get_deleter_test.cpp diff --git a/intrusive_ptr_test.cpp b/test/intrusive_ptr_test.cpp similarity index 100% rename from intrusive_ptr_test.cpp rename to test/intrusive_ptr_test.cpp diff --git a/shared_from_this_test.cpp b/test/shared_from_this_test.cpp similarity index 100% rename from shared_from_this_test.cpp rename to test/shared_from_this_test.cpp diff --git a/shared_ptr_alloc_test.cpp b/test/shared_ptr_alloc_test.cpp similarity index 100% rename from shared_ptr_alloc_test.cpp rename to test/shared_ptr_alloc_test.cpp diff --git a/shared_ptr_assign_fail.cpp b/test/shared_ptr_assign_fail.cpp similarity index 100% rename from shared_ptr_assign_fail.cpp rename to test/shared_ptr_assign_fail.cpp diff --git a/shared_ptr_basic_test.cpp b/test/shared_ptr_basic_test.cpp similarity index 100% rename from shared_ptr_basic_test.cpp rename to test/shared_ptr_basic_test.cpp diff --git a/shared_ptr_mt_test.cpp b/test/shared_ptr_mt_test.cpp similarity index 100% rename from shared_ptr_mt_test.cpp rename to test/shared_ptr_mt_test.cpp diff --git a/shared_ptr_test.cpp b/test/shared_ptr_test.cpp similarity index 100% rename from shared_ptr_test.cpp rename to test/shared_ptr_test.cpp diff --git a/shared_ptr_timing_test.cpp b/test/shared_ptr_timing_test.cpp similarity index 100% rename from shared_ptr_timing_test.cpp rename to test/shared_ptr_timing_test.cpp diff --git a/smart_ptr_test.cpp b/test/smart_ptr_test.cpp similarity index 100% rename from smart_ptr_test.cpp rename to test/smart_ptr_test.cpp diff --git a/weak_ptr_test.cpp b/test/weak_ptr_test.cpp similarity index 100% rename from weak_ptr_test.cpp rename to test/weak_ptr_test.cpp