| 1 | # Boost.SmartPtr Library test Jamfile |
|---|
| 2 | # |
|---|
| 3 | # Copyright (c) 2003-2005 Peter Dimov |
|---|
| 4 | # Copyright (c) 2003 Dave Abrahams |
|---|
| 5 | # |
|---|
| 6 | # Permission to copy, use, modify, sell and distribute this software |
|---|
| 7 | # is granted provided this copyright notice appears in all copies. |
|---|
| 8 | # This software is provided "as is" without express or implied |
|---|
| 9 | # warranty, and with no claim as to its suitability for any purpose. |
|---|
| 10 | |
|---|
| 11 | subproject libs/smart_ptr/test ; |
|---|
| 12 | |
|---|
| 13 | # bring in rules for testing |
|---|
| 14 | import testing ; |
|---|
| 15 | |
|---|
| 16 | # Make tests run by default. |
|---|
| 17 | DEPENDS all : smart_ptr ; |
|---|
| 18 | |
|---|
| 19 | { |
|---|
| 20 | test-suite "smart_ptr" |
|---|
| 21 | : [ run smart_ptr_test.cpp ] |
|---|
| 22 | [ run shared_ptr_basic_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ] |
|---|
| 23 | [ run shared_ptr_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ] |
|---|
| 24 | [ run weak_ptr_test.cpp ] |
|---|
| 25 | [ run shared_from_this_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ] |
|---|
| 26 | [ run get_deleter_test.cpp ] |
|---|
| 27 | [ run intrusive_ptr_test.cpp ] |
|---|
| 28 | [ run intrusive_ptr_test.cpp ] |
|---|
| 29 | [ run atomic_count_test.cpp ] |
|---|
| 30 | [ run lw_mutex_test.cpp ] |
|---|
| 31 | [ compile-fail shared_ptr_assign_fail.cpp ] |
|---|
| 32 | [ compile-fail shared_ptr_delete_fail.cpp ] |
|---|
| 33 | ; |
|---|
| 34 | |
|---|
| 35 | # this one is too slow to run unless explicitly requested, and ALL |
|---|
| 36 | # tests are run by default when this file is subincluded from |
|---|
| 37 | # boost/status, so it's guarded from that case. It will only be |
|---|
| 38 | # built from this directory when the targets "test" (all tests) or |
|---|
| 39 | # "shared_ptr_alloc_test" are requested. |
|---|
| 40 | if [ in-invocation-subdir ] |
|---|
| 41 | { |
|---|
| 42 | run shared_ptr_alloc_test.cpp ; |
|---|
| 43 | } |
|---|
| 44 | } |
|---|