Update of /cvsroot/pygccxml/source/pyplusplus/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19111/pyplusplus/unittests
Modified Files:
test_all.py
Added Files:
free_function_ignore_bug_tester.py optional_bug_tester.py
Log Message:
porting boost.date_time library to use new api.
Porting process discover few bugs, I fixed them.
Index: test_all.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/test_all.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** test_all.py 19 Mar 2006 05:45:14 -0000 1.34
--- test_all.py 19 Mar 2006 13:35:39 -0000 1.35
***************
*** 45,48 ****
--- 45,50 ----
import mdecl_wrapper_tester
import user_text_tester
+ import free_function_ignore_bug_tester
+ import optional_bug_tester
def create_suite(times):
***************
*** 86,89 ****
--- 88,93 ----
, mdecl_wrapper_tester
, user_text_tester
+ , free_function_ignore_bug_tester
+ , optional_bug_tester
]
--- NEW FILE: optional_bug_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 os
import sys
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):
EXTENSION_NAME = 'optional_bug'
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
def run_tests(self, module):
pass
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
def run_suite():
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
run_suite()
--- NEW FILE: free_function_ignore_bug_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 os
import sys
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):
EXTENSION_NAME = 'free_function_ignore_bug'
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
def customize(self, mb ):
do_nothing = mb.free_functions( 'do_nothing' )
do_nothing.exclude()
code = mb.module_creator.create()
print code
self.failUnless( 'do_nothing' not in code )
def run_tests(self, module):
pass
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
def run_suite():
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
run_suite()
|