On Tue, 10 Feb 2009, Jack Schwartz wrote:

> Hi everyone.
>
> At this morning's AI meeting we discussed putting unittest information and 
> programs/scripts into the slim_source gate.
>
> It is important that there be a structure to this, to prevent sprawl and 
> unorganization.  Implementing such a structure now will help maintain gate 
> organization in the future.  If we don't, the gate will degenerate.
>
> I propose that we put test code and documentation into a subdirectories with 
> an agreed-upon standard name.   Each subdirectory will hang off of the 
> directory containing the delivered code being tested.  I suggest "unittest". 
> The slim-source gate does not contain any matches on this name currently, 
> and the name is clear.
>
> As an example, I have some XML processing code under 
> usr/src/lib/install_utils.  I will put my test programs for these modules in 
> usr/src/lib/install_utils/unittest.
>
> Code and documents going into the unittest subdirectories (and *only* 
> unittest subdirectories) don't need to be code reviewed.

Given that our eventual goal is to deliver into ON,
I would say we should mimic the way source code is
laid out in ON.

If I look at the ON source, some of the dtrace test
programs live under usr/src/cmd/dtrace/test. Standalone
test utilities such as ztest for zfs live under their
separate directory usr/src/cmd/ztest. Each of these
subdirectories then contain common as well as platform
specific code.

Alok

Reply via email to