Hi

On Thu, Sep 10, 2009 at 05:41:47AM -0700, Simon King wrote:
> On Sep 10, 1:01 pm, Jan Groenewald <j...@aims.ac.za> wrote:
> > 0 j...@muizenberg:~$vim test.py
> > 0 j...@muizenberg:~$mkdir tst
> > 0 j...@muizenberg:~$mv test.py tst/
> > 0 j...@muizenberg:~$export SAGE_TESTDIR=`pwd`/tst/
> > 0 j...@muizenberg:~$sage -t test.py
> 
> Sorry, when I said "test.py is in the working directory" then I meant
> the current directory, not tst/
> So, it should work if you do *not* do "mv test.py tst/"

0 j...@muizenberg:~$mv tst/test.py .
0 j...@muizenberg:~$export SAGE_TESTDIR=~/tst
0 j...@muizenberg:~$sage -t test.py 
ERROR: File ./test.py is missing
exit code: 1
 
----------------------------------------------------------------------
The following tests failed:


        ./test.py
Total time for all tests: 0.0 seconds
0 j...@muizenberg:~$sage -t ~/test.py 
sage -t  "/home/jan/test.py"                                
Traceback (most recent call last):
  File "/usr/local/src/sage-4.1.1/local/bin/sage-doctest", line 754, in <module>
    test_file(argv[1], library_code = library_code)
  File "/usr/local/src/sage-4.1.1/local/bin/sage-doctest", line 587, in 
test_file
    open(f,"w").write(s)
IOError: [Errno 13] Permission denied: './.doctest_test.py'
         [0.2 s]
exit code: 256
 
----------------------------------------------------------------------
The following tests failed:


        sage -t  "/home/jan/test.py"
Total time for all tests: 0.2 seconds
0 j...@muizenberg:~$

> Alternatively, it should work if you *do" "mv test.py tst/", but then
> do "sage -t tst/test.py" in the last step. Of course, you need to tell
> "sage -t" where the to-be-tested file sits.

That was shown to fail in my last post.

Jan

-- 
   .~. 
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^ 

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to