1 |
pacho 13/03/28 16:57:28 |
2 |
|
3 |
Added: pygobject-3.7.90-make_check.patch |
4 |
Log: |
5 |
Version bump for Gnome 3.8 |
6 |
|
7 |
(Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/pygobject/files/pygobject-3.7.90-make_check.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.7.90-make_check.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.7.90-make_check.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pygobject-3.7.90-make_check.patch |
16 |
=================================================================== |
17 |
From 319d6d68a398d326ef95e39f494da7c514facf81 Mon Sep 17 00:00:00 2001 |
18 |
From: Sobhan Mohammadpour <sobhanmohammadpour1@×××××.fr> |
19 |
Date: Fri, 8 Mar 2013 08:25:58 +0330 |
20 |
Subject: [PATCH] pygobject-3.7.90-make check |
21 |
|
22 |
originaly by [Alexandre Rostovtsev <tetromino@×××××.com> |
23 |
don't build tests unless it's needed |
24 |
|
25 |
--- |
26 |
tests/Makefile.am | 12 ++++++------ |
27 |
tests/runtests.py | 3 +++ |
28 |
2 files changed, 9 insertions(+), 6 deletions(-) |
29 |
|
30 |
diff --git a/tests/Makefile.am b/tests/Makefile.am |
31 |
index 287542d..2cc0da9 100644 |
32 |
--- a/tests/Makefile.am |
33 |
+++ b/tests/Makefile.am |
34 |
@@ -1,5 +1,5 @@ |
35 |
CLEANFILES = |
36 |
-noinst_LTLIBRARIES = libgimarshallingtests.la |
37 |
+check_LTLIBRARIES = libgimarshallingtests.la |
38 |
test_typelibs = GIMarshallingTests-1.0.typelib |
39 |
|
40 |
nodist_libgimarshallingtests_la_SOURCES = $(GI_DATADIR)/tests/gimarshallingtests.c $(GI_DATADIR)/tests/gimarshallingtests.h |
41 |
@@ -23,7 +23,7 @@ GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir Makefile |
42 |
|
43 |
# regress.c needs cairo |
44 |
if ENABLE_CAIRO |
45 |
-noinst_LTLIBRARIES += libregress.la |
46 |
+check_LTLIBRARIES += libregress.la |
47 |
test_typelibs += Regress-1.0.typelib |
48 |
nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h |
49 |
libregress_la_CFLAGS = $(GIO_CFLAGS) $(CAIRO_CFLAGS) |
50 |
@@ -52,7 +52,7 @@ gschemas.compiled: org.gnome.test.gschema.xml |
51 |
|
52 |
CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib gschemas.compiled |
53 |
|
54 |
-noinst_LTLIBRARIES += testhelper.la |
55 |
+check_LTLIBRARIES += testhelper.la |
56 |
|
57 |
testhelper_la_CFLAGS = -I$(top_srcdir)/gi/_gobject -I$(top_srcdir)/gi/_glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS) |
58 |
testhelper_la_LDFLAGS = -module -avoid-version |
59 |
@@ -72,7 +72,7 @@ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES) |
60 |
test -L $@ || $(LN_S) .libs/$@ $@ |
61 |
|
62 |
|
63 |
-all: $(LTLIBRARIES:.la=.so) |
64 |
+all: $(check_LTLIBRARIES:.la=.so) |
65 |
|
66 |
EXTRA_DIST = \ |
67 |
compathelper.py \ |
68 |
@@ -116,7 +116,7 @@ EXTRA_DIST = \ |
69 |
$(NULL) |
70 |
|
71 |
clean-local: |
72 |
- rm -f $(LTLIBRARIES:.la=.so) file.txt~ |
73 |
+ rm -f $(check_LTLIBRARIES:.la=.so) file.txt~ |
74 |
|
75 |
DBUS_LAUNCH=$(shell which dbus-launch) |
76 |
RUN_TESTS_ENV_VARS= \ |
77 |
@@ -130,7 +130,7 @@ RUN_TESTS_ENV_VARS= \ |
78 |
|
79 |
# pygtkcompat tests need to be run in a separate process as they |
80 |
# clobber global name space |
81 |
-check-local: $(LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled |
82 |
+check-local: $(check_LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled |
83 |
@echo " CHECK Pyflakes" |
84 |
@if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi |
85 |
@if test -z "$$SKIP_PEP8"; then \ |
86 |
diff --git a/tests/runtests.py b/tests/runtests.py |
87 |
index d3a4f47..5a53d3f 100755 |
88 |
--- a/tests/runtests.py |
89 |
+++ b/tests/runtests.py |
90 |
@@ -54,6 +54,9 @@ if sys.version_info[:2] == (2, 6): |
91 |
if sys.version_info[:2] == (2, 7): |
92 |
unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp |
93 |
|
94 |
+# Some tests fail with translated messages. |
95 |
+os.environ["LC_ALL"] = "C" |
96 |
+ |
97 |
if '--help' in sys.argv: |
98 |
print("Usage: ./runtests.py <testfiles>") |
99 |
sys.exit(0) |
100 |
-- |
101 |
1.8.1.2 |