example cabal programs

Isaac Jones ijones at syntaxpolice.org
Sat Feb 12 15:16:10 EST 2005


"Simon Marlow" <simonmar at microsoft.com> writes:

>> These should probably go in the examples directory or somehow be
>> included in CVS.  What's the best way to do this?  The Setup files
>> should probably be built at least as a sanity check when building
>> cabal.
>
> Check them in under libraries/Cabal/tests or examples.  I'd put tests in
> 'make check' or 'make test' rather than the main build, though.

I added them to the tests directory.  Each sub-test has a little
makefile that will create the setup program for me.  These match up w/
ModuleTest which goes in and runs all the tests.

> We have a few cabal tests in testsuite/tests/ghc-regress/cabal - I'll
> pull any tests you put in libraries/Cabal over into the testsuite so
> they get run every night with the GHC builds.

Should I add some slightly larger programs like HSQL and HUnit?  I
could probably delete some of the stuff in those directories first.
BTW, HSQL is my new "Distribution.Make" test.

peace,

  isaac


More information about the Cvs-libraries mailing list