2003-02-13 15:41:26 +00:00
|
|
|
# Boost.SmartPtr Library test Jamfile
|
|
|
|
|
#
|
2006-07-11 23:17:17 +00:00
|
|
|
# Copyright (c) 2003-2006 Peter Dimov
|
2003-02-13 15:41:26 +00:00
|
|
|
# Copyright (c) 2003 Dave Abrahams
|
|
|
|
|
#
|
2006-11-09 20:17:14 +00:00
|
|
|
# Distributed under the Boost Software License, Version 1.0. (See
|
|
|
|
|
# accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
2003-01-25 16:17:17 +00:00
|
|
|
|
|
|
|
|
subproject libs/smart_ptr/test ;
|
|
|
|
|
|
|
|
|
|
# bring in rules for testing
|
2003-09-08 17:38:49 +00:00
|
|
|
import testing ;
|
2003-01-25 16:17:17 +00:00
|
|
|
|
|
|
|
|
# Make tests run by default.
|
2003-01-30 18:20:51 +00:00
|
|
|
DEPENDS all : smart_ptr ;
|
2003-01-25 16:17:17 +00:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
test-suite "smart_ptr"
|
2003-01-30 18:20:51 +00:00
|
|
|
: [ run smart_ptr_test.cpp ]
|
|
|
|
|
[ run shared_ptr_basic_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ]
|
|
|
|
|
[ run shared_ptr_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ]
|
|
|
|
|
[ run weak_ptr_test.cpp ]
|
|
|
|
|
[ run shared_from_this_test.cpp : : : <gcc><*><cxxflags>-Wno-non-virtual-dtor ]
|
|
|
|
|
[ run get_deleter_test.cpp ]
|
|
|
|
|
[ run intrusive_ptr_test.cpp ]
|
2005-03-20 15:40:30 +00:00
|
|
|
[ run atomic_count_test.cpp ]
|
2005-04-02 12:51:17 +00:00
|
|
|
[ run lw_mutex_test.cpp ]
|
2003-01-30 18:20:51 +00:00
|
|
|
[ compile-fail shared_ptr_assign_fail.cpp ]
|
2005-03-30 22:06:25 +00:00
|
|
|
[ compile-fail shared_ptr_delete_fail.cpp ]
|
2006-07-11 23:17:17 +00:00
|
|
|
[ compile-fail shared_ptr_compare_fail.cpp ]
|
2005-11-11 21:07:18 +00:00
|
|
|
[ run shared_ptr_alloc2_test.cpp ]
|
2005-12-06 13:26:13 +00:00
|
|
|
[ run pointer_cast_test.cpp ]
|
|
|
|
|
[ compile pointer_to_other_test.cpp ]
|
2006-01-15 13:55:37 +00:00
|
|
|
[ run auto_ptr_rv_test.cpp ]
|
2003-01-25 16:17:17 +00:00
|
|
|
;
|
2003-01-30 18:20:51 +00:00
|
|
|
|
|
|
|
|
# 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.
|
2003-01-30 20:57:34 +00:00
|
|
|
if [ in-invocation-subdir ]
|
2003-01-30 18:20:51 +00:00
|
|
|
{
|
|
|
|
|
run shared_ptr_alloc_test.cpp ;
|
|
|
|
|
}
|
2003-01-25 16:17:17 +00:00
|
|
|
}
|