Update of /cvsroot/pygccxml/source/pyplusplus/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31188/pyplusplus/unittests
Modified Files:
abstract_classes_tester.py abstract_tester.py
algorithms_tester.py call_policies_tester.py casting_tester.py
class_order2_tester.py class_order3_tester.py
class_order4_tester.py classes_tester.py
dwrapper_printer_tester.py enums_tester.py
free_function_ignore_bug_tester.py free_functions_tester.py
free_operators_tester.py fundamental_tester_base.py
global_variables_tester.py index_operator_tester.py
internal_classes_tester.py mdecl_wrapper_tester.py
member_functions_tester.py member_variables_tester.py
module_body_tester.py module_properties_tester.py
namespaces_tester.py noncopyable_tester.py
operators_bug_tester.py operators_tester.py
optional_bug_tester.py optional_tester.py
pointer_as_arg_tester.py pointer_to_function_as_argument.py
regression1_tester.py regression2_tester.py
regression3_tester.py smart_pointers_tester.py
special_operators_tester.py statics_tester.py
temprorary_variable_tester.py unnamed_enums_tester.py
user_text_tester.py
Added Files:
gui_wizard_tester.py
Log Message:
1. adding most of the aliases needed to functionality needed by user to module builder package
2. updating examples and cleaning unittests
Index: mdecl_wrapper_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/mdecl_wrapper_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mdecl_wrapper_tester.py 21 Mar 2006 08:07:30 -0000 1.2
--- mdecl_wrapper_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,14 ****
import unittest
import autoconfig
- from pygccxml import parser
from pygccxml import declarations
- from pyplusplus import decl_wrappers
from pyplusplus import module_builder
--- 8,12 ----
***************
*** 27,39 ****
def test(self):
! config = parser.config_t( gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'])
!
! mb = module_builder.module_builder_t( self._get_files(), config )
! classes = filter( lambda d: isinstance( d, decl_wrappers.class_t )
, declarations.make_flatten( mb.global_ns ) )
! mdw = decl_wrappers.mdecl_wrapper_t( classes )
#check set to property functionality
for d in mdw:
--- 25,36 ----
def test(self):
! mb = module_builder.module_builder_t( self._get_files()
! , gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'] )
! classes = filter( lambda d: isinstance( d, module_builder.class_t )
, declarations.make_flatten( mb.global_ns ) )
! mdw = module_builder.mdecl_wrapper_t( classes )
#check set to property functionality
for d in mdw:
Index: optional_bug_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/optional_bug_tester.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** optional_bug_tester.py 19 Mar 2006 13:35:39 -0000 1.1
--- optional_bug_tester.py 29 Mar 2006 04:26:58 -0000 1.2
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: module_properties_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/module_properties_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** module_properties_tester.py 28 Feb 2006 07:31:33 -0000 1.2
--- module_properties_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import autoconfig
- from pygccxml import parser
- from pygccxml import declarations
from pyplusplus import code_creators
from pyplusplus import module_creator
--- 8,11 ----
***************
*** 23,32 ****
self.failUnless( isinstance( extmodule.precompiled_header
, code_creators.precompiled_header_t ) )
- #print extmodule.create()
extmodule.precompiled_header \
= code_creators.precompiled_header_t( 'boost/date_time.hpp' )
self.failUnless( isinstance( extmodule.precompiled_header
, code_creators.precompiled_header_t ) )
- #print extmodule.create()
def create_suite():
--- 21,28 ----
Index: dwrapper_printer_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/dwrapper_printer_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** dwrapper_printer_tester.py 21 Mar 2006 08:07:30 -0000 1.2
--- dwrapper_printer_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import autoconfig
- from pygccxml import parser
- from pyplusplus import decl_wrappers
from pyplusplus import module_builder
--- 8,11 ----
***************
*** 26,36 ****
def test(self):
! config = parser.config_t( gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'])
!
! mb = module_builder.module_builder_t( self._get_files(), config )
writer = lambda decl: None
! decl_wrappers.print_declarations( mb.global_ns, writer=writer )
def create_suite():
--- 24,33 ----
def test(self):
! mb = module_builder.module_builder_t( self._get_files()
! , gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'])
writer = lambda decl: None
! module_builder.print_declarations( mb.global_ns, writer=writer )
def create_suite():
Index: temprorary_variable_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/temprorary_variable_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** temprorary_variable_tester.py 15 Mar 2006 09:27:07 -0000 1.4
--- temprorary_variable_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
! from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,13 ----
import unittest
import fundamental_tester_base
from pyplusplus import code_creators
! from pyplusplus import module_builder
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
***************
*** 25,29 ****
and 'name' in decl.alias )
functions.call_policies \
! = decl_wrappers.return_value_policy( decl_wrappers.copy_non_const_reference )
def _create_derived_from_named_item(self, extmodule):
--- 24,28 ----
and 'name' in decl.alias )
functions.call_policies \
! = module_builder.call_policies.return_value_policy( module_builder.call_policies.copy_non_const_reference )
def _create_derived_from_named_item(self, extmodule):
Index: module_body_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/module_body_tester.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** module_body_tester.py 28 Feb 2006 07:31:33 -0000 1.5
--- module_body_tester.py 29 Mar 2006 04:26:58 -0000 1.6
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: namespaces_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/namespaces_tester.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** namespaces_tester.py 28 Feb 2006 07:31:33 -0000 1.6
--- namespaces_tester.py 29 Mar 2006 04:26:58 -0000 1.7
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: class_order4_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/class_order4_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** class_order4_tester.py 28 Feb 2006 07:31:33 -0000 1.2
--- class_order4_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: operators_bug_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/operators_bug_tester.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** operators_bug_tester.py 15 Mar 2006 09:27:07 -0000 1.7
--- operators_bug_tester.py 29 Mar 2006 04:26:58 -0000 1.8
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: member_functions_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/member_functions_tester.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** member_functions_tester.py 15 Mar 2006 09:27:07 -0000 1.13
--- member_functions_tester.py 29 Mar 2006 04:26:58 -0000 1.14
***************
*** 9,13 ****
import fundamental_tester_base
from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 9,12 ----
Index: index_operator_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/index_operator_tester.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index_operator_tester.py 5 Mar 2006 05:51:30 -0000 1.1
--- index_operator_tester.py 29 Mar 2006 04:26:58 -0000 1.2
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: classes_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/classes_tester.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** classes_tester.py 15 Mar 2006 09:27:07 -0000 1.14
--- classes_tester.py 29 Mar 2006 04:26:58 -0000 1.15
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: statics_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/statics_tester.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** statics_tester.py 28 Feb 2006 07:31:33 -0000 1.5
--- statics_tester.py 29 Mar 2006 04:26:58 -0000 1.6
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
- from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,12 ----
Index: noncopyable_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/noncopyable_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** noncopyable_tester.py 28 Feb 2006 07:31:33 -0000 1.3
--- noncopyable_tester.py 29 Mar 2006 04:26:58 -0000 1.4
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
- from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: global_variables_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/global_variables_tester.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** global_variables_tester.py 15 Mar 2006 09:27:07 -0000 1.10
--- global_variables_tester.py 29 Mar 2006 04:26:58 -0000 1.11
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: abstract_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/abstract_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** abstract_tester.py 28 Feb 2006 07:31:33 -0000 1.4
--- abstract_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: internal_classes_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/internal_classes_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** internal_classes_tester.py 28 Feb 2006 07:31:33 -0000 1.3
--- internal_classes_tester.py 29 Mar 2006 04:26:58 -0000 1.4
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: smart_pointers_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/smart_pointers_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** smart_pointers_tester.py 28 Feb 2006 07:31:33 -0000 1.4
--- smart_pointers_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 8,12 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
--- 8,11 ----
Index: regression2_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/regression2_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** regression2_tester.py 16 Mar 2006 06:34:09 -0000 1.4
--- regression2_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 9,13 ****
import fundamental_tester_base
from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 9,12 ----
Index: special_operators_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/special_operators_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** special_operators_tester.py 28 Feb 2006 07:31:33 -0000 1.4
--- special_operators_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 8,12 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
--- 8,11 ----
Index: free_operators_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/free_operators_tester.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** free_operators_tester.py 28 Feb 2006 07:31:33 -0000 1.4
--- free_operators_tester.py 29 Mar 2006 04:26:58 -0000 1.5
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: regression3_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/regression3_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** regression3_tester.py 5 Mar 2006 05:50:25 -0000 1.3
--- regression3_tester.py 29 Mar 2006 04:26:58 -0000 1.4
***************
*** 8,12 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
--- 8,11 ----
Index: call_policies_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/call_policies_tester.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** call_policies_tester.py 21 Mar 2006 08:07:30 -0000 1.10
--- call_policies_tester.py 29 Mar 2006 04:26:58 -0000 1.11
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
! from pygccxml import declarations
! from pyplusplus import code_creators
! from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,12 ----
import unittest
import fundamental_tester_base
! from pyplusplus.module_builder import call_policies
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
***************
*** 22,27 ****
def customize(self, mb ):
! mb.calldef( 'return_second_arg' ).call_policies = decl_wrappers.return_arg( 2 )
! mb.calldef( 'return_self' ).call_policies = decl_wrappers.return_self()
def run_tests(self, module):
--- 20,25 ----
def customize(self, mb ):
! mb.calldef( 'return_second_arg' ).call_policies = call_policies.return_arg( 2 )
! mb.calldef( 'return_self' ).call_policies = call_policies.return_self()
def run_tests(self, module):
Index: user_text_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/user_text_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** user_text_tester.py 21 Mar 2006 08:07:30 -0000 1.2
--- user_text_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
--- NEW FILE: gui_wizard_tester.py ---
# Copyright 2004 Roman Yakovenko.
# 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)
import autoconfig
import os
from pygccxml import parser
from pyplusplus import module_builder
#Configurating GCC-XML parser
#Basically you should copy here your makefile configuration
parser_configuration = parser.config_t(
#path to GCC-XML binary
gccxml_path=r"c:/tools/gccxml/bin/gccxml.exe"
, working_directory=r"D:\pygccxml_sources\source\pyplusplus\unittests\data"
, include_paths=['D:/pygccxml_sources/source/pyplusplus/gui']
, define_symbols=[] )
#Creating an instance of class that will help you to expose your declarations
mb = module_builder.module_builder_t( [r"D:\pygccxml_sources\source\pyplusplus\unittests\data\call_policies_to_be_exported.hpp"], parser_configuration )
#Well, don't you want to see what is going on?
mb.print_declarations()
#Creating code creator. After this step you should not modify/customize declarations.
mb.build_code_creator( module_name='pyplusplus' )
#Writing code to file.
mb.write_module( './bindings.cpp' )
Index: optional_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/optional_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** optional_tester.py 15 Mar 2006 09:27:07 -0000 1.2
--- optional_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: free_functions_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/free_functions_tester.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** free_functions_tester.py 15 Mar 2006 09:27:07 -0000 1.7
--- free_functions_tester.py 29 Mar 2006 04:26:58 -0000 1.8
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class free_functions_tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: pointer_as_arg_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/pointer_as_arg_tester.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pointer_as_arg_tester.py 26 Mar 2006 07:20:56 -0000 1.1
--- pointer_as_arg_tester.py 29 Mar 2006 04:26:58 -0000 1.2
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: class_order3_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/class_order3_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** class_order3_tester.py 28 Feb 2006 07:31:33 -0000 1.2
--- class_order3_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: member_variables_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/member_variables_tester.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** member_variables_tester.py 15 Mar 2006 09:27:07 -0000 1.14
--- member_variables_tester.py 29 Mar 2006 04:26:58 -0000 1.15
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: abstract_classes_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/abstract_classes_tester.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** abstract_classes_tester.py 28 Feb 2006 07:31:33 -0000 1.3
--- abstract_classes_tester.py 29 Mar 2006 04:26:58 -0000 1.4
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: enums_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/enums_tester.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** enums_tester.py 21 Mar 2006 08:07:30 -0000 1.10
--- enums_tester.py 29 Mar 2006 04:26:58 -0000 1.11
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: regression1_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/regression1_tester.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** regression1_tester.py 15 Mar 2006 09:27:07 -0000 1.6
--- regression1_tester.py 29 Mar 2006 04:26:58 -0000 1.7
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
! from pygccxml import declarations
! from pyplusplus import code_creators
! from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,12 ----
import unittest
import fundamental_tester_base
! from pyplusplus import module_builder
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
***************
*** 23,27 ****
def customize( self, mb ):
set_updater = mb.calldef( 'set_updater' )
! set_updater.call_policies = decl_wrappers.with_custodian_and_ward( 1, 2 )
def create_other_updater(self, module):
--- 21,25 ----
def customize( self, mb ):
set_updater = mb.calldef( 'set_updater' )
! set_updater.call_policies = module_builder.call_policies.with_custodian_and_ward( 1, 2 )
def create_other_updater(self, module):
Index: pointer_to_function_as_argument.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/pointer_to_function_as_argument.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pointer_to_function_as_argument.py 28 Feb 2006 07:31:33 -0000 1.6
--- pointer_to_function_as_argument.py 29 Mar 2006 04:26:58 -0000 1.7
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
#this is compilation test
--- 8,11 ----
Index: unnamed_enums_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/unnamed_enums_tester.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** unnamed_enums_tester.py 28 Feb 2006 07:31:33 -0000 1.7
--- unnamed_enums_tester.py 29 Mar 2006 04:26:58 -0000 1.8
***************
*** 8,12 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
from pyplusplus import code_creators
--- 8,11 ----
Index: fundamental_tester_base.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/fundamental_tester_base.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** fundamental_tester_base.py 22 Mar 2006 08:05:35 -0000 1.32
--- fundamental_tester_base.py 29 Mar 2006 04:26:58 -0000 1.33
***************
*** 8,12 ****
import unittest
import autoconfig
- from pygccxml import parser
from pyplusplus import module_builder
--- 8,11 ----
***************
*** 52,59 ****
def _create_extension_source_file(self):
global LICENSE
! config = parser.config_t( gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'])
! mb = module_builder.module_builder_t( [self.__to_be_exported_header], config )
self.customize( mb )
if not mb.has_code_creator():
--- 51,59 ----
def _create_extension_source_file(self):
global LICENSE
! mb = module_builder.module_builder_t( [self.__to_be_exported_header]
! , gccxml_path=autoconfig.gccxml_path
! , include_paths=[autoconfig.boost_path]
! , undefine_symbols=['__MINGW32__'] )
! mb.run_query_optimizer()
self.customize( mb )
if not mb.has_code_creator():
Index: free_function_ignore_bug_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/free_function_ignore_bug_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** free_function_ignore_bug_tester.py 21 Mar 2006 08:07:30 -0000 1.2
--- free_function_ignore_bug_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: operators_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/operators_tester.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** operators_tester.py 21 Mar 2006 08:07:30 -0000 1.10
--- operators_tester.py 29 Mar 2006 04:26:58 -0000 1.11
***************
*** 8,14 ****
import unittest
import fundamental_tester_base
! from pygccxml import declarations
! from pyplusplus import code_creators
! from pyplusplus import decl_wrappers
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,12 ----
import unittest
import fundamental_tester_base
! from pyplusplus.module_builder import call_policies
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
***************
*** 29,33 ****
r_assign = rational.calldef( 'assign', recursive=False )
! r_assign.call_policies = decl_wrappers.return_self()
foperators = mb.free_operators( lambda decl: 'rational<long int>' in decl.decl_string )
--- 27,31 ----
r_assign = rational.calldef( 'assign', recursive=False )
! r_assign.call_policies = call_policies.return_self()
foperators = mb.free_operators( lambda decl: 'rational<long int>' in decl.decl_string )
Index: class_order2_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/class_order2_tester.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** class_order2_tester.py 28 Feb 2006 07:31:33 -0000 1.2
--- class_order2_tester.py 29 Mar 2006 04:26:58 -0000 1.3
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: casting_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/casting_tester.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** casting_tester.py 28 Feb 2006 07:31:33 -0000 1.5
--- casting_tester.py 29 Mar 2006 04:26:58 -0000 1.6
***************
*** 8,13 ****
import unittest
import fundamental_tester_base
- from pygccxml import declarations
- from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
--- 8,11 ----
Index: algorithms_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/algorithms_tester.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** algorithms_tester.py 21 Mar 2006 08:07:30 -0000 1.10
--- algorithms_tester.py 29 Mar 2006 04:26:58 -0000 1.11
***************
*** 22,29 ****
class make_flatten_tester_t(unittest.TestCase):
def test(self):
- config = parser.config_t( gccxml_path=autoconfig.gccxml_path )
mb = module_builder.module_builder_t(
! [ parser.create_text_fc( 'namespace enums{ enum { OK=1 }; }' ) ]
! , config )
mb.namespace( name='::enums' ).include()
mb.build_code_creator('dummy')
--- 22,28 ----
class make_flatten_tester_t(unittest.TestCase):
def test(self):
mb = module_builder.module_builder_t(
! [ module_builder.create_text_fc( 'namespace enums{ enum { OK=1 }; }' ) ]
! , gccxml_path=autoconfig.gccxml_path )
mb.namespace( name='::enums' ).include()
mb.build_code_creator('dummy')
***************
*** 33,40 ****
class creator_finder_tester_t( unittest.TestCase ):
def test_find_by_declaration(self):
- config = parser.config_t( gccxml_path=autoconfig.gccxml_path )
mb = module_builder.module_builder_t(
! [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )]
! , config )
mb.namespace( name='::enums' ).include()
enum_matcher = declarations.match_declaration_t( name='color' )
--- 32,38 ----
class creator_finder_tester_t( unittest.TestCase ):
def test_find_by_declaration(self):
mb = module_builder.module_builder_t(
! [ module_builder.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )]
! , gccxml_path=autoconfig.gccxml_path )
mb.namespace( name='::enums' ).include()
enum_matcher = declarations.match_declaration_t( name='color' )
***************
*** 46,53 ****
def test_find_by_class_instance(self):
- config = parser.config_t( gccxml_path=autoconfig.gccxml_path )
mb = module_builder.module_builder_t(
! [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )]
! , config )
mb.namespace( name='::enums' ).include()
mb.build_code_creator('dummy')
--- 44,50 ----
def test_find_by_class_instance(self):
mb = module_builder.module_builder_t(
! [ module_builder.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )]
! , gccxml_path=autoconfig.gccxml_path )
mb.namespace( name='::enums' ).include()
mb.build_code_creator('dummy')
|