Maurice Lombardi wrote:
Frank Heckenbach wrote:
CBFalconer wrote: I'm not too familiar with the DJGPP file system hierarchy, so perhaps someone can tell me how to do it (which directory etc.).
Test suites are usually not installed and remain within the sources.
Sure, but I see Chuck's (and perhaps some others') desire to get the test suite without the (quite a bit bigger) source archive.
For mere regression testing it would be sufficient if everyone who builds GPC, and therefore has the sources, runs the test suite, but since we also wish to encourage everyone to report their bugs in a test-suite conformant way, and possibly write additional tests, I like the idea of a separate test-suite (in addition).
Probably the most natural would be to install them in a doc/gpc/test directory (below the djgpp root directory, which is always implied), i.e. at the same level than the demos and docdemos directories.
Does everyone agree on that for DJGPP?
For Unix, should we also do it in <prefix>/doc/gpc/test/, or rather in a relative directory? I'm not sure (and I don't care very much since I'll always use the full sources, anyway).
I'm just thinking ... should we install the test suite "core" (i.e., just the Makefile and scripts, not the many, many test files) with every GPC installation so that every GPC user has an easy access to the test-suite when it comes to writing new tests (not for complete regression testing, of course)? That would be just a few files which shouldn't hurt anyone.
I should then probably also create a manifest file (which I haven't done yet).
I use the small attached gpc program which also produces the zip: (notice that manifest files contain forward slashes, even for DOS). You put everything with the intended directory structure (but omitting the djgpp root and also the manifest directory which will be created) below some temp directory and issue makedist from there.
Others use shell scripts I suppose.
Yes, me. :-) I think something like the following (untested) should work:
mkdir manifest echo "$2" > "manifest/$1.ver" find -type f | sed 's,^./,,' > "manifest/$1.mft" zip -9r "$1.zip" .
Frank