-
-
Notifications
You must be signed in to change notification settings - Fork 704
Description
Right now, setting SAGE_CHECK to any nonempty string (e.g., "no") runs the test suite. The documentation actually says that SAGE_CHECK should be "yes" for this to happen. Fix this.
While we're at it, fix something else: in the script SAGE_ROOT/local/bin/sage-env, SAGE64 is required to be "yes", "no", or unset:
if [ "$SAGE64" != "yes" -a "$SAGE64" != "no" ]; then
echo "The environment variable SAGE64 (=$SAGE64) must be either unset, yes or no."
exit 1
fi
The problem is, whenever sage-env is run, output is redirected to /dev/null, so this error message isn't printed. So for example:
$ export SAGE64='maybe'
$ sage
$
Sage fails to run and is completely silent as to why. Fix this, too.
Also, due to a bug in sage-spkg, successful test suite runs never get logged in spkg/installed/<package-name> as they should (or is intended); this is fixed by the reviewer patch.
(Note that test suite failures cannot be logged in these files as they get deleted on non-successful builds, which [currently] includes successful builds with failing self-tests.)
Apply only attachment: trac_9960-scripts-SAGE_CHECK.v2.patch (to the scripts repo).
CC: @sagetrac-drkirkby @kcrisman @nexttime @qed777 @jdemeyer
Component: user interface
Author: John Palmieri, Leif Leonhardy
Reviewer: Leif Leonhardy, Ivan Andrus, David Kirkby
Merged: sage-4.7.1.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/9960