209 Commits

Author SHA1 Message Date
Gustavo Carneiro 71852b1158 remove gccxmlparser (in favour of castxmlparser) 2021-02-21 12:01:47 +00:00
Gustavo Carneiro f624bb33f5 re-enable some doctests; add test for #42 2021-02-14 18:59:05 +00:00
Gustavo Carneiro a58737740e Add handling for "char" type default parameter value, closes #41 2020-12-21 09:55:10 +00:00
Gustavo Carneiro 443cbba5dd add python-level tests for unordered_map 2020-11-22 14:36:11 +00:00
Tom Henderson a6321cc6a1 Add support for unordered_map 2020-11-21 15:21:00 -08:00
Gustavo Carneiro 5c6f9a7d08 skip the flaky test 2020-03-11 11:25:23 +00:00
Gustavo Carneiro 22f50d153b test_free_after_copy_leak: allow failure 2020-03-11 11:21:03 +00:00
Gustavo Carneiro 9f017f1577 s/nullptr/NULL/ (compat w/ old compilers) 2020-03-11 11:19:10 +00:00
Cosmos Nicolaou 521091b1f1 improve tests 2020-03-09 17:23:16 -07:00
Cosmos Nicolaou a38f492984 add test 2020-03-05 14:07:08 -08:00
Cosmos Nicolaou c0f002155d fix command line parsing 2020-03-03 20:48:41 -08:00
Cosmos Nicolaou 01125844d1 get castxml tests to work 2020-03-03 17:37:59 -08:00
Cosmos Nicolaou 84f81b13bc update to waf 2.0.19 2020-03-03 14:27:09 -08:00
Gustavo Carneiro 8ff989232c fix for method returning const reference to a class, closes #21 2019-09-29 20:26:25 +01:00
Gustavo Carneiro 7b33dd6d89 typo 2018-05-27 12:52:42 +01:00
Gustavo Carneiro 20b9c171db castxml: skip some tests if castxml mode 2018-05-27 12:46:16 +01:00
Gustavo Carneiro f98f26cb7b WIP: trying to get castxmlparser to pass the unit tests 2018-03-04 19:06:08 +00:00
Alexander Afanasyev 09e87032a9 cppclass: Adding more capability to MemoryPolicy
Now memory policy also controls registration of pointers to types and
aliases for parameters and return values.  This, for example, is useful
when working with custom smart pointer implementation.

This commit also reorganizes implementation for boost::shared_ptr and
std::shared_ptr
2015-08-20 13:49:42 -07:00
PKUSZ-future-network-lab c9a9de3371 Bug 1368538: Support translating C++ exception into Python's standard exceptions 2014-09-14 20:00:55 +01:00
PKUSZ-future-network-lab 878dd743f8 Custom function and method wrappers should support 2014-09-14 16:39:02 +01:00
Gustavo Carneiro bf943c9e35 Fix some issues with copying classes that have private copy-constructors 2014-08-07 22:08:13 +01:00
Gustavo Carneiro 7fe0100e11 Generate wrappers to memory to rollback in case of failure, instead of writing to the test file 2014-06-17 14:25:43 +01:00
Gustavo Carneiro 9e82ca3759 Fix a C++ compilation warning 2014-02-15 18:38:45 +00:00
Gustavo Carneiro e1c93348b8 Make all wscript files python 3 compatible 2014-02-09 20:06:59 +00:00
Gustavo Carneiro b77de1cc18 Upgrade waf to 1.7.15 2014-02-02 19:43:37 +00:00
Gustavo Carneiro 06f2eda78c assert_ -> assertTrue 2014-02-02 18:58:07 +00:00
Gustavo Carneiro e01398d91c Fix the gccxml-based unit tests 2014-02-02 18:55:53 +00:00
Gustavo Carneiro 3c2726d367 merge from the py3k branch 2014-02-02 18:00:35 +00:00
Gustavo Carneiro 0a1f9089b5 Make the source also python 2.6 compatible, in addition to python 3.x 2013-10-06 16:08:38 +01:00
Gustavo Carneiro 41f96e1d2d Make sure the unit tests run on either python 2 or 3, without needing 3to2 2013-08-04 22:20:36 +01:00
Gustavo Carneiro 5aae13b55a make it work on python 3 (except that sq_slice and sq_ass_slice are gone in Python 3) 2013-07-31 22:40:27 +01:00
Gustavo Carneiro 6ab20e6d03 Merge from trunk 2013-07-27 19:45:53 +01:00
Gustavo Carneiro f8943e6719 Make it work on Python 3, except gccxml, which has not been tested 2013-07-27 17:18:06 +01:00
Gustavo Carneiro f4b50afda6 Fix a compilation warning in the unit tests 2013-02-21 18:56:30 +00:00
Mike Owen 782aced20b Adding a unit test of cppclass.add_custom_instance_attribute. I think
this completes tests of all our new features for pybindgen in this
branch.
2012-12-11 22:42:19 -08:00
Mike Owen d937627c70 1. Putting in logic to only build the boost::shared_ptr test when
the shared_ptr header is available.

