[commit: haddock] ghc-7.6: Organize unite tests hierarchically (6fafde6)

Simon Hengel <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/haddock

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/6fafde62449fa8a5cb8405d6270caa5e1ddac613

>---------------------------------------------------------------

commit 6fafde62449fa8a5cb8405d6270caa5e1ddac613
Author: Simon Hengel <[email protected]>
Date:   Sun Oct 14 01:51:32 2012 +0200

    Organize unite tests hierarchically

>---------------------------------------------------------------

 haddock.cabal                                      |    2 +-
 .../{parsetests.hs => Haddock/ParseSpec.hs}        |    2 +-
 tests/unit-tests/Spec.hs                           |    9 +++++++++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/haddock.cabal b/haddock.cabal
index c0d77a1..b77fc5a 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -179,7 +179,7 @@ test-suite html-tests
 test-suite spec
   type:             exitcode-stdio-1.0
   default-language: Haskell2010
-  main-is:          parsetests.hs
+  main-is:          Spec.hs
   hs-source-dirs:
       tests/unit-tests
     , tests/nanospec
diff --git a/tests/unit-tests/parsetests.hs b/tests/unit-tests/Haddock/ParseSpec.hs
similarity index 98%
rename from tests/unit-tests/parsetests.hs
rename to tests/unit-tests/Haddock/ParseSpec.hs
index 1f923aa..0c95998 100644
--- a/tests/unit-tests/parsetests.hs
+++ b/tests/unit-tests/Haddock/ParseSpec.hs
@@ -1,6 +1,6 @@
 {-# LANGUAGE StandaloneDeriving, FlexibleInstances, UndecidableInstances, IncoherentInstances #-}
 {-# OPTIONS_GHC -fno-warn-orphans #-}
-module Main (main, spec) where
+module Haddock.ParseSpec (main, spec) where
 
 import           Test.Hspec
 import           RdrName (RdrName)
diff --git a/tests/unit-tests/Spec.hs b/tests/unit-tests/Spec.hs
new file mode 100644
index 0000000..68521c0
--- /dev/null
+++ b/tests/unit-tests/Spec.hs
@@ -0,0 +1,9 @@
+module Main where
+
+import           Test.Hspec
+
+import qualified Haddock.ParseSpec
+
+main :: IO ()
+main = hspec $ do
+  describe "Haddock.Parse" Haddock.ParseSpec.spec
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.