Commit d61bb111 authored by Jeremy Sanders's avatar Jeremy Sanders

Set LC_ALL in build. Delete self test outputs on clean.

parent cf77e8ca
......@@ -6,10 +6,11 @@ veusz (1.15-1) UNRELEASED; urgency=low
* Replace patches with use of upstream setup.py options and symlinks
* Bumped Standards-Version to 3.9.3
* Do not run incorrectly failing self tests (Closes: #654604)
* Patch self test to run with LC_ALL=C
* Run self test to run as LANG=C
* Delete any self test failures on dh_clean
* Update copyright header for released DEP5
-- Jeremy Sanders <jeremy@jeremysanders.net> Mon, 30 Apr 2012 19:21:00 +0100
-- Jeremy Sanders <jeremy@jeremysanders.net> Wed, 02 May 2012 22:10:00 +0100
veusz (1.14-1) unstable; urgency=low
......
......@@ -2,9 +2,7 @@ Description: Fix build failure during self test on ARM platforms
These self tests fail on ARM, due to differences in floating point
precision. They do not indicate real problems. The tests are fixed in
the upstream development version, but a direct fix would be a very
large patch. We also patch the language variable to be C for the self
tests to work in various locales. These changes will no longer be
required in >1.15.
large patch. This change will no longer be required in >1.15.
Origin: vendor
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654604
Forwarded: not-needed
......@@ -13,14 +11,6 @@ Last-Update: 2012-04-25
--- veusz-1.15.orig/tests/runselftest.py
+++ veusz-1.15/tests/runselftest.py
@@ -40,6 +40,7 @@
import glob
import os.path
import sys
+import os
import veusz.qtall as qt4
import veusz.utils.textrender
@@ -52,6 +53,15 @@
# it appears the failures aren't important however
excluded_tests = set([
......@@ -37,12 +27,3 @@ Last-Update: 2012-04-25
# fails on Windows
'histo.vsz', # duplicate in long list of values
'spectrum.vsz', # angstrom is split into two on linux
@@ -174,6 +184,8 @@
sys.exit(fails)
if __name__ == '__main__':
+ os.environ['LC_ALL'] = 'C'
+
app = qt4.QApplication([])
veusz.setting.transient_settings['unsafe_mode'] = True
......@@ -40,11 +40,13 @@ override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
set -e -x;\
for py in $(PYVERS); do \
LC_ALL=C \
PYTHONPATH=$(call pythonpath,$$py) \
VEUSZ_RESOURCE_DIR=. \
xvfb-run -a \
--server-args "-screen 0 640x480x24" \
python$$py tests/runselftest.py ;\
LC_ALL=C \
PYTHONPATH=$(call pythonpath_dbg,$$py) \
VEUSZ_RESOURCE_DIR=. \
xvfb-run -a \
......@@ -69,3 +71,5 @@ delete_generated:
rm -f Documents/manual.html Documents/manual.pdf \
Documents/manual.txt \
Documents/veusz.1 Documents/veusz_listen.1
# delete any self test failures
rm -f tests/*.temp.selftest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment