packages feed

HUnit-1.2.4.3: HUnit.cabal.tests

-- This CABAL file is used to build and run all of the various tests for the 
-- project.  This separate file is necessary because Hackage does not allow
-- the optimization level to be specified when building executables and some
-- tests require different optimization levels to be set.
--
-- To use this file, simply copy it to HUnit.cabal, then build as normal.  You
-- may rename the existing version of HUnit.cabal first, if you like.
Name:                   HUnit
Version:                1.2.4.3
Cabal-Version:          >= 1.6
License:                BSD3
License-File:           LICENSE
Author:                 Dean Herington
Maintainer:             hunit@richardg.name
Stability:              stable
Homepage:               http://hunit.sourceforge.net/
Category:               Testing
Synopsis:               A unit testing framework for Haskell
Description:
    HUnit is a unit testing framework for Haskell, inspired by the
    JUnit tool for Java, see: <http://www.junit.org>.
Tested-With:
    GHC == 7.0.4
    GHC == 7.4.1
Build-Type:             Custom
Extra-Source-Files:
    tests/HUnitTest98.lhs
    tests/HUnitTestBase.lhs
    tests/HUnitTestExtended.lhs
    tests/HUnitTestOptimize.hs
    tests/TerminalTest.lhs
Data-Files:
    doc/Guide.html
    examples/Example.hs
    prologue.txt
    README
source-repository head
    type:     darcs
    location: http://code.haskell.org/HUnit/

flag base4

Library
    Build-Depends: 
        base < 5,
        deepseq
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
    Exposed-Modules:
        Test.HUnit.Base,
        Test.HUnit.Lang,
        Test.HUnit.Terminal,
        Test.HUnit.Text,
        Test.HUnit
    Extensions: CPP

Executable basic-tests
    Main-Is:            HUnitTest98.lhs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP

Executable extended-tests
    Main-Is:            HUnitTestExtended.lhs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP

Executable terminal-tests
    Main-Is:            TerminalTest.lhs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP

Executable optimize-0-tests
    Main-Is:            HUnitTestOptimize.hs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    GHC-Options:        -O0
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4 -DO0
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP
        
Executable optimize-1-tests
    Main-Is:            HUnitTestOptimize.hs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    GHC-Options:        -O1
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4 -DO1
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP
        
Executable optimize-2-tests
    Main-Is:            HUnitTestOptimize.hs
    HS-Source-Dirs:     . tests
    Build-Depends: 
        base < 5,
        deepseq
    GHC-Options:        -O2
    if flag(base4)
        Build-Depends: base >= 4
        CPP-Options: -DBASE4 -DO2
        GHC-Options: -Wall
    else
        Build-Depends: base < 4
    if impl(ghc >= 6.10)
        Build-Depends: base >= 4
        Extensions: CPP