]> git.draconx.ca Git - gentoo-fixes.git/blob - dev-python/pygobject/files/pygobject-2.28.6-tests-no-introspection.patch
Resurrect dev-python/pygtk.
[gentoo-fixes.git] / dev-python / pygobject / files / pygobject-2.28.6-tests-no-introspection.patch
1 From 9c8ec7495e9e73855dc284be293828572f408c92 Mon Sep 17 00:00:00 2001
2 From: Alexandre Rostovtsev <tetromino@gentoo.org>
3 Date: Tue, 25 Dec 2012 00:26:05 -0500
4 Subject: [PATCH] Do not run introspection tests when building with
5  introspection disabled
6
7 ---
8  tests/Makefile.am | 7 ++++++-
9  1 file changed, 6 insertions(+), 1 deletion(-)
10
11 diff --git a/tests/Makefile.am b/tests/Makefile.am
12 index e60bad5..3a0d1b7 100644
13 --- a/tests/Makefile.am
14 +++ b/tests/Makefile.am
15 @@ -120,9 +120,14 @@ RUN_TESTS_ENV_VARS= \
16  RUN_TESTS_LAUNCH=$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py
17  
18  # run tests in separately to avoid loading static and introspection bindings in the same process
19 -check-local: $(check_LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
20 +if ENABLE_INTROSPECTION
21 +CHECK_LOCAL_INTROSPECTION_REQ = Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
22 +endif
23 +check-local: $(check_LTLIBRARIES:.la=.so) $(CHECK_LOCAL_INTROSPECTION_REQ)
24         TEST_FILES="$(TEST_FILES_STATIC)" $(RUN_TESTS_LAUNCH)
25 +if ENABLE_INTROSPECTION
26         TEST_FILES="$(TEST_FILES_GI)" $(RUN_TESTS_LAUNCH)
27 +endif
28  if BUILD_GIO
29         TEST_FILES="$(TEST_FILES_GIO)" $(RUN_TESTS_LAUNCH)
30  endif 
31 -- 
32 1.8.0.2
33