aboutsummaryrefslogtreecommitdiffstats
path: root/tests/minimalbinding
Commit message (Collapse)AuthorAgeFilesLines
* Improve dependencies for testsMatthew Woehlke2013-07-301-5/+2
| | | | | | | | | | | | | | | | | | | | | Add the global header and typesystem XML, and shiboken itself, as dependencies to running Shiboken for generating the wrapped code used in the unit tests. This gives a better example in case of users looking at this code for how to do things in their own projects, and also makes test writing easier by removing the need to do a clean build or touch files to force the wrapping code to be recreated when modifying the test code or the generator. Change command invocation to use shiboken as a target name (CMake will recognize it as a target and use the correct path automatically), and remove the now redundant dependency of the wrapping libraries on the same. (This is superfluous both because using shiboken as a target will cause CMake to add an implicit dependency on it for users of the generated files, but also because it isn't really needed; the generate command having it as a dependency covers needing it built first, and is what we really care about as far as rebuilding anything if it changes.) Change-Id: If5cdf2e98602e500b49ba7b000e4e30e77e1a136 Reviewed-by: John Ehresman <jpe@wingware.com>
* Fixing shiboken test for minimal binding testStefan Landvogt2013-06-281-2/+8
| | | | | | | Don't execute typedef_test.py, when NumPy is not installed Change-Id: I452944822177f616ea640ed0ee005d0436ab518b Reviewed-by: John Ehresman <jpe@wingware.com>
* Replaced Nokia copyrights in headerTeemu Kaukoranta2013-05-285-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Replaced old Nokia copyrights with Digia copyrights. Removed "All rights reserved" strings without leading copyrights were removed (for example, 'Copyright SomeCompany, all rights reserved remain untouched). Did NOT touch contact details, will change them later. Excluded folders that have '3rdparty' in path. Used command: find . -path '*/3rdparty/*' -prune -o -exec grep -ilI -E '.*Copyright.*Nokia.*' {} \; | tee >(xargs sed -i -r '1,10 s/([ \t#*]*)(.*Copyright.*Nokia.*)/ \1Copyright \(C\) 2013 Digia Plc and\/or its subsidiary\(-ies\)\./I') >(xargs sed -i -r '1,10 s/(^[ \t#*]*)(all rights reserved.*)/\1/I') This excludes binary files and retains whitespace and #* characters in the beginning of the edited lines. Change-Id: I0d49f991c3dbd45d804843f185714e8681bc6c51 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
* Update vector conversionJohn Cummings2012-06-141-8/+8
| | | | | | | Incorporate Hugo's comments from change Id2ea1a5f Change-Id: I5f0c93b7036f5d2908cd2ee2038eb570f9889b58 Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Add typedef examples to minimalJohn Cummings2012-06-144-0/+148
| | | | | | | | | Add an example for a typedef of a template Add an example for a typedef of a typedef Add a python unit test for these examples Change-Id: Id2ea1a5f1e4b3d865c081625f2d5b7ed4c38bbdb Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* --generator-set command line switch is working again.Hugo Parente Lima2012-03-091-1/+1
| | | | | | QtDocGenerator also working again and the directory layout was changed a bit. Reviewer: Trust me
* Merge GeneratorRunner inside Shiboken.Hugo Parente Lima2012-03-091-2/+2
| | | | | | | | | | | | | | | | Conflicts: CMakeLists.txt data/CMakeLists.txt doc/CMakeLists.txt doc/_templates/index.html doc/_templates/layout.html doc/_themes/pysidedocs/static/pysidedocs.css doc/commandlineoptions.rst doc/conf.py.in doc/contents.rst doc/images/bindinggen-development.png doc/images/boostqtarch.png tests/CMakeLists.txt
* Removed the last pieces of code generation that uses the old template ↵Marcelo Lira2012-03-083-16/+2
| | | | Converters.
* Fix crash in PySequence converters.Hugo Parente Lima2012-03-081-2/+3
|
* New conversions for containers.Marcelo Lira2012-03-081-1/+20
|
* New converters for user added primitive types.Marcelo Lira2012-03-081-2/+10
| | | | Win32 fix for zero length type converter array.
* Added an enum test to libminimal.Marcelo Lira2012-03-082-1/+8
|
* Fixed tests to work with python3.x and python2.xRenato Filho2012-03-081-15/+20
|
* Moved writeMinimalConstructorCallArguments() functionality to Generator Runner.Marcelo Lira2012-03-081-1/+1
| | | | | Updated tests' type systems to reflect the behaviour of Generator::minimalConstructor().
* 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>
* Added the basic cases for container conversions.Marcelo Lira2012-03-085-0/+325
| | | | | | | | | | | | | | | 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-085-0/+78
| | | | | | in Python. Unit tests were also added.
* Expanded the minimal example and tests to better deal with virtual methods.Marcelo Lira2012-03-082-5/+110
|
* Added a new test binding called 'minimal'.Marcelo Lira2012-03-086-0/+167
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>