New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow users to test Sage script using system-wide Sage installation #6861
Comments
Attachment: trac_6861-sage-test-in-dotsage.patch.gz |
Author: Jason Grout |
comment:1
Attachment: trac_6861-sage-test-in-dotsage.2.patch.gz The two files above are identical. One can be deleted. |
comment:2
Replying to @jasongrout: In addition to the change made by the patch, some corresponding changes need making in |
comment:3
Replying to @sagetrac-fwclarke:
You sound like you know what needs to be done. Please, please post a patch. |
comment:4
Replying to @jasongrout:
Will do, but not immediately; there are a few things I don't quite understand, and I'm off to the day-job now. |
comment:5
Replying to @sagetrac-fwclarke:
It seems to me that if (because of the changed definition of It also seems worthwhile to active the function I have implemented these ideas and am testing the code. A patch will follow soon. |
comment:6
The new patch, which incorporates the change in the earlier patch, also includes the changes made in the patch at #6668. |
replaces earlier patches |
comment:7
Attachment: trac_6861_new.patch.gz I have added an extra patch (to be applied after trac_6861_new.patch) which deals with a problem in testing files specified by their full path name, as discussed in sage-devel. |
Attachment: trac_6861_extra.patch.gz apply after trac_6861_new.patch |
comment:8
Patches work perfectly, and I've run several dozen doctests without any problems. Temporary files are deleted as promised. Nice job guys. Positive review. |
Reviewer: Tim Dumol |
Changed author from Jason Grout to Jason Grout, Francis Clarke |
comment:9
Merged in the script repository. |
Merged: Sage 4.1.2.alpha3 |
comment:11
There is no 4.1.2.alpha3. Sage 4.1.2.alpha3 was William Stein's release for working on making the notebook a standalone package. |
Changed merged from Sage 4.1.2.alpha3 to Sage 4.1.2.alpha4 |
comment:12
See #7079 for a case where the current ticket breaks parallel doctesting. |
At least in Sage 4.1.1, a regular user cannot run tests on their own Sage scripts using a system-wide installation of Sage. Doing so would result in a permission error:
That is due to the testing script writing temporary data to a temporary directory under the system-wide Sage installation. A work around is to have one's own local installation of Sage under one's home directory. But it would be nice if the test script would write temporary data to the user's
DOT_SAGE
directory, i.e.$HOME/.sage
. This problem was reported at this sage-support thread.Component: doctest coverage
Author: Jason Grout, Francis Clarke
Reviewer: Tim Dumol
Merged: Sage 4.1.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/6861
The text was updated successfully, but these errors were encountered: