r35475 - in /desktop/experimental/gobject-introspection/debian: changelog tests/build
mpitt at users.alioth.debian.org
mpitt at users.alioth.debian.org
Wed Jun 27 10:28:44 UTC 2012
Author: mpitt
Date: Wed Jun 27 10:28:43 2012
New Revision: 35475
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=35475
Log:
debian/tests/build: Also check for GIR dependencies of gir-gtk-3.0
Modified:
desktop/experimental/gobject-introspection/debian/changelog
desktop/experimental/gobject-introspection/debian/tests/build
Modified: desktop/experimental/gobject-introspection/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/changelog?rev=35475&op=diff
==============================================================================
--- desktop/experimental/gobject-introspection/debian/changelog [utf-8] (original)
+++ desktop/experimental/gobject-introspection/debian/changelog [utf-8] Wed Jun 27 10:28:43 2012
@@ -2,7 +2,8 @@
* Add debian/tests/build: autopkgtest check: Build and run a program against
libgirepository1.0-dev, to verify that the headers and pkg-config file are
- installed correctly.
+ installed correctly, and that gir1.2-gtk-3.0 depends on the GIR
+ dependencies.
* Add debian/tests/control: DEP-8 autopkgtest control file. Add XS-Testsuite
header to debian/control.in.
Modified: desktop/experimental/gobject-introspection/debian/tests/build
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gobject-introspection/debian/tests/build?rev=35475&op=diff
==============================================================================
--- desktop/experimental/gobject-introspection/debian/tests/build [utf-8] (original)
+++ desktop/experimental/gobject-introspection/debian/tests/build [utf-8] Wed Jun 27 10:28:43 2012
@@ -17,20 +17,30 @@
GIRepository *repository;
GIBaseInfo *info;
GList *versions, *i;
- int ret = 1;
+ gboolean found;
g_type_init();
repository = g_irepository_get_default ();
- g_return_val_if_fail(repository != NULL, 1);
+ g_assert(repository != NULL);
/* we depend on gir-gtk-3.0, so this should be present */
+ found = FALSE;
versions = g_irepository_enumerate_versions (repository, "Gtk");
for (i = g_list_first (versions); i != NULL; i = g_list_next (i))
if (strcmp ((gchar*) i->data, "3.0") == 0)
- ret = 0;
+ found = TRUE;
+ g_assert (found);
- return ret;
+ /* gir-gtk-3.0 should pull in dependencies */
+ found = FALSE;
+ versions = g_irepository_enumerate_versions (repository, "GLib");
+ for (i = g_list_first (versions); i != NULL; i = g_list_next (i))
+ if (strcmp ((gchar*) i->data, "2.0") == 0)
+ found = TRUE;
+ g_assert (found);
+
+ return 0;
}
EOF
More information about the pkg-gnome-commits
mailing list