Cabal test interface, what/where is it?

After upgrading to ghc7 and Cabal 1.10 I get the following message when running 'Setup configure' on one of my packages: Setup.hs:3:1: Warning: In the use of `runTests' (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks): Deprecated: "Please use the new testing interface instead!" I usually turn to the Cabal docs at [1], but the new testing interface isn't mentioned. Looking through the haddock API reference doesn't offer any obvious pointers. So, where should I turn to get rid of the warning? /M [1] http://www.haskell.org/ghc/docs/latest/html/Cabal/ -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay

Hello, the following URL contains some useful information:
http://www.haskell.org/cabal/release/cabal-1.10.1.0/doc/users-guide/#test-su...
Hope this helps,
JP
On Fri, Mar 18, 2011 at 8:37 PM, Magnus Therning
After upgrading to ghc7 and Cabal 1.10 I get the following message when running 'Setup configure' on one of my packages:
Setup.hs:3:1: Warning: In the use of `runTests' (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks): Deprecated: "Please use the new testing interface instead!"
I usually turn to the Cabal docs at [1], but the new testing interface isn't mentioned. Looking through the haddock API reference doesn't offer any obvious pointers.
So, where should I turn to get rid of the warning?
/M
[1] http://www.haskell.org/ghc/docs/latest/html/Cabal/ -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- JP Moresmau http://jpmoresmau.blogspot.com/

On Fri, Mar 18, 2011 at 09:35:51PM +0100, JP Moresmau wrote:
Hello, the following URL contains some useful information: http://www.haskell.org/cabal/release/cabal-1.10.1.0/doc/users-guide/#test-su...
Hope this helps,
That answered some questions, and I know have my test building again. Without warnings :-) However, I can't seem to get the test's sources included in the tar-ball created by 'sdist'. Is there some trick to it? /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay

On Fri, Mar 18, 2011 at 10:13:21PM +0100, Daniel Fischer wrote:
On Friday 18 March 2011 21:51:27, Magnus Therning wrote:
However, I can't seem to get the test's sources included in the tar-ball created by 'sdist'. Is there some trick to it?
extra-source-files?
That field can't be used in a test-suite section. Furthermore, not even the file mentioned in the 'main-is' field is included in the source tar-ball. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term. -- Alan Kay

On Fri, 18 Mar 2011, Magnus Therning wrote:
On Fri, Mar 18, 2011 at 10:13:21PM +0100, Daniel Fischer wrote:
On Friday 18 March 2011 21:51:27, Magnus Therning wrote:
However, I can't seem to get the test's sources included in the tar-ball created by 'sdist'. Is there some trick to it?
extra-source-files?
That field can't be used in a test-suite section. Furthermore, not even the file mentioned in the 'main-is' field is included in the source tar-ball.
Extra-Source-Files can be used in the main section (even before Library). However, if files mentioned in test-suite are not included in the tarball, this is certainly a bug.

On Fri, Mar 18, 2011 at 3:51 PM, Magnus Therning
On Fri, Mar 18, 2011 at 09:35:51PM +0100, JP Moresmau wrote:
Hello, the following URL contains some useful information: http://www.haskell.org/cabal/release/cabal-1.10.1.0/doc/users-guide/#test-su...
Hope this helps,
That answered some questions, and I know have my test building again. Without warnings :-)
However, I can't seem to get the test's sources included in the tar-ball created by 'sdist'. Is there some trick to it?
This is a known bug. A patch is available, so it should be fixed in the next version. -- Thomas Tuegel

On Fri, Mar 18, 2011 at 06:47:58PM -0500, Thomas Tuegel wrote:
On Fri, Mar 18, 2011 at 3:51 PM, Magnus Therning
wrote: On Fri, Mar 18, 2011 at 09:35:51PM +0100, JP Moresmau wrote:
Hello, the following URL contains some useful information: http://www.haskell.org/cabal/release/cabal-1.10.1.0/doc/users-guide/#test-su...
Hope this helps,
That answered some questions, and I know have my test building again. Without warnings :-)
However, I can't seem to get the test's sources included in the tar-ball created by 'sdist'. Is there some trick to it?
This is a known bug. A patch is available, so it should be fixed in the next version.
How irritating! I'll just have to live with the warning then, until a fixed version is included in HP. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay
participants (5)
-
Daniel Fischer
-
Henning Thielemann
-
JP Moresmau
-
Magnus Therning
-
Thomas Tuegel