[libreoffice] 01/02: split uno/pyuno tests and fix names; add python3 Depends: for safety
Rene Engelhard
rene at moszumanska.debian.org
Mon Jul 3 16:52:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
rene pushed a commit to branch debian-experimental-5.4
in repository libreoffice.
commit 560a12b00ede3d1b293c087b4ac2b974202cecea
Author: Rene Engelhard <rene at rene-engelhard.de>
Date: Mon Jul 3 18:50:53 2017 +0200
split uno/pyuno tests and fix names; add python3 Depends: for safety
---
changelog | 3 +++
tests/control | 5 ++++-
tests/pyuno-import | 6 +++++-
tests/{pyuno-import => uno-import} | 0
4 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/changelog b/changelog
index 6bed0f3..7222c48 100644
--- a/changelog
+++ b/changelog
@@ -13,6 +13,9 @@ libreoffice (1:5.4.0~rc1-2) UNRELEASED; urgency=medium
Build-Depends-(Indep-): to debian/tests/control.in; misses some packages
(e.g. ant) and it should work at least since autopktest 3.16 from Jul 2015;
use @builddeps@ instead
+ * debian/tests/control, debian/tests/*uno-import.diff: split; make pyuno-import
+ test import pyuno while uno-import does import uno (the uichecks do the former).
+ add python3 Depends: for safety
* debian/rules:
- be consequent and set RUN_PYTESTS=n (and RUN_MAKE_UICHECK=n) where we set
diff --git a/tests/control b/tests/control
index 3e498df..af6c87e 100644
--- a/tests/control
+++ b/tests/control
@@ -1,8 +1,11 @@
Tests: junit-subsequentcheck
Depends: @builddeps@, libreoffice, libreoffice-subsequentcheckbase, libreoffice-sdbc-hsqldb
+Tests: uno-import
+Depends: python3, python3-uno
+
Tests: pyuno-import
-Depends: python3-uno
+Depends: python3, python3-uno
Tests: uicheck
Depends: @builddeps@, libreoffice, python3-uno, locales
diff --git a/tests/pyuno-import b/tests/pyuno-import
index 1b7778c..ff7503a 100755
--- a/tests/pyuno-import
+++ b/tests/pyuno-import
@@ -1,3 +1,7 @@
#!/usr/bin/python3
-import uno
+import sys, os
+sys.path.append('/usr/lib/libreoffice/program')
+os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:/usr/lib/libreoffice/program/fundamentalrc')
+
+import pyuno
diff --git a/tests/pyuno-import b/tests/uno-import
old mode 100755
new mode 100644
similarity index 100%
copy from tests/pyuno-import
copy to tests/uno-import
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice.git
More information about the Pkg-openoffice-commits
mailing list