Data files for test suites

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. Thanks, Antoine

On Mon, Jan 2, 2012 at 9:35 AM, Antoine Latter
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
participants (2)
-
Antoine Latter
-
Johan Tibell