aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add support for static fields.Hugo Parente Lima2010-07-023-0/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for finding type scope in cases involving inheritance.Marcelo Lira2010-06-292-0/+44
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add unit test for bug#237.Hugo Parente Lima2010-06-211-0/+48
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixes the build-tests by including the library postfixes in the programRenato Filho2010-06-182-2/+2
| | | | | | | | calls Author: Didier Raboud <didier@raboud.com> Reviewers: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Created unit tests for named arguments.Renato Filho2010-06-173-4/+104
| | | | | Reviewers: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Used CMAKE_DEBUG_POSTFIX in plugin name on generatorrunner.Renato Filho2010-06-172-2/+2
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Add libother directory to LD_LIBRARY_PATH, shiboken can be compiled with ↵Hugo Parente Lima2010-06-171-1/+1
| | | | | | | CMAKE_SKIP_RPATH=true. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* chmod -x on all tests.Hugo Parente Lima2010-06-1668-0/+0
| | | | We can't run they standalone anyway, because they need some env vars to be exported like PYTHONPATH.
* Adds a test for function call that triggers an implicit conversion.Marcelo Lira2010-06-151-0/+6
|
* Added test function with an integer argument that have an enum as default value.Marcelo Lira2010-06-153-0/+14
|
* Fix problems on MacOSX due to uninitialized variables and mixing of int, ↵Hugo Parente Lima2010-06-157-25/+23
| | | | | | | uint and ulong variables. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* MSVC complains about the missing operator< in Str when we use it on a std::list.Hugo Parente Lima2010-06-142-0/+6
|
* Added Converter<T>::checkType.Hugo Parente Lima2010-06-091-1/+1
| | | | | | This method is needed because you can not call Converter<T>::isConvertible inside a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step implicit conversion.
* Added support for protected fields when not using the "protected hack".Marcelo Lira2010-06-034-1/+24
| | | | Tests were also added.
* Fixes code generation for classes with private destructors.Marcelo Lira2010-06-022-0/+20
| | | | | | This fix is specific for the cases when the "protected hack" is turned off. Also added some tests.
* Generator improved to handle protected enums without the protected hack.Marcelo Lira2010-06-023-5/+39
|
* Adds protected enum test cases.Marcelo Lira2010-06-014-1/+57
|
* Fixed declaration of class SimpleFile.Renato Filho2010-05-262-30/+56
| | | | | | | Move FILE member to internal structor to avoid errors on compilation of debian PPC. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* API fixes.Renato Filho2010-05-1812-20/+23
| | | | | | | | | * Export enums without macro * Declare virtual destructor on all classes with virtual functions * Fix extern "C" declaration scope Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added tests for user added functions declared inside namespaces.Hugo Parente Lima2010-04-302-0/+9
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* Adding test for #212 - Overloads with enumsLauro Neto2010-04-303-1/+23
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2010-04-235-0/+143
|\
| * Support to "only private constructor available" case.Luciano Wolf2010-04-215-0/+143
| |
* | Use qualified class name when callign a method like self->ClassName::method().Hugo Parente Lima2010-04-223-1/+13
| | | | | | | | This fix some problems compiling bindings for classes under C++ namespaces.
* | Added support for enums inside classes inside namespaces.Hugo Parente Lima2010-04-223-0/+6
| |
* | Add test for classes and inner classes inside namespaces.Hugo Parente Lima2010-04-225-2/+58
| |
* | Add declaration of global functions on sample typesystem.Hugo Parente Lima2010-04-221-3/+24
| |
* | Fixed argument policy propagate.Renato Filho2010-04-223-2/+14
|/ | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Unit test for multiple derived classes.Renato Filho2010-04-121-2/+26
|
* Remove warnings about "deprecated conversion from string constant to 'char*'".Hugo Parente Lima2010-04-121-1/+1
| | | | | | | | These warnings are due to the Python C API using a char* as parameter when it should const char*. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Better error messages when reimplementing virtual methods.Hugo Parente Lima2010-04-082-1/+15
|
* Add another test case to multi_cpp_test.pyHugo Parente Lima2010-04-081-0/+30
|
* Adding test for mixed Python/C++ mult. inheritanceLauro Neto2010-04-081-0/+71
| | | | | Reviewer: Bruno Araujo <bruno.araujo@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Adding multiple inheritance + virtual method testLauro Neto2010-04-081-0/+83
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Added unit test for crash with references, None types and comparison functions.Hugo Parente Lima2010-04-051-1/+6
|
* Do not segfault when a null pointer is passed to Str constructor.Hugo Parente Lima2010-04-051-1/+2
|
* libsample's Point extended with a reverse operator defined in libother.Marcelo Lira2010-03-313-1/+72
| | | | | | | | | | The libother's Number class now defines a multiply reverse operator with libsample's Point class. Tests were added to check if the generated binding correctly calls Number.__rmul__ method with Point as argument. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Extended extended reverse shift operator test.Marcelo Lira2010-03-311-3/+9
| | | | Just added the basic case of "Collector << ObjectType".
* Added some simple tests about multiple inheritance from two C++ objects.Hugo Lima2010-03-301-0/+70
|
* Adds test case for libsample's Size class copy constructor.Marcelo Lira2010-03-262-7/+14
| | | | Also fixes samplebinding type system indentation.
* Fixes Converter<void*>::toPython method.Marcelo Lira2010-03-231-0/+6
| | | | | | | | The void* converter transforms a C++ NULL pointer in a Python None. An unit test for this case was added as well. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Bruno Araújo <bruno.araujo@openbossa.org>
* Adds tests to type system modifications regarding reference to pointer type.Marcelo Lira2010-03-224-0/+153
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Adding greedy method to CollectorLauro Neto2010-03-224-2/+28
| | | | | This method will somehow conflict with the external operator in libother OtherObjectType
* Adding OtherObjectType to libotherLauro Neto2010-03-227-0/+148
| | | | Used in external reverse operators defined in other modules.
* Adds a test for a method with modifications and custom conversion rules.Marcelo Lira2010-03-193-1/+28
| | | | | | | | | | | | | The test function does nothing in fact, it is there just to cause a situation that could cause a compilation problem if the generator is not working as it should. In other words if it compiles, then it is ok. :) The added method was a dummy clone of a similar QPixmap.loadFromData method signature that prevented QtGui from compiling properly. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
* Added a unit test to check the object-type hashability.Hugo Lima2010-03-191-1/+7
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Allow hash-function tag to be definied in object-types (Fix bug #186).Hugo Lima2010-03-193-1/+8
|
* Write enum checks before int, long and bool checks.Hugo Lima2010-03-181-2/+5
| | | | | | Enums are implicitly converted to these types in C++, if we dont do that the enum version of some functions can never be called, because the int one will be if the int check was written before the enum check.
* Renamed templates used for conversions of containers.Hugo Lima2010-03-183-3/+3
|
* Changed the semantic of Converter<T>::isConvertible method.Hugo Lima2010-03-182-6/+15
| | | | | | | | | The new semantic is: Returns true when the type can be converted to T OR the type is T. The old semantic was: Returns true when the type can be converted to T and false if the type is T, however int and float converters did not follow this rule, because they used PyNumber_Check on their isConvertible implementation.