1 |
eva 12/10/30 08:22:06 |
2 |
|
3 |
Added: pygobject-3.4.1.1-make_check.patch |
4 |
Log: |
5 |
Version bump. |
6 |
|
7 |
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key C6085806) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pygobject-3.4.1.1-make_check.patch |
16 |
=================================================================== |
17 |
From d0885d5757f02f53dbc8036054a1ced7f727eb08 Mon Sep 17 00:00:00 2001 |
18 |
From: Gilles Dartiguelongue <eva@g.o> |
19 |
Date: Fri, 5 Nov 2010 23:39:08 +0100 |
20 |
Subject: [PATCH] Do not build tests unless needed |
21 |
|
22 |
[Alexandre Rostovtsev <tetromino@×××××.com>: port to 2.90.1] |
23 |
--- |
24 |
tests/Makefile.am | 12 ++++++------ |
25 |
tests/runtests.py | 3 +++ |
26 |
2 files changed, 9 insertions(+), 6 deletions(-) |
27 |
|
28 |
diff --git a/tests/Makefile.am b/tests/Makefile.am |
29 |
index 7a619bf..a3cbf57 100644 |
30 |
--- a/tests/Makefile.am |
31 |
+++ b/tests/Makefile.am |
32 |
@@ -1,5 +1,5 @@ |
33 |
CLEANFILES = |
34 |
-noinst_LTLIBRARIES = libgimarshallingtests.la |
35 |
+check_LTLIBRARIES = libgimarshallingtests.la |
36 |
test_typelibs = GIMarshallingTests-1.0.typelib |
37 |
|
38 |
nodist_libgimarshallingtests_la_SOURCES = $(GI_DATADIR)/tests/gimarshallingtests.c $(GI_DATADIR)/tests/gimarshallingtests.h |
39 |
@@ -23,7 +23,7 @@ GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir Makefile |
40 |
|
41 |
# regress.c needs cairo |
42 |
if ENABLE_CAIRO |
43 |
-noinst_LTLIBRARIES += libregress.la |
44 |
+check_LTLIBRARIES += libregress.la |
45 |
test_typelibs += Regress-1.0.typelib |
46 |
nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h |
47 |
libregress_la_CFLAGS = $(GIO_CFLAGS) $(CAIRO_CFLAGS) |
48 |
@@ -52,7 +52,7 @@ gschemas.compiled: org.gnome.test.gschema.xml |
49 |
|
50 |
CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib gschemas.compiled |
51 |
|
52 |
-noinst_LTLIBRARIES += testhelper.la |
53 |
+check_LTLIBRARIES += testhelper.la |
54 |
|
55 |
testhelper_la_CFLAGS = -I$(top_srcdir)/gi/_gobject -I$(top_srcdir)/gi/_glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS) |
56 |
testhelper_la_LDFLAGS = -module -avoid-version |
57 |
@@ -72,7 +72,7 @@ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES) |
58 |
test -L $@ || $(LN_S) .libs/$@ $@ |
59 |
|
60 |
|
61 |
-all: $(LTLIBRARIES:.la=.so) |
62 |
+all: $(check_LTLIBRARIES:.la=.so) |
63 |
|
64 |
EXTRA_DIST = \ |
65 |
compathelper.py \ |
66 |
@@ -112,7 +112,7 @@ EXTRA_DIST = \ |
67 |
$(NULL) |
68 |
|
69 |
clean-local: |
70 |
- rm -f $(LTLIBRARIES:.la=.so) file.txt~ |
71 |
+ rm -f $(check_LTLIBRARIES:.la=.so) file.txt~ |
72 |
|
73 |
DBUS_LAUNCH=$(shell which dbus-launch) |
74 |
RUN_TESTS_ENV_VARS= \ |
75 |
@@ -123,7 +123,7 @@ RUN_TESTS_ENV_VARS= \ |
76 |
MALLOC_PERTURB_=85 \ |
77 |
TESTS_BUILDDIR=$(builddir) |
78 |
|
79 |
-check-local: $(LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled |
80 |
+check-local: $(check_LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled |
81 |
@echo " CHECK Pyflakes" |
82 |
@if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi |
83 |
@echo " CHECK PEP8" |
84 |
diff --git a/tests/runtests.py b/tests/runtests.py |
85 |
index c518fcc..35bb5c4 100755 |
86 |
--- a/tests/runtests.py |
87 |
+++ b/tests/runtests.py |
88 |
@@ -34,6 +34,9 @@ if sys.version_info[:2] == (2, 6): |
89 |
unittest.TestCase.assertGreater = assertGreater |
90 |
unittest.TestCase.assertIsInstance = assertIsInstance |
91 |
|
92 |
+# Some tests fail with translated messages. |
93 |
+os.environ["LC_ALL"] = "C" |
94 |
+ |
95 |
if '--help' in sys.argv: |
96 |
print("Usage: ./runtests.py <testfiles>") |
97 |
sys.exit(0) |
98 |
-- |
99 |
1.7.12.4 |