GNOME Bugzilla – Bug 642624
do not run introspection tests if introspection was not enabled
Last modified: 2012-02-10 08:12:58 UTC
Created attachment 181175 [details] [review] Patch against master to diable introspection tests when instrospection support ain't built. If you do "./configure --disable-introspection && make check" then the testsuite will fail because it still tries to run the tests that needs introspection. This holds true for both master and pygobject-2-28. This is a upstreaming of gentoo bug #344341
Comment on attachment 181175 [details] [review] Patch against master to diable introspection tests when instrospection support ain't built. >From d492fdba302ab9b7eeca0eb8944b82185a997214 Mon Sep 17 00:00:00 2001 >From: Peter Hjalmarsson <xake@rymdraket.net> >Date: Thu, 17 Feb 2011 22:29:41 +0100 >Subject: [PATCH] Do not run introspection-tests if introspection was disabled > >Without this tests fails for people passing --disable-introspection >to configure. > >Thanks Dustin Polke fo the tip. >--- > tests/Makefile.am | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/tests/Makefile.am b/tests/Makefile.am >index c49a768..ecc0188 100644 >--- a/tests/Makefile.am >+++ b/tests/Makefile.am >@@ -111,7 +111,7 @@ RUN_TESTS_ENV_VARS= \ > XDG_DATA_DIRS=$$XDG_DATA_DIRS:/usr/share > RUN_TESTS_LAUNCH=$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py > >-check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled >+check-local: $(LTLIBRARIES:.la=.so) @ENABLE_INTROSPECTION_TRUE@Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled How does this work? It looks like it just appends the value of @ENABLE_INTROSPECTION_TRUE@ to Regress-1.0.typelib. We usually have a conditional that sets a variable (like we do for $(TEST_FILES_*). > TEST_FILES="$(TEST_FILES_STATIC)" $(RUN_TESTS_LAUNCH) > TEST_FILES="$(TEST_FILES_GI)" $(RUN_TESTS_LAUNCH) > >-- >1.7.4.1 >
Peter, can you report back?
Peter, ping.
pygobject 3.0 and later are GI only, so this does not make sense for these versions any more, closing. Thanks!