Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal On branch :
http://hackage.haskell.org/trac/ghc/changeset/4b4896effcae011221d9ed6a362fd598b2897f9b >--------------------------------------------------------------- commit 4b4896effcae011221d9ed6a362fd598b2897f9b Author: Johan Tibell <[email protected]> Date: Wed Oct 26 00:27:38 2011 +0000 Briefly document 'cabal test' and 'cabal bench' >--------------------------------------------------------------- Cabal/doc/developing-packages.markdown | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/Cabal/doc/developing-packages.markdown b/Cabal/doc/developing-packages.markdown index 4fac953..177aa82 100644 --- a/Cabal/doc/developing-packages.markdown +++ b/Cabal/doc/developing-packages.markdown @@ -623,6 +623,20 @@ tests = ] ~~~~~~~~~~~~~~~~ +#### Running test suites #### + +You can have Cabal run your test suites using its built-in test +runner: + +~~~~~~~~~~~~~~~~ +$ cabal configure --enable-tests +$ cabal build +$ cabal test +~~~~~~~~~~~~~~~~ + +See the output of `cabal help test` for a list of options you can pass +to `cabal test`. + ### Benchmarks ### Benchmark sections (if present) describe benchmarks contained in the package and @@ -692,6 +706,19 @@ main = do putStrLn $ "fib 20 took " ++ show (diffUTCTime end start) ~~~~~~~~~~~~~~~~ +#### Running benchmarks #### + +You can have Cabal run your benchmark using its built-in benchmark runner: + +~~~~~~~~~~~~~~~~ +$ cabal configure --enable-benchmarks +$ cabal build +$ cabal bench +~~~~~~~~~~~~~~~~ + +See the output of `cabal help bench` for a list of options you can +pass to `cabal bench`. + ### Build information ### The following fields may be optionally present in a library or _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
