aboutsummaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Implement getTypeIndex function for types no generated types and ↵Hugo Parente Lima2012-03-091-6/+4
| | | | | | | | primitive types." This commit broke the macosx build of PySide. This reverts commit e9758a01f15bc53de8e03b77ec8beb5673b1b1af.
* Implement getTypeIndex function for types no generated types and primitive ↵Hugo Parente Lima2012-03-091-4/+6
| | | | | | | types. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added default constructor option for value types.Marcelo Lira2012-03-091-0/+1
| | | | | | | | The unit test is in place and the 'value-type' tag documentation was update with information about the 'default-constructor' attribute. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a test for operator methods removal.Marcelo Lira2012-03-091-0/+1
|
* Fixed TypeEntry::isCppPrimitive() to process typedefs and "long long" type.Marcelo Lira2012-03-091-0/+1
| | | | And added an unit test.
* Added revision attribute to type entries tags and flags-revision to ↵Hugo Parente Lima2012-03-091-0/+1
| | | | | | | enum-type tag. These attributes will be useful to separate the wrapped API in revisions and ease the task of producing ABI compatible bindings.
* Added support for module extra includes.Marcelo Lira2012-03-091-0/+1
| | | | | | | Unit tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a test for dropped type system entries.Marcelo Lira2012-03-091-0/+1
| | | | Also updated the TestUtil class to deal with dropped entries.
* Un-hardcode test resources pathsb-0.9.3Lauro Neto2012-03-091-0/+4
| | | | | | | | | | | | | | | Instead of hardcoding (through the __FILE__ macro) use the current application directory to find the resources. The previous scheme didn't allow running the tests when the source code isn't available. List of resources: - a.xml -> testmodifydocumentation - utf8code.txt -> testcodeinjection Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Make installed tests executableLauro Neto2012-03-091-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Add option to install the tests binaries.Lauro Neto2012-03-091-0/+3
| | | | | Reviewer: Hugo Lima <hugo.lima@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Added unit test to field removal.Marcelo Lira2012-03-091-0/+1
|
* Argument types that are arrays with specified sizes are correctly recognized.Marcelo Lira2012-03-091-0/+1
| | | | | | | | | | | The AbstractMetaBuilder::translateType method now tries to figure out properly the size of array argument types specified with enum items instead of literal numbers. Test cases were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Updates tests to use nesting of type declarations.Marcelo Lira2012-03-091-4/+6
| | | | | | | Also added a new cases to test the nesting of type tags a bit more. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Created function to discovery when a class implement a container type.Renato Filho2012-03-091-0/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Make libxml2 and libxslt optional dependencies.Hugo Parente Lima2012-03-091-1/+3
|
* Adds test case to namespace members, namely enums and functions.Marcelo Lira2012-03-091-0/+1
|
* Added test for type resolution order.Marcelo Lira2012-03-091-2/+3
| | | | | | Methods or functions signatures using any type from the library being wrapped must be processed after all the library types or else the function/method will be rejected.
* Added the "default-constructor" attribute to the "primitive-type" tag.Marcelo Lira2012-03-091-0/+1
| | | | | | | | | The default-constructor attribute specifies a way to build an instance of a class declared as primitive type using default arguments. Documentation and a test were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for template instanciations using enum values, all under a nice ↵Hugo Parente Lima2012-03-091-0/+1
| | | | | | | namespace. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* Adding tests for 'void' argument in functionsLauro Neto2012-03-091-0/+1
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2012-03-091-0/+1
|\
| * Update class info once a default ctor is added.Luciano Wolf2012-03-091-0/+1
| |
* | Added the "function" tag to ApiExtractor.Hugo Parente Lima2012-03-091-0/+1
|/ | | | | | | | | | | | | | | This change the behaviour of ApiExtractor regarding to global functions. All global function you want to be exported to python *need* to be especified in the type system with the function tag, otherwise they wont be exported at all. The syntax for this new tag is: <function signature="..." /> This is just the initial work for this tag, it is missign support for: - Function modifications. - Add a function overload with add-function tag.
* Meta type minimal signature should place reference symbol after pointer symbols.Marcelo Lira2012-03-091-0/+1
| | | | | | | | | | The minimalSignature method was placing '&' before '*'. For example, the signature "foo(Bar*&)" was becoming "foo(Bar&*)". An unit test was added to verify AbstractMetaType::minimalSignature(). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
* Remove Boost::graph dependence from ApiExtractor by using our own codeHugo Lima2010-03-031-0/+1
| | | | for graph topological sort.
* Added method AbstractMetaBuilder::fixReturnTypeOfConversionOperator(func).Marcelo Lira2010-02-261-0/+1
| | | | | | | | | | The new method fixes the return type of conversion operators: they should return the target of the conversion as type and not the type of its owner class. fixReturnTypeOfConversionOperator is used in traverseFunctions. An unit test was added for this case. Note that this behaviour could be fixed in the parser. I dare you!
* Reactivated 'reference-count' tag.Marcelo Lira2010-02-091-7/+8
| | | | | | | | The type system tag '<reference-count action="Add|Remove|..."/>' used on argument modification was uncommented, documentation was written and a unit test was created for it. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Fix AbstractMetaFunction::implicitConversions.Hugo Lima2010-02-081-0/+1
| | | | | | | | | - Public ctors added by the user with 1 value-type parameter are always added to the implicity conversion list. - If the ctor visibility of an function was modified from public to private, the function isn't added to the result. Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Code injection from external files are always read using UTF-8.Hugo Lima2010-02-081-0/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added tests for ownership modification.Hugo Lima2010-02-021-0/+1
|
* Allow a class to multiple inherit from various object-types.Hugo Lima2010-02-011-0/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* When a constructor able to trigger implicity conversions is removedHugo Lima2010-01-201-0/+1
| | | | | | it should not appear in the implicity conversion list. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added methods to set and check for protected and virtual destructorMarcelo Lira2009-11-241-0/+1
| | | | on AbstractMetaClass objects. Also added tests for this.
* - All reverse operators are now properly tagged as "reverse operator".Hugo Lima2009-11-091-0/+1
| | | | | | | - Reverse operators aren't tagged as static methods anymore. - Reverse operators now have just one parameter, the one that matters. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* conversion-rule tag now works inside value-type and object-type tags.Marcelo Lira2009-10-261-0/+1
| | | | | To access the conversion rule, use the new method TypeEntry->conversionRule NOTE: this commit is a modification of code produced by Hugo Parente.
* Implemented a signature parser for the AddedFunction class.Hugo Lima2009-10-211-0/+1
|
* Unit test to catch the bug#38.Hugo Lima2009-09-241-0/+1
|
* Added more tests for AbstractMetaClass and AbstractMetaEnumHugo Lima2009-09-101-5/+11
|
* The genesis...Hugo Lima2009-08-171-0/+6