Where should I put my tests

Matthieu Patou mat+Informatique.Samba at matws.net
Fri Dec 4 06:00:26 MST 2009


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 ?

Matthieu.


More information about the samba-technical mailing list