summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add a floating alias for noneJohan Dahlin2011-11-253-1/+21
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=657202
* Add tests for chaining up from vfuncs to ancestorsTomeu Vizoso2011-10-292-0/+50
|
* fixes and more tests for marshalling of arrays of gvariantsMikkel Kamstrup Erlandsen2011-10-252-4/+67
| | | | | | | | | | | | | | Fix return type annotation for gi_marshalling_tests_array_gvariant_in() Add function variations of gi_marshalling_tests_array_gvariant_i() with different transfer modes. Make gi_marshalling_tests_array_gvariant_none_in() actually respect the transfer none annotation on the return value. https://bugzilla.gnome.org/show_bug.cgi?id=638915 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
* Add regress test method for a (skip) return value without out argumentsMartin Pitt2011-10-213-0/+44
| | | | | This is a requisite for writing a pygobject test case for https://bugzilla.gnome.org/show_bug.cgi?id=662383
* tests: Also dist headeronly.hColin Walters2011-10-201-0/+2
| | | | Spotted by Rico Tzschichholz
* tests: Actually add headeronly.hColin Walters2011-10-201-0/+9
|
* scanner: Support --header-only flagColin Walters2011-10-191-1/+4
| | | | | This is useful for someone who just wants a set of constants from a .h file accessible by introspection.
* barapp: Don't call g_thread_init()Colin Walters2011-10-181-1/+0
| | | | | | | We don't need to, and if we wanted to, we have to link against -lgthread. Spotted by Rico Tzschichholz
* add test for checking refcounting of signals with transfer none object paramsJohn (J5) Palmieri2011-10-143-0/+50
|
* scanner: allow GObject.Object as a superclass return typeDan Winship2011-10-133-1/+19
| | | | | | | 6172c268 made the scanner think GObject* wasn't a superclass of its subclasses. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=661677
* Revert "gitypelibtest: Remove test on TestStructE size"Colin Walters2011-10-031-0/+13
| | | | | | | | This reverts commit e17c09749c23edbd928db19a8162484ddb6299b8. We actually want the test for sizeof(GValue). https://bugzilla.gnome.org/show_bug.cgi?id=660338
* gitypelibtest: Remove test on TestStructE sizeColin Walters2011-09-301-27/+0
| | | | | | | It's redundant since we're already checking that it's equal to GValue, and a problem is that padding may break exact assertions on the size. https://bugzilla.gnome.org/show_bug.cgi?id=660338
* Bug 660338: Account for padding in struct size checkMartin Pitt2011-09-291-3/+4
| | | | | | | On some platform like armel or powerpc the compiler adds extra padding to structs. Make the test_size_of_struct_with_array_of_anon_unions() check more liberal by only requiring that the size of the struct is at least as big as expected. Also use g_assert_cmpuint() to make it easier to see the actual diff.
* repository: Fix g_irepository_get_c_prefix()Colin Walters2011-09-211-0/+5
| | | | | | It was returning the wrong data. https://bugzilla.gnome.org/show_bug.cgi?id=659749
* add tests for arrays of simple structs and arrays of gvalueJohn (J5) Palmieri2011-09-152-0/+33
| | | | | | * for now we assume simple struct arrays and gvalue arrays are flat until gi gets support for annotating the level of indirection of an array.
* Add constant value annotationJohan Dahlin2011-09-144-8/+54
| | | | | Add an annotation tag "Value:" which can be used on constants to override the value.
* tests: Add gir/ to toplevel typelib pathColin Walters2011-09-131-1/+1
| | | | Fixes the test when running uninstalled.
* Fix g_type_info_is_pointer() for overriden types of arguments.Pavel Holejsovsky2011-09-121-0/+39
| | | | | | | | | Algorithm which detects whether argument type is pointer checks for trailing '*' characters in c:type .gir elements. This failed if ctype is either 'gpointer' or 'gconstpointer'. Add specific check for gpointer/gconstpointer types when deducing pointerness of the type. https://bugzilla.gnome.org/show_bug.cgi?id=658848
* scanner: correctly handle structs with arrays of anon unionsTorsten Schönfeld2011-09-114-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies mainly to GValue, which is defined as: struct _GValue { /*< private >*/ GType g_type; /* public for GTypeValueTable methods */ union { gint v_int; guint v_uint; glong v_long; gulong v_ulong; gint64 v_int64; guint64 v_uint64; gfloat v_float; gdouble v_double; gpointer v_pointer; } data[2]; }; Previously, the scanner did not understand the array of unions. This resulted in g_struct_info_get_size returning an incorrect size for GValue (at least on 32bit systems). Fix this by making up a separate union declaration for the GIR that can be referenced by the array. https://bugzilla.gnome.org/show_bug.cgi?id=657040
* scanner: Add "notify" signal to GObjectColin Walters2011-09-091-0/+9
| | | | | For gjs we want to switch to using introspection data for signals, and the "notify" signal being missing from GObject was a problem.
* Windows port: disable barapp test program on WindowsDieter Verfaillie2011-09-071-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=620566
* Windows port: set CAIRO_LIBS in LIBADD, not LDFLAGSDieter Verfaillie2011-09-071-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=620566
* regress: Fix wrong type of variable in regression testVincent Untz2011-09-021-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658075
* gimarshallingtests.h: Remove unimplemented functionsGOBJECT_INTROSPECTION_1_29_17Colin Walters2011-08-291-4/+0
| | | | The new missing-element-type warning triggers for these.
* scanner: Don't try to copy c:type if we're parsing (element-type)Colin Walters2011-08-293-52/+52
| | | | | | | | | | | | | Commit 81abc2eb63317003a11d1484e84698a37e8ec035 tries harder to keep the c:type if it was overriden by a (type) annotation. However, the _resolve() function was also called for (element-type), which had undesirable effects - we'd copy the container c:type to the element type. Fix this by splitting out the c:type preservation to only happen when processing toplevel types. https://bugzilla.gnome.org/show_bug.cgi?id=656931
* Fix warning for missing (element-type)Colin Walters2011-08-293-0/+13
| | | | | | While looking for a different bug, I noticed that the introspectable pass lists was missing GSList. And the warning was never set up to fire anyways. Fix it and add a test.
* add regression test for skipped #defineXavier Claessens2011-08-262-0/+8
|
* Add a regress test for a method returning GPtrArrayXavier Claessens2011-08-263-0/+29
|
* add back the fixed_array_out_struct testJohn (J5) Palmieri2011-08-231-0/+22
|
* tests: build tests only on make checkAlexandre Rostovtsev2011-08-233-15/+9
| | | | | | | | | | | | Use automake's check_ prefix and avoid putting anything nontrivial in BUILT_SOURCES so that tests are build only on make check. The dummy -rpath in AM_LDFLAGS in tests/scanner/Makefile.am is needed to force libtool to build shared libraries for check_LTLIBRARIESS targets (automake builds check_LTLIBRARIES as static by default); see http://lists.gnu.org/archive/html/automake/2005-10/msg00107.html https://bugzilla.gnome.org/show_bug.cgi?id=657066
* doctool: Disable tests for nowColin Walters2011-08-231-19/+21
| | | | | They don't work for multiple reasons, and there is still debate about how the formatting etc. will work.
* Add tests for newly added warningsGiovanni Campagna2011-08-181-1/+27
| | | | | g-ir-scanner now warns for invalid (element-type) annotations in GPtrArray and in GByteArray. Test that.
* tests/doctool: Remove MALLARD_DIRS from BUILT_SOURCESTomeu Vizoso2011-08-181-1/+0
| | | | so we don't generate the test docs when doing a plain build
* Disallow non byte types for GByteArraysGiovanni Campagna2011-08-181-1/+1
| | | | | | | | | Similarly to GPtrArrays, GByteArrays can only contain bytes. Emit a warning if an inconsistent (element-type) is placed, and ensure that the default is guint8 if nothing is added. This way bindings can support GByteArrays without special casing them. https://bugzilla.gnome.org/show_bug.cgi?id=652753
* Forbid GPtrArrays holding non-pointer typesGiovanni Campagna2011-08-182-35/+0
| | | | | | | | | It should be safe for bindings to assume that GPtrArrays hold only pointers (or values as big as it), so there is no need to go through hoops for converting smaller integers when marshalling. Libraries that need arrays of integers should use GArray. https://bugzilla.gnome.org/show_bug.cgi?id=652753
* Allow enums and bitfields to have static methodsTorsten Schönfeld2011-08-163-6/+102
| | | | | | | | | | | | | This uses the same backcompat machinery that was introduced for static methods for non-class types, so this change does not break users of the existing presentations. New libgirepository API: g_enum_info_get_n_methods g_enum_info_get_method https://bugzilla.gnome.org/show_bug.cgi?id=656499
* tests/doctools: Properly clean the temporary mallard filesTomeu Vizoso2011-08-151-1/+4
|
* tests/doctool: Update the -expected dirsTomeu Vizoso2011-08-1516-16/+16
|
* tests/doctool: Make sure we regenerate the mallard code when testingTomeu Vizoso2011-08-151-2/+2
|
* tests/doctool: Better way of copying the .girTomeu Vizoso2011-08-151-6/+6
|
* tests/doctool: Compare -expected directories instead of single filesTomeu Vizoso2011-08-15415-15/+5023
|
* tests/doctool: Switch to test the mallard formatterTomeu Vizoso2011-08-155-3660/+52
|
* tests/doctool: Add the right -expected files to distTomeu Vizoso2011-08-151-1/+1
|
* tests/doctool: Update expected filesTomeu Vizoso2011-08-152-77/+161
|
* g-ir-doc-tool: Use namespace.class for PythonTomeu Vizoso2011-08-151-26/+26
|
* g-ir-doc-tool: Add -expected test for Python docbookTomeu Vizoso2011-08-153-6/+1793
|
* Regress-1.0-expected: Update for previous changeColin Walters2011-08-151-0/+40
|
* annotationparser: Don't eat lines that look like parameters outside param listColin Walters2011-08-142-0/+39
| | | | | | | | | If we're done parsing parameters, previously we would simply eat lines that looked like @foo: blah blah Example is in gtkcssprovider.c. https://bugzilla.gnome.org/show_bug.cgi?id=656504
* Merge remote-tracking branch 'origin/gir-docbook'Johan Dahlin2011-08-133-1/+1802
|\ | | | | | | | | | | Conflicts: .gitignore tests/scanner/Regress-1.0-expected.gir
| * tests/doctool: Updated -expected to match the code in the repoTomeu Vizoso2011-08-131-62/+6
| |