[sagemath] 01/01: Running tests from installed package works, write instructions in README.Debian.

Tobias Hansen thansen at moszumanska.debian.org
Sat Dec 3 03:22:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sagemath.

commit 951a92652bb7af7504ca7351c8fa43559e1f3580
Author: Tobias Hansen <thansen at broeselmaschine.fc.up.pt>
Date:   Sat Dec 3 03:21:41 2016 +0000

    Running tests from installed package works, write instructions in README.Debian.
---
 debian/README.Debian   | 7 +++++++
 debian/todo-stretch.md | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index bc3bc71..99698f5 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -24,11 +24,18 @@ of the logging output, there will be a summary of all the failures.
 After a successful build, you can run individual tests as follows. First, make
 sure you're in the top-level package directory, where debian/ is. Then:
 
+ $ export SAGE_ROOT = $PWD/sage
+ $ export SAGE_SPKG_INST = $PWD/sage/local/var/lib/sage/installed
  $ export SAGE_LOCAL=$PWD/debian/build/usr
  $ export PYTHONPATH=$SAGE_LOCAL/lib/python2.7/dist-packages
  $ cd sage
  sage$ ./sage -t --long src/sage/geometry/riemannian_manifolds/parametrized_surface3d.py
 
+One can also run the tests using the installed sage packages. To this end
+run in a sage source directory (with Debian patches applied)
+
+ sage$ SAGE_SRC=src sage -t -p --all --long --logfile=ptestlong.log
+
 See https://www.sagemath.org/git-developer-guide/doctesting.html for more
 information and helpful tips.
 
diff --git a/debian/todo-stretch.md b/debian/todo-stretch.md
index 364be11..8e570b0 100644
--- a/debian/todo-stretch.md
+++ b/debian/todo-stretch.md
@@ -16,7 +16,8 @@ Upload packages to NEW, ASAP
         * We have plenty lintian warnings about files in /usr/bin
           (binary-without-manpage, script-with-language-extension, executable-not-elf-or-script)
           Maybe we should install most of that to /usr/share/sage/bin.
-        * Make test suite work with installed sage.
+        * We could create a package containing the (patched) sage sources to make
+          it easier to run the testsuite.
         * test with missing jmol (maybe set canvas3d as default in
           src/sage/plot/plot3d/base.pyx / src/sage/graphs/generic_graph.py ?)
           * might be possible to package jmol and disable only jsmol, if that's easier

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list