aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression with enums.Lauro Neto2012-03-081-0/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Fixed regression that made enums not hashable.Hugo Parente Lima2012-03-081-0/+3
|
* Removes printfs and fixes str test.Marcelo Lira2012-03-081-10/+2
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Removed invalid test.Renato Filho2012-03-082-57/+1
|
* Updated str test to work with both python 2.x and 3.xRenato Filho2012-03-081-4/+4
|
* Fixed tests to work with python3.x and python2.xRenato Filho2012-03-0824-67/+151
|
* created py3k file to make tests compatible with python3.x and python2.xRenato Filho2012-03-081-0/+2
| | | | | This file is necessary due some problem with syntax generated by 'file' named argument.
* Updated enum_test for support py3k.Renato Filho2012-03-081-4/+10
|
* Update string usage to new Shiboken::String API.Renato Filho2012-03-082-34/+57
|
* Fixed duck punch unti test to work with Python3.Hugo Parente Lima2012-03-081-5/+11
|
* Added py3kcompat.py to test suite to make tests pass on Python3.x and 2.x.Hugo Parente Lima2012-03-082-2/+43
|
* Added SBK_PyString_FromCString and SBK_PyString_FromFormat as helper macro ↵Hugo Parente Lima2012-03-081-3/+3
| | | | for Py3k port.
* Port libsample typesystem and glue codes to Python 3.Hugo Parente Lima2012-03-084-38/+49
|
* Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵Hugo Parente Lima2012-03-085-89/+6
| | | | | | | | functionality through a Python module"." This reverts commit bc8448d7fb91733ff08c2a6a3a878702c14a24e0. The PSEP didn't reach the final version yet, so this commit can't be released.
* 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.