On 14 Jul 2008, at 23:50, Ondrej Certik wrote:
On Tue, Jul 15, 2008 at 12:28 AM, Sandro Tosi <[EMAIL PROTECTED]>
wrote:
Hi Kibi!
On Mon, Jul 14, 2008 at 20:13, Cyril Brulebois <[EMAIL PROTECTED]>
wrote:
Hi folks,
I'm wondering whether there's a preferred place where to drop the
test(s) directory. I don't really know whether to choose
/usr/share/python-support/$package/test(s)
or
/usr/share/$package/test(s).
Since it isn't really needed for the module to correctly work, I'd
be
tempted to keep it out of python-support's paths, and to keep it
under
/usr/share/$package instead, but what do you think?
Well, since tests are something not needed for the module to work and
they provide a sort of documentation of the module itself, I usually
install them as examples under /usr/share/doc/$pkg/examples (as
suggested by Piotr and/or Bernd, IIRC). Just my 2 cc :)
Tests can be useful for checking that code that depends on a package
still works;
ie if package app depends on module foo, then package app might put
its tests in
/usr/share/tests/app. When foo changes, you can run the tests as a
regression check.
This was the idea behind the abortive debian-test project. Some day I
may resuscitate it.
The tests shouldn't go in a binary package, but perhaps a debug
package if it extsts.
Alastair
Ondrej
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Regards,
Alastair
--
Alastair McKinstry , <[EMAIL PROTECTED]> http://blog.sceal.ie
Anyone who believes exponential growth can go on forever in a finite
world
is either a madman or an economist - Kenneth Boulter, Economist.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]