Where should I put my tests
Jelmer Vernooij
jelmer at samba.org
Fri Dec 4 06:19:32 MST 2009
On Fri, 2009-12-04 at 16:00 +0300, Matthieu Patou wrote:
> Dear all, I am kind of lost when it comes to writing tests because I
> don't really know where I should put them.
>
> Today I made a simple search in s4 code and found the following:
>
> mat at ares:/usr/local/src/samba4/source4$ find . -type d -name "*test*"
> ./auth/credentials/tests
> ./auth/gensec/tests
> ./auth/tests
> ./client/tests
> ./dsdb/common/tests
> ./dsdb/samdb/ldb_modules/tests
> ./dsdb/schema/tests
> ./lib/ldb/tests
> ./lib/ldb/tests/schema-tests
> ./lib/messaging/tests
> ./lib/registry/tests
> ./libcli/security/tests
> ./librpc/tests
> ./param/tests
> ./scripting/python/samba/tests
> ./selftest
> ./setup/tests
> ./torture/tests
> ./utils/tests
> mat at ares:/usr/local/src/samba4/source4$ find . -type d -name "*tortu*"
> ./scripting/python/samba/torture
> ./torture
>
> So first question: what's the difference between "tests" and "torture" ?
> The second question: where do I put my tests ?
Depends on what sort of tests you're writing. Generally the tests should
be near the code they test if they're specific to a particular
subsystem.
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20091204/8cf44f30/attachment.pgp>
More information about the samba-technical
mailing list