public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/pygobject/files: pygobject-3.4.0-make_check.patch pygobject-2.26.0-disabled-threads.patch pygobject-2.18.0-support_multiple_python_versions.patch pygobject-3.0.3-gobject-property-min-max.patch pygobject-3.0.2-disable-new-gi-tests.patch pygobject-2.26.0-make_check.patch pygobject-2.15.4-fix-codegen-location.patch pygobject-2.26.0-disable-non-working-tests.patch pygobject-2.20.0-tmpdir-makefile.patch pygobject-2.26.0-nocrash.patch
@ 2012-09-25 11:53 Alexandre Rostovtsev (tetromino)
  0 siblings, 0 replies; only message in thread
From: Alexandre Rostovtsev (tetromino) @ 2012-09-25 11:53 UTC (permalink / raw
  To: gentoo-commits

tetromino    12/09/25 11:53:14

  Added:                pygobject-3.4.0-make_check.patch
  Removed:              pygobject-2.26.0-disabled-threads.patch
                        pygobject-2.18.0-support_multiple_python_versions.patch
                        pygobject-3.0.3-gobject-property-min-max.patch
                        pygobject-3.0.2-disable-new-gi-tests.patch
                        pygobject-2.26.0-make_check.patch
                        pygobject-2.15.4-fix-codegen-location.patch
                        pygobject-2.26.0-disable-non-working-tests.patch
                        pygobject-2.20.0-tmpdir-makefile.patch
                        pygobject-2.26.0-nocrash.patch
  Log:
  Version bump with assorted bugfixes. Drop old. Make license more precise.
  
  (Portage version: 2.2.0_alpha132/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/pygobject/files/pygobject-3.4.0-make_check.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.4.0-make_check.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-3.4.0-make_check.patch?rev=1.1&content-type=text/plain

Index: pygobject-3.4.0-make_check.patch
===================================================================
From 50dd12f2958945626defdf305332f270309cacc0 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Fri, 5 Nov 2010 23:39:08 +0100
Subject: [PATCH] Do not build tests unless needed

[Alexandre Rostovtsev <tetromino@gmail.com>: port to 2.90.1]
---
 tests/Makefile.am | 10 +++++-----
 tests/runtests.py |  3 +++
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 081028a..ac71575 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,5 @@
 CLEANFILES =
-noinst_LTLIBRARIES = libregress.la libgimarshallingtests.la
+check_LTLIBRARIES = libregress.la libgimarshallingtests.la
 
 nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h
 libregress_la_CFLAGS = $(GIO_CFLAGS) $(CAIRO_CFLAGS)
@@ -43,7 +43,7 @@ gschemas.compiled: org.gnome.test.gschema.xml
 
 CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib gschemas.compiled
 
-noinst_LTLIBRARIES += testhelper.la
+check_LTLIBRARIES += testhelper.la
 
 testhelper_la_CFLAGS = -I$(top_srcdir)/gi/_gobject -I$(top_srcdir)/gi/_glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
 testhelper_la_LDFLAGS = -module -avoid-version
@@ -63,7 +63,7 @@ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
 	test -L $@ || $(LN_S) .libs/$@ $@
 
 
-all: $(LTLIBRARIES:.la=.so)
+all: $(check_LTLIBRARIES:.la=.so)
 
 EXTRA_DIST = \
 	compathelper.py \
@@ -103,7 +103,7 @@ EXTRA_DIST = \
 	$(NULL)
 
 clean-local:
-	rm -f $(LTLIBRARIES:.la=.so) file.txt~
+	rm -f $(check_LTLIBRARIES:.la=.so) file.txt~
 
 DBUS_LAUNCH=$(shell which dbus-launch)
 RUN_TESTS_ENV_VARS= \
@@ -114,7 +114,7 @@ RUN_TESTS_ENV_VARS= \
 	MALLOC_PERTURB_=85 \
 	TESTS_BUILDDIR=$(builddir)
 
-check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
+check-local: $(check_LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled
 	@echo "  CHECK  Pyflakes"
 	@if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi
 	@echo "  CHECK  PEP8"
diff --git a/tests/runtests.py b/tests/runtests.py
index c518fcc..35bb5c4 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -34,6 +34,9 @@ if sys.version_info[:2] == (2, 6):
     unittest.TestCase.assertGreater = assertGreater
     unittest.TestCase.assertIsInstance = assertIsInstance
 
+# Some tests fail with translated messages.
+os.environ["LC_ALL"] = "C"
+
 if '--help' in sys.argv:
     print("Usage: ./runtests.py <testfiles>")
     sys.exit(0)
-- 
1.7.12






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-09-25 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 11:53 [gentoo-commits] gentoo-x86 commit in dev-python/pygobject/files: pygobject-3.4.0-make_check.patch pygobject-2.26.0-disabled-threads.patch pygobject-2.18.0-support_multiple_python_versions.patch pygobject-3.0.3-gobject-property-min-max.patch pygobject-3.0.2-disable-new-gi-tests.patch pygobject-2.26.0-make_check.patch pygobject-2.15.4-fix-codegen-location.patch pygobject-2.26.0-disable-non-working-tests.patch pygobject-2.20.0-tmpdir-makefile.patch pygobject-2.26.0-nocrash.patch Alexandre Rostovtsev (tetromino)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox