aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added test for removed pointer out argument.Marcelo Lira2012-03-087-5/+72
|
* Improved and fixed the setter and getter writer functions.Marcelo Lira2012-03-082-1/+8
| | | | Also added an unit test to a protected container property.
* Moved many variables names used in generated code to macros.Marcelo Lira2012-03-081-6/+8
| | | | | | | | | | | Also fixed ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments() method to consider call operators. Fixed code snippet variable replacement for when there's only one Python argument in the function. And CppGenerator::writeArgumentsInitializer() was sanitized, with never used code erased. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed writeBaseConversion method to handle references to C++ primitives.Marcelo Lira2012-03-084-1/+61
| | | | Added test for a reference to integer as a function argument.
* Added test for a typedef to a primitive numerical type.Marcelo Lira2012-03-084-0/+61
|
* Moved writeMinimalConstructorCallArguments() functionality to Generator Runner.Marcelo Lira2012-03-082-2/+2
| | | | | Updated tests' type systems to reflect the behaviour of Generator::minimalConstructor().
* Moved an enum tag on 'sample' test binding to a better position.Marcelo Lira2012-03-081-1/+1
|
* Added a build option to compile and run only the minimal set of tests.Marcelo Lira2012-03-081-7/+15
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Improved minimal binding test passing a None value where an object type ↵Marcelo Lira2012-03-081-0/+5
| | | | | | | pointer is expected. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix samplebinding warnings suppresions.Hugo Parente Lima2012-03-081-1/+16
|
* Created unit test for bug #886.Renato Filho2012-03-083-0/+21
| | | | | | | | This test check if a enum inside of a namespace which is not exported to python, work proper. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix refleak during the parent c++ object destruction.Renato Filho2012-03-083-1/+40
| | | | | | | Fixes bug #893. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed injected code processing to avoid infinite recursion in virtual method ↵Marcelo Lira2012-03-083-3/+24
| | | | | | calls. Unit tests were also added.
* Created unit test for add function rich-compare function.Renato Filho2012-03-082-0/+49
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Removed warning about possible use of uninitialized variable.Hugo Parente Lima2012-03-081-0/+1
|
* Test for bug 464 - "Can't create target lang package and namespace with the ↵Hugo Parente Lima2012-03-086-0/+83
| | | | same name"
* Added the basic cases for container conversions.Marcelo Lira2012-03-088-0/+511
| | | | | | | | | | | | | | | The cases are made of conversions of lists of: * C++ primitive type * C++ class treated as Python primitive type * Value type as C++ value * Object type as C++ pointer * Container of container of C++ primitive type The container is converted when called from Python or from C++ (via virtual methods), and passed as arguments to Python and to C++. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added class to be treated as a specific (bool, in this case) primitive type ↵Marcelo Lira2012-03-086-0/+140
| | | | | | in Python. Unit tests were also added.
* Expanded the minimal example and tests to better deal with virtual methods.Marcelo Lira2012-03-084-5/+129
|
* Test for bug 291 - "Generator ignores inject code for rich comparison ↵Hugo Parente Lima2012-03-081-0/+7
| | | | | | | operators." Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated necessary unit tests to handle with exceptions.Renato Filho2012-03-082-2/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Shiboken buffer interface.Hugo Parente Lima2012-03-081-10/+2
| | | | | | | | | | | | | This interface is just a wrapper to the differents API's provided by Python to deal with memory buffers in various versions of Python, so is recommended to use this API to deal with Python memory buffers instead of the CPython API. If you want to have a Python buffer as argument of any function just change the argument type to "PyBuffer" and the generator will handle it right regarding to type checking. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added an unit test that puts an attribute on a Shiboken generated class.Marcelo Lira2012-03-081-0/+47
|
* Added a new test binding called 'minimal'.Marcelo Lira2012-03-0812-5/+350
| | | | | | | | | | | | | The purpose is to have the smallest possible binding to help when doing complex changes that require a good deal of debugging and tracking, and the many operations performed in too many wrapped classes will clutter any output used for those purposes. In other words: don't add anything here except with a good reason for it, prefer to use 'sample' or 'other' binding for that. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Unit test for bug 851 - "Shiboken recognizes dereference operator overload ↵Hugo Parente Lima2012-03-082-0/+13
| | | | as times operator overload."
* Merge branch 'casttoreference' into havegcflag-hellMarcelo Lira2012-03-085-0/+129
|\ | | | | | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
| * Added tests for conversion operator that returns a constant reference type.Marcelo Lira2012-03-085-0/+129
| | | | | | | | | | | | | | This is related to bug #716: http://bugs.pyside.org/show_bug.cgi?id=716 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* | Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-081-0/+70
|/
* Replaced "isUserType" test for the correct "hasCppWrapper" before method calls.Marcelo Lira2012-03-081-0/+12
| | | | | | | | Also added an unit test for infinite recursion when duck punching a virtual method. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix bug 813 - "Can not override connect method when subclassing QObject"Hugo Parente Lima2012-03-081-0/+25
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Created test for bug #654.Renato Filho2012-03-081-1/+9
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-083-8/+94
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <renato.filho@openbossa.org>
* Return false when a overload wasn't found on __eq__ and true when an ↵Hugo Parente Lima2012-03-081-0/+1
| | | | | | | overload wasn't found on __ne__. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add tests for adding reverse operators.Hugo Parente Lima2012-03-082-0/+22
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-082-0/+5
|
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-084-19/+148
| | | | | | | Wrong conversion code was being outputted to virtual method wrapper code when all arguments were removed. Unit tests were added as well.
* Expanded the tests that simulate QPainter::drawText even further.Marcelo Lira2012-03-082-0/+47
| | | | | | | | The purpose of this is to provide more and more test cases for the overload decisor. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added unit tests to simulate the QPainter::drawText overloads.Marcelo Lira2012-03-086-2/+139
| | | | The classes Rect and RectF were added to help with the imitation.
* Added two more unit tests for the overload decisor.Marcelo Lira2012-03-082-1/+22
|
* Small refactor on Overload test.Marcelo Lira2012-03-081-21/+10
|
* Added test for bug 489.Marcelo Lira2012-03-083-0/+104
| | | | | | | http://bugs.pyside.org/show_bug.cgi?id=489 Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Tests for reverse operatorsLauro Neto2012-03-087-0/+204
| | | | | | | | | | | CPython calls nb_and with swapped arguments for reverse operators. This tests checks if the reverse operator raises NotImplementedError instead of TypeError when there isn't a valid reverse operator. Raising TypeError would cause the operator to fail.
* Updated module reload test.Renato Filho2012-03-082-21/+7
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unittest for bug #704.Renato Filho2012-03-081-0/+61
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-083-2/+9
| | | | | | | | Instead of the old ugly way of compiling the behaviour forever using "#define". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Module reload test now considers .pyo files (in addition to .pyc ones).Marcelo Lira2012-03-081-1/+4
|
* Added test to certify that old-style classes will not be accepted as numbers ↵Marcelo Lira2012-03-081-0/+76
| | | | (unless they are).
* Added a test to numpy scalar type being accepted as Python scalar.Marcelo Lira2012-03-081-0/+30
|
* Fix string used in tp_name on inner types.Hugo Parente Lima2012-03-082-1/+6
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added test for overload decision situation involving inheritance.Marcelo Lira2012-03-083-1/+17
|