On Tue, Jul 19, 2011 at 3:14 PM, Alan Bromborsky <[email protected]> wrote:
> On 07/18/2011 06:12 PM, Matthew Rocklin wrote:
>
> Test is an executable in the sympy/bin directory. For example I have my
> sympy directory in my /home/mrocklin/workspace so the test executable we're
> referring to is located here
>  /home/mrocklin/workspace/sympy/bin/test
>
> On Mon, Jul 18, 2011 at 5:03 PM, Alan Bromborsky <[email protected]>
> wrote:
>>
>> On 07/18/2011 04:26 PM, Tom Bachmann wrote:
>>>
>>> bin/test sympy/galgebra/tests/test_GA.py (or whatever your path is)
>>> should work, I think
>>>
>>> On 18.07.2011 21:24, Alan Bromborsky wrote:
>>>>
>>>> It has been a long time since I did this and I need my memory refreshed.
>>>> I have a set of tests for the GA module in test_GA.py. How do I only run
>>>> the tests in that file? I do not remember the command.
>>>>
>>>
>> test does not do anything for me when I run " test test_GA.py".  When I do
>> man test I get -
>>
>> TEST(1)                                                          User
>> Commands                                                          TEST(1)
>>
>> NAME
>>       test - check file types and compare values
>>
>> SYNOPSIS
>>       test EXPRESSION
>>       test
>>
>>       [ EXPRESSION ]
>>       [ ]
>>       [ OPTION
>>
>> DESCRIPTION
>>       Exit with the status determined by EXPRESSION.
>>
>>       --help display this help and exit
>>
>>       --version
>>              output version information and exit
>>
>> etc.
>>
>> I don't think this is the test you mean.  It is in /usr/bin and not in
>> /bin.   I have no program test in bin.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" 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/sympy?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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/sympy?hl=en.
>
> Now the question is how to I test something that is not in the sympy tree.
> I have set up the following.  I have sympy0.7.0 installed as the directory
> sympy-new and I have the code and tests I am developing in the directory
> sympy-dev-new.  I use the my development modules by setting the path to then
> in my examples and test code "sys.path.append('../').  This works fine for
> running examples.  However if I use "sympy-new/bin/test test_GA.py" the test
> program only wants to use "test_GA.py" in the sympy-new tree and not the
> version in the sympy-dev-new tree (which only contains the new code I am
> working on).  Is there a way of getting sympy-new/bin/test to test the
> version of test_GA.py in the sympy-dev-new tree?

Have you tried passing the direct path to the test file? That ought to work.

Also, is there any particular reason why you're developing outside the
tree? If you use git it's trivial to switch between master (or a
certain version) and your own work.

>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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/sympy?hl=en.
>



-- 
Vladimir Perić

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to