It really kinda depends on the test cases/purpose being written.  If the 
defect you are fixing has a wide range of tests then you might do some 
dynamic testing which would require a bit more design thought etc.  If 
it's a simple one item fix, that is testable by a simple unit test, then 
that would only require a single test and the design is fairly simple.

The way the SMF test suite is designed using the STF test 
framework/harness, and is broken down into 4 sections (at this time). 
There are two sections for the libraries a libscf-low and libscf-mid and 
if the defects you are fixing are in this area then your test design 
will take one path (if you follow and stay consistent with how the 
current library testing is done).  The other two areas are the svcadm 
and svccfg commands.

A basic design for all of these sections is each is then broken down 
into subsections for the command or library function, and a test is 
written for each assertion against that section.

As for STF test design, tests are for the most part a stand alone 
executable file that get's built and is then executed by the framework. 
  I believe the ZFS test suite which is open sourced currently uses the 
STF framework so you could look at that to get some idea of how tests 
fit into this framework.  As well as the framework itself is opensourced 
and there are examples.

If you have any specific questions let me know, and I'll answer what I can.


Keith White wrote:
> Can we give Mark a SMF test suite "preview" and an idea how test cases could
> be included?
> 
> 
> 
> Sean Wilcox wrote:
>> The plan is to open source the SMF test suite by the end of May, 2008.
>>
>> Mark Martin wrote:
>>   
>>> I'm working on a few defects, and it sure would be nice to have a test 
>>> suite to just add additional test cases to...
>>>
>>> If I do create a test harness for one or more of these from scratch, 
>>> into which consolidation should they go?
>>>
>>> Mark
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> testing-discuss mailing list
>>> testing-discuss at opensolaris.org
>>>     
>>
>>
>>   
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> testing-discuss mailing list
> testing-discuss at opensolaris.org


-- 
Sean Wilcox
303.272.9711
x79711

Reply via email to