[sagemath] 01/01: Slightly simpler testing instructions, works for me...

Ximin Luo infinity0 at debian.org
Sun Dec 4 11:43:37 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagemath.

commit 54659506cffb95663a7905c39f66ff9c879e998c
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Dec 4 12:43:15 2016 +0100

    Slightly simpler testing instructions, works for me...
---
 debian/README.Debian | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 929acee..30199f4 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -24,20 +24,21 @@ 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
 
-If doing this after `dh_auto_install` has succeeded, then you'll want to change
-debian/build to debian/tmp in the above commands.
+If doing this after `dh_auto_install` has succeeded (this is the case if you
+got some resulting .debs), then you'll need to change debian/build to
+debian/tmp in the above commands, or symlink the latter to the former.
 
-One can also run the tests using the installed sage packages. To this end
-run in a sage source directory (with Debian patches applied)
+One can also run the tests using the installed sage packages. First, make sure
+that Debian patches are applied to your sage source directory - this initially
+won't be the case if `dpkg-buildpackage` succeeded. Then, from any directory:
 
- sage$ SAGE_SRC=src sage -t -p --all --long --logfile=ptestlong.log
+ *$ export -n SAGE_LOCAL SAGE_ROOT
+ *$ SAGE_SRC=/path/to/sage/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.

-- 
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