#5155: Fix doctests that want write access to $SAGE_ROOT
------------------------------------------------------------------+---------
       Reporter:  mabshoff                                        |         
Owner:  jdemeyer  
           Type:  defect                                          |        
Status:  needs_work
       Priority:  critical                                        |     
Milestone:  sage-5.4  
      Component:  scripts                                         |    
Resolution:            
       Keywords:                                                  |   Work 
issues:            
Report Upstream:  N/A                                             |     
Reviewers:            
        Authors:  Mike Hansen, Jeroen Demeyer, John Palmieri      |     Merged 
in:            
   Dependencies:  #13157, #13397, #13452, #13459, #13457, #13123  |      
Stopgaps:            
------------------------------------------------------------------+---------
Description changed by jdemeyer:

Old description:

> All doctests in Sage should pass when they are run as a user that does
> not have write access to the Sage install. To do that, run the doctests
> on a Sage install that isn't owned by the user:
> {{{
> $ ./sage -tp 4 -long devel/sage/doc/common devel/sage/doc/de
> devel/sage/doc/en devel/sage/doc/fr devel/sage/doc/ru devel/sage/sage
> }}}
>
> Here, we assume that the owner of the Sage install has run Sage at least
> once (or has applied #11926).
>
> On sage-4.7.2.alpha4, this causes:
> {{{
> The following tests failed:
>
>         sage -t -long devel/sage/sage/modular/hecke/submodule.py # 1
> doctests failed
>         sage -t -long devel/sage/sage/modular/abvar/abvar.py # 1 doctests
> failed
>         sage -t -long devel/sage/sage/lfunctions/sympow.py # 13 doctests
> failed
>         sage -t -long devel/sage/sage/interfaces/qepcad.py # 3 doctests
> failed
>         sage -t -long
> devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py # 17
> doctests failed
>
> }}}
>
> This seems to be because of:
>  1. Installing an rc file for the '''experimental package''' qepcad (in a
> very odd location `$SAGE_ROOT/local/default.qepcadrc`)
>  2. Sympow which needs to create datafiles.  This should probably be done
> in sympow's `spkg-install` instead.  This is dealt with at #11920.
>
> '''Apply''':
>  1. [attachment:5155_sage_location.patch] to the scripts repository.
>  1. [attachment:5155_root.patch] to the `SAGE_ROOT` repository.
>  1. [attachment:5155_qepcad.patch] and [attachment:5155_fortran.patch] to
> the Sage library.

New description:

 All doctests in Sage should pass when they are run as a user that does not
 have write access to the Sage install. To do that, run the doctests on a
 Sage install that isn't owned by the user:
 {{{
 $ ./sage -tp 4 --long devel/sage/doc/common devel/sage/doc/en
 devel/sage/sage
 }}}

 On sage-5.4.beta1, this causes:
 {{{
 The following tests failed:

         sage -t --long devel/sage/sage/interfaces/qepcad.py # 3 doctests
 failed
         sage -t --long devel/sage/sage/misc/inline_fortran.py # 3 doctests
 failed
         sage -t --long devel/sage/sage/tests/cmdline.py # 2 doctests
 failed
 }}}

 '''Apply''':
  1. [attachment:5155_sage_location.patch] to the scripts repository.
  1. [attachment:5155_root.patch] to the `SAGE_ROOT` repository.
  1. [attachment:5155_qepcad.patch] and [attachment:5155_fortran.patch] to
 the Sage library.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5155#comment:36>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to