Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix regression with enums. | Lauro Neto | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -0/+3 |
| | |||||
* | Removes printfs and fixes str test. | Marcelo Lira | 2012-03-08 | 1 | -10/+2 |
| | | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Removed invalid test. | Renato Filho | 2012-03-08 | 2 | -57/+1 |
| | |||||
* | Updated str test to work with both python 2.x and 3.x | Renato Filho | 2012-03-08 | 1 | -4/+4 |
| | |||||
* | Fixed tests to work with python3.x and python2.x | Renato Filho | 2012-03-08 | 24 | -67/+151 |
| | |||||
* | created py3k file to make tests compatible with python3.x and python2.x | Renato Filho | 2012-03-08 | 1 | -0/+2 |
| | | | | | This file is necessary due some problem with syntax generated by 'file' named argument. | ||||
* | Updated enum_test for support py3k. | Renato Filho | 2012-03-08 | 1 | -4/+10 |
| | |||||
* | Update string usage to new Shiboken::String API. | Renato Filho | 2012-03-08 | 2 | -34/+57 |
| | |||||
* | Fixed duck punch unti test to work with Python3. | Hugo Parente Lima | 2012-03-08 | 1 | -5/+11 |
| | |||||
* | Added py3kcompat.py to test suite to make tests pass on Python3.x and 2.x. | Hugo Parente Lima | 2012-03-08 | 2 | -2/+43 |
| | |||||
* | Added SBK_PyString_FromCString and SBK_PyString_FromFormat as helper macro ↵ | Hugo Parente Lima | 2012-03-08 | 1 | -3/+3 |
| | | | | for Py3k port. | ||||
* | Port libsample typesystem and glue codes to Python 3. | Hugo Parente Lima | 2012-03-08 | 4 | -38/+49 |
| | |||||
* | Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵ | Hugo Parente Lima | 2012-03-08 | 5 | -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 Filho | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 5 | -6/+89 |
| | | | | through a Python module". | ||||
* | Fixed generator to consider conversion rules for the return type of wrapper ↵ | Marcelo Lira | 2012-03-08 | 4 | -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 Lira | 2012-03-08 | 6 | -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 Lira | 2012-03-08 | 5 | -2/+64 |
| | | | | | Also sorted the tests order alphabetically and fixed inject code for SampleNamespaces' passReferenceToObjectType method. | ||||
* | Added test for typedef of unsigned short. | Marcelo Lira | 2012-03-08 | 3 | -0/+9 |
| | |||||
* | Added test for user defined primitive type used as public class field. | Marcelo Lira | 2012-03-08 | 2 | -3/+17 |
| | |||||
* | Added test for implicit conversion with user's primitive type. | Marcelo Lira | 2012-03-08 | 2 | -4/+14 |
| | |||||
* | Added a method modification test dealing with code injection and user's ↵ | Marcelo Lira | 2012-03-08 | 3 | -0/+14 |
| | | | | | | primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type. | ||||
* | Implemented unit test for deprecated functions. | Renato Filho | 2012-03-08 | 3 | -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 Lira | 2012-03-08 | 4 | -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 Lira | 2012-03-08 | 1 | -105/+105 |
| | | | | ShibokenGenerator uses qDeleteAll for the cached meta types. | ||||
* | Added tests for a class that its only constructor is the copy one. | Marcelo Lira | 2012-03-08 | 7 | -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 Lira | 2012-03-08 | 7 | -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 Lira | 2012-03-08 | 4 | -0/+20 |
| | | | | An unit test was also added for it. | ||||
* | Added an unit test to check if derived type destructors are freeing memory ↵ | Marcelo Lira | 2012-03-08 | 1 | -0/+49 |
| | | | | twice. | ||||
* | Test's names now have their module as prefix. | Marcelo Lira | 2012-03-08 | 1 | -6/+7 |
| | | | | So they can be ran by module. | ||||
* | Added a test dealing with a reference to an Object Type passed to Python. | Marcelo Lira | 2012-03-08 | 7 | -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 Lira | 2012-03-08 | 4 | -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 Lira | 2012-03-08 | 4 | -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 Lira | 2012-03-08 | 10 | -1/+601 |
| | | | | It it inspired by some of PySide's QByteArray tests. | ||||
* | Fixed type system variable replacement for arguments removed with conversion ↵ | Marcelo Lira | 2012-03-08 | 4 | -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 Lira | 2012-03-08 | 1 | -0/+1 |
| | |||||
* | Added test for removed pointer out argument. | Marcelo Lira | 2012-03-08 | 7 | -5/+72 |
| | |||||
* | Improved and fixed the setter and getter writer functions. | Marcelo Lira | 2012-03-08 | 2 | -1/+8 |
| | | | | Also added an unit test to a protected container property. | ||||
* | Moved many variables names used in generated code to macros. | Marcelo Lira | 2012-03-08 | 1 | -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 Lira | 2012-03-08 | 4 | -1/+61 |
| | | | | Added test for a reference to integer as a function argument. | ||||
* | Added test for a typedef to a primitive numerical type. | Marcelo Lira | 2012-03-08 | 4 | -0/+61 |
| | |||||
* | Moved writeMinimalConstructorCallArguments() functionality to Generator Runner. | Marcelo Lira | 2012-03-08 | 2 | -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 Lira | 2012-03-08 | 1 | -1/+1 |
| | |||||
* | Added a build option to compile and run only the minimal set of tests. | Marcelo Lira | 2012-03-08 | 1 | -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 Lira | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -1/+16 |
| | |||||
* | Created unit test for bug #886. | Renato Filho | 2012-03-08 | 3 | -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 Filho | 2012-03-08 | 3 | -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 Lira | 2012-03-08 | 3 | -3/+24 |
| | | | | | | calls. Unit tests were also added. |