2.  The type narrowing using cxxabi in cppclass.py isn't correct with
    clang, so adding a #if checks to exclude it in that case.
2012-12-11 22:10:45 -08:00
Mike Owen 2560c98f5e 1. Debugged some of our new sequence methods and expanded on the error reporting a bit.
2.  Commenting out the automatic tp_hash method for now since it's not quite right.  We have to 
    go back and see why Riyaz originally reinstated that thing.

3.  Expanded the pybindgen unit tests of "VectorLike" to include all the new container slots.
2012-12-10 16:39:14 -08:00
Gustavo J. A. M. Carneiro a17ce14a6e More boost::shared_ptr tests/fixes, seems stable now. 2012-08-24 19:11:24 +01:00
Gustavo J. A. M. Carneiro 33f9f727fe Initial support for boost::shared_ptr-wrapped classes 2012-08-23 19:00:57 +01:00
Gustavo J. A. M. Carneiro d5c2ec49cb Fix PYTHONPATH for unit tests 2012-08-20 18:05:10 +01:00
Gustavo J. A. M. Carneiro c3f5dd8aae Trying, in vain, to reproduce bug #798383... 2012-05-04 18:31:31 +01:00
Gustavo J. A. M. Carneiro 003d69124e Don't unit-test Glib:: types, as it requires special headers 2012-05-04 16:18:01 +01:00
Gustavo J. A. M. Carneiro 2ae14a0852 Generation bug: local variables conflict with wrapper parameters 2012-03-18 22:28:23 +00:00
Gustavo J. A. M. Carneiro 07146e80ae Upgrade to WAF 1.6.11; building examples temporarily broken... 2012-03-18 18:50:39 +00:00
Gustavo J. A. M. Carneiro 0b7f23150b returning const* doesn't work with 'reference_existing_object' 2011-06-22 14:30:27 +01:00
Gustavo J. A. M. Carneiro b7094b55fe Add new destructor_visibility CppClass option 2011-06-16 11:49:20 +01:00
Gustavo J. A. M. Carneiro 3ac1a30e35 Bug #780945: Exception translation generates invalid code if return value is wrapped (i.e. not primitive) 2011-05-11 16:14:39 +01:00
Gustavo J. A. M. Carneiro 7ba02242f8 Add support for 'throw' annotations in functions and methods 2011-05-10 19:10:18 +01:00
Gustavo J. A. M. Carneiro 3d5389f88c Fix testing of CppClassPtrParameter in reverse wrappers. 2011-01-27 18:18:05 +00:00
Gustavo J. A. M. Carneiro 212ab88379 Fix a CStringReturn bug 2011-01-21 11:55:01 +00:00