packages feed

snap-core-0.2.4: test/snap-core-testsuite.cabal

name:           snap-core-testsuite
version:        0.1.1
build-type:     Simple
cabal-version:  >= 1.6

Flag debug
  Description: Enable debug logging to stderr
  Default: False

Flag testsuite
  Description: Are we running the testsuite? Causes arguments to \"debug\" to
               be evaluated but not printed.
  Default: False

Flag portable
  Description: Compile in cross-platform mode. No platform-specific code or
               optimizations such as C routines will be used.
  Default: False

Executable testsuite
  hs-source-dirs:  ../src suite
  main-is:         TestSuite.hs

  if flag(debug)
    cpp-options: -DDEBUG

  if flag(testsuite)
    cpp-options: -DDEBUG_TEST

  if flag(portable) || os(windows)
    cpp-options: -DPORTABLE
  else
    c-sources: ../cbits/timefuncs.c
    include-dirs: ../cbits
    build-depends: bytestring-mmap >= 0.2.1 && <0.3

  build-depends:
    QuickCheck >= 2,
    attoparsec >= 0.8.0.2 && < 0.9,
    base >= 4 && < 5,
    bytestring,
    bytestring-nums,
    cereal >= 0.2 && < 0.3,
    containers,
    directory,
    dlist >= 0.5 && < 0.6,
    filepath,
    HUnit >= 1.2 && < 2,
    iteratee >= 0.3.1 && < 0.4,
    MonadCatchIO-transformers >= 0.2 && < 0.3,
    monads-fd,
    old-locale,
    old-time,
    parallel >= 2.2 && <2.3,
    test-framework >= 0.3.1 && <0.4,
    test-framework-hunit >= 0.2.5 && < 0.3,
    test-framework-quickcheck2 >= 0.2.6 && < 0.3,
    text >= 0.7.1 && <0.8,
    time,
    transformers,
    unix-compat,
    zlib
    
  ghc-options: -O2 -Wall -fhpc -fwarn-tabs -funbox-strict-fields -threaded
               -fno-warn-unused-do-bind