aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Created unit test for cyclic dependency.Renato Filho2012-03-081-0/+104
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken functionality ↵Hugo Parente Lima2012-03-085-6/+89
| | | | through a Python module".
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-084-0/+118
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added a test case for a bit-field structure member.Marcelo Lira2012-03-086-9/+26
| | | | Also moved a couple of tests from samplebindings to otherbindings.
* Added a test for an user defined primitive type from a required module.Marcelo Lira2012-03-085-2/+64
| | | | | Also sorted the tests order alphabetically and fixed inject code for SampleNamespaces' passReferenceToObjectType method.
* Added test for typedef of unsigned short.Marcelo Lira2012-03-083-0/+9
|
* Added test for user defined primitive type used as public class field.Marcelo Lira2012-03-082-3/+17
|
* Added test for implicit conversion with user's primitive type.Marcelo Lira2012-03-082-4/+14
|
* Added a method modification test dealing with code injection and user's ↵Marcelo Lira2012-03-083-0/+14
| | | | | | primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type.
* Implemented unit test for deprecated functions.Renato Filho2012-03-083-0/+53
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-084-4/+51
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Improved type system converter variable usage in the sample test binding.Marcelo Lira2012-03-081-105/+105
| | | | ShibokenGenerator uses qDeleteAll for the cached meta types.
* Added tests for a class that its only constructor is the copy one.Marcelo Lira2012-03-087-0/+162
| | | | | | | | This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for classes that are typedefs that implement a template class.Marcelo Lira2012-03-087-0/+189
| | | | This simulates the situation found in Qt's phonon module.
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-084-0/+20
| | | | An unit test was also added for it.
* Added an unit test to check if derived type destructors are freeing memory ↵Marcelo Lira2012-03-081-0/+49
| | | | twice.
* Test's names now have their module as prefix.Marcelo Lira2012-03-081-6/+7
| | | | So they can be ran by module.
* Added a test dealing with a reference to an Object Type passed to Python.Marcelo Lira2012-03-087-0/+140
| | | | | The test is for an Object Type that didn't existed in Python and is passed to it as C++ reference through a virtual method.
* Improved guessCPythonCheckFunction method to produce an AbstractMetaType for ↵Marcelo Lira2012-03-084-7/+37
| | | | | | | | | | known types. This is in opposition of simply returning a string with a custom type check. The details are in the docstring in ShibokenGenerator header. Also added a new modification test and refactored here and there in the sample binding type system.
* Included tests for added function signatures very similar to already ↵Marcelo Lira2012-03-084-4/+94
| | | | | | | | | | | | | | | existing ones. Specifically this causes the situation when there is in C++ a function with an argument that is a reference to a Value Type, and the user adds a very similar function with the same type, but passed as value. Example: C++ : function(const TYPE& a, int b) Added: function(TYPE) The return type of ShibokenGenerator::getArgumentReplacement() method was modified, because the argument object is more useful than its index.
* Added tests for custom conversion and buffer protocol.Marcelo Lira2012-03-0810-1/+601
| | | | It it inspired by some of PySide's QByteArray tests.
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-084-37/+49
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added compilation test for value type argument in a lshift operator.Marcelo Lira2012-03-081-0/+1
|
* 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>