2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Files
python/test/Jamfile
Dave Abrahams e79a66851c Beginning of callback implementation
[SVN r13135]
2002-03-08 14:56:39 +00:00

76 lines
1.8 KiB
Plaintext

subproject libs/python/test ;
# bring in the rules for python
SEARCH on <module@>python.jam = $(BOOST_BUILD_PATH) ;
include <module@>python.jam ;
local PYTHON_V1_PROPERTIES = $(PYTHON_PROPERTIES) ;
local PYTHON_PROPERTIES = $(BOOST_PYTHON_V2_PROPERTIES) ;
#
rule bpl-test ( name ? : files * )
{
files ?= $(name).py $(name).cpp ;
local modules ;
local py ;
for local f in $(files)
{
if $(f:S) = .py
{
if $(py)
{
EXIT too many python drivers specified: "$(py)" "$(f)" ;
}
py = $(f) ;
}
}
name ?= $(py:S=) ;
for local f in $(files)
{
if $(f:S) != .py
{
local m = $(f:S=) ;
if $(m) = $(py:S=)
{
m = $(name) ;
if $(m) = $(py:S=)
{
m = $(m)_ext ;
}
}
extension $(m) : $(f) <dll>../bpl ;
modules += $(m) ;
}
}
boost-python-runtest $(name) : $(py) <pyd>$(modules) ;
}
bpl-test try : newtest.py m1.cpp m2.cpp ;
bpl-test builtin_converters : test_builtin_converters.py test_builtin_converters.cpp ;
bpl-test test_pointer_adoption ;
bpl-test callbacks ;
# --- unit tests of library components ---
unit-test indirect_traits_test
: indirect_traits_test.cpp : <include>$(BOOST_ROOT) ;
unit-test destroy_test
: destroy_test.cpp : <include>$(BOOST_ROOT) ;
unit-test pointer_type_id_test
: pointer_type_id_test.cpp : <include>$(BOOST_ROOT) ;
unit-test select_from_python_test
: select_from_python_test.cpp
../src/converter/type_id.cpp
# ../src/converter/registry.cpp # MWerks needs this for some reason
: <include>$(BOOST_ROOT) <define>BOOST_PYTHON_STATIC_LIB
$(PYTHON_V1_PROPERTIES)
;