Data files for test suites

Johan Tibell johan.tibell at
Mon Jan 2 18:56:29 CET 2012

On Mon, Jan 2, 2012 at 9:35 AM, Antoine Latter <aslatter at> wrote:
> Hi Cabal,
> Is their a recommended way of specifying data files to use with a test-suite?
> I want to test being able to parse binary data in a backwards
> compatible way, so would like the test data to be in source control.
> My current plan is to assume that the working directory in a test
> suite is always going to by the same directory as my .cabal file.

The way data-files currently work in Cabal is a bit unfortunate. It
would be better if they were per build target (i.e. library,
executable, test-suite) instead of per package.

-- Johan

More information about the cabal-devel mailing list