aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Inject code for Point.__reduce__sb-0.5.1Lauro Neto2012-03-081-0/+11
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding pickling testLauro Neto2012-03-081-0/+21
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding deepcopy test.Lauro Neto2012-03-081-0/+12
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding value-type copy testLauro Neto2012-03-081-0/+48
|
* Unit test to target conversion.renatofilho2012-03-086-0/+141
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Shiboken avoids generating code for private enums.Marcelo Lira2012-03-081-1/+9
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Created unit test to unsafe parent (parent created from c++)renatofilho2012-03-085-2/+80
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated type system file for test binding to use nested types.Marcelo Lira2012-03-081-27/+37
| | | | | | | | | | | | | | | | | | Instead of the awkward: <enum-type name="Foo::Bar"/> <value-type name="Foo"/> <value-type name="Foo::Sbrubles"/> We now use the proper: <value-type name="Foo"> <enum-type name="Bar"/> <value-type name="Sbrubles"/> </value-type> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Move Python debug check to root Cmake file.renatofilho2012-03-081-21/+0
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-083-2/+25
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added tests for anonymous global and class bound enums.Marcelo Lira2012-03-083-0/+28
|
* Fix OverloadData::isSingleArgumentLauro Neto2012-03-082-0/+8
| | | | | | | | | | | | Now returning true *only* when exactly all overloads accept exactly 1 argument. Fixes compilation of QAudioInput and QAudioOutput from QtMultimedia. Both have start() and start(QIODevice*) overloads, and the previous code was generating 'arg' instead of 'pyargs'. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#339 - "RuntimeError when accessing mousepress event object"Hugo Parente Lima2012-03-084-1/+33
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.filho@openbossa.org>
* Fix code generation for modified constructors.Luciano Wolf2012-03-087-0/+134
| | | | | Reviewers: Renato Araújo <renato.filho@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Created cmake option 'ENABLE_VERSION_SUFFIX' to use version on generated ↵sb-0.5.0Renato Filho2010-09-102-6/+2
| | | | | | | files to allow multiples version installed simultaneous. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Change the license boiler plates of all LGPL files removing the special ↵Hugo Parente Lima2010-09-0984-1680/+672
| | | | | | | exception. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Avoid call functions when an error occurs on argument conversion.Renato Filho2010-09-032-0/+7
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Use the correct path separator on Windows.Hugo Parente Lima2010-08-311-2/+2
|
* Fix linker problems on MSVC.Hugo Parente Lima2010-08-311-4/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araujo <renato.araujo@openbossa.org>
* Impleted auto code for classes derived from list container.Renato Filho2010-08-305-0/+110
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-305-4/+77
| | | | | | | | | | | | | | | | | The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Fixed tests enviroment vars.Renato Filho2010-08-191-2/+2
|
* Fix mem leak in shiboken tests.Hugo Parente Lima2010-08-191-5/+16
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Use .pyd to python modules on windows.Renato Filho2010-08-192-0/+6
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed tests to run on windows.Renato Filho2010-08-192-30/+27
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed libsample export to avoid warnings on windows.Renato Filho2010-08-191-3/+3
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* fixed tests exported symbols.Renato Filho2010-08-1841-186/+184
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Create unit test to function with ambiguous signature in Python side.Renato Filho2010-08-166-1/+124
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unit test to operator().Renato Filho2010-08-114-0/+56
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Modified one more test to use assert_(not a == b) instead of assertNotEqualKalev Lember2010-08-041-1/+1
| | | | | | | | | Similar to 83c272, avoid using assertNotEqual which in Python 2.7 uses the != operator; that operator however is intentionally left undefined in Point class. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Modified tests using Point and assertNotEqual to use assert_(not a == b).Marcelo Lira2010-08-032-2/+2
| | | | | | | | This is due to Point intentionally not having a != operator and assertNotEqual implementation using the __ne__ operator on Python 2.7. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Revert "Created operator != or __ne__ in Point class, to avoid tests errors ↵Marcelo Lira2010-08-032-7/+0
| | | | | | | | | | | | with Python 2.7." This reverts commit ce4b5f535f43bd2ff800b709f88c6f9c5be68003. The unittest.assertNotEqual method has changed in Python 2.7 to use the "!=" operator. The Point class was intentionally left without a "!=" to test if Shiboken would raise a NotImplementedError exception. This commit will be reverted and the tests using Point and assertNotEqual must be changed to avoid the possible usage of "!=".
* Added custom code to VoidHolder.gimmeMeSomeVoidPointer().Marcelo Lira2010-08-031-1/+11
| | | | | | | | The said method retuns a void pointer never before seen on the Python side. The code injection puts the void pointer in a BaseWrapper object. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added a case for VoidHolder test that uses a native Python object.Marcelo Lira2010-08-031-1/+9
| | | | | The test stores a native Python object as a void pointer in C++ and takes it back.
* Created operator != or __ne__ in Point class, to avoid tests errors with ↵Renato Filho2010-08-022-0/+7
| | | | | | | Python 2.7. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Create a new copy from object when convert from PyObject to const ref.Renato Filho2010-07-271-9/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* BindingManager destructor now asserts if the wrapper map is empty.Marcelo Lira2010-07-271-0/+13
| | | | | | | | | | | | | The assertion is only used in debug mode. The duck punching test was altered to avoid failing when run with debug. Check the duck punching test file for a better explanation. Also added a debug helper method "showWrapperMap" to the binding manager, it shows the contents of the C pointer to Python wrapper mapping. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix char* converterRenato Filho2010-07-275-30/+36
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed inject code to works on windows.Renato Filho2010-07-191-1/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use correct python library in debug mode.Renato Filho2010-07-192-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use 60 secs to default test timeout.Renato Filho2010-07-131-1/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed wrong overload decisor generated code.Marcelo Lira2010-07-133-0/+86
| | | | | | | | | The decisor must check for the number of arguments before calling Converter::isConvertible method, to avoid passing NULL pointers to it. Unit tests were added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixes bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel"Hugo Parente Lima2010-07-062-0/+45
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* 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>