[OpenAFS-devel] src/tests & testing

Jason Edgecombe jason@rampaginggeek.com
Thu, 30 Oct 2008 19:25:38 -0400


Derrick Brashear wrote:
> On Thu, Oct 30, 2008 at 1:29 PM, Steven Jenkins
> <steven.jenkins@gmail.com> wrote:
>   
>> We've been doing some work with src/tests recently, with a view to
>> adding more functional tests, and we are thinking about adding an
>> additional framework in there besides the existing 'run-tests', which
>> would over time replace 'run-tests'.  A richer testing harness would
>> make it easier to exclude certain tests, automate reporting, etc.
>>     
>
> Yes, please. Another thing which would be nice is a split of "things
> to test in a throwaway cell" as the original setup works versus a
> switch thrown to test in an existing cell.
>
>   
>> Any objections to that?
>>
>> Second, given that much of that code is  in Perl, any objection to
>> using one of the Perl Test::* frameworks to manage that?
>>     
>
> None here.
>
> Derrick

I have been using the Test::More perl framework. I haven't done enough 
to really need to organize things yet, but most of my stuff is targeted 
at use in a existing cell. M one test so far uses the current directory 
for writing. How should we pass the scratch directory to the tests? An 
environment variable, perhaps?

Jason