From: PHO Date: Wed, 28 Sep 2011 15:28:28 +0000 (+0900) Subject: Skeleton for the test suite. X-Git-Tag: RELEASE-0.2~7 X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=1029ed1;p=time-http.git Skeleton for the test suite. Ditz-issue: c8c594f249504e28212f18a8a5c6b8a708b99f79 --- diff --git a/GNUmakefile b/GNUmakefile index c16dac3..6473d6f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,3 @@ -#CONFIGURE_ARGS = -O -fbuild-test-suite -CONFIGURE_ARGS = -O0 +CONFIGURE_ARGS = -O2 --enable-tests include cabal-package.mk diff --git a/Test/Time/HTTP.hs b/Test/Time/HTTP.hs new file mode 100644 index 0000000..97c5da8 --- /dev/null +++ b/Test/Time/HTTP.hs @@ -0,0 +1,22 @@ +{-# LANGUAGE + UnicodeSyntax + #-} +module Main (main) where +import System.Exit +import Test.QuickCheck + +main ∷ IO () +main = mapM_ runTest tests + +runTest ∷ Property → IO () +runTest prop + = do r ← quickCheckResult prop + case r of + Success {} → return () + GaveUp {} → exitFailure + Failure {} → exitFailure + NoExpectedFailure {} → exitFailure + +tests ∷ [Property] +tests = [ + ] diff --git a/time-http.cabal b/time-http.cabal index 5f0ddcd..75b9904 100644 --- a/time-http.cabal +++ b/time-http.cabal @@ -54,3 +54,19 @@ Library GHC-Options: -Wall + +Test-Suite test-time-http + Type: exitcode-stdio-1.0 + Main-Is: Test/Time/HTTP.hs + Default-Language: Haskell2010 + Build-depends: + QuickCheck == 2.4.*, + ascii == 0.0.*, + blaze-builder == 0.3.*, + blaze-textual == 0.2.*, + attoparsec == 0.9.*, + base == 4.*, + base-unicode-symbols == 0.2.*, + time == 1.2.* + GHC-Options: + -Wall -fno-warn-orphans