Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed unnecessary test code

  • Loading branch information...
commit 4cfc3609e473261ae02f1f1d7fcb39fa3cddaa05 1 parent 7672eed
@snoyberg authored
Showing with 1 addition and 43 deletions.
  1. +1 −5 Setup.lhs
  2. +0 −26 data-object.cabal
  3. +0 −12 runtests.hs
View
6 Setup.lhs
@@ -2,10 +2,6 @@
> module Main where
> import Distribution.Simple
-> import System.Cmd (system)
> main :: IO ()
-> main = defaultMainWithHooks (simpleUserHooks { runTests = runTests' })
-
-> runTests' :: a -> b -> c -> d -> IO ()
-> runTests' _ _ _ _ = system "runhaskell Test.hs" >> return ()
+> main = defaultMain
View
26 data-object.cabal
@@ -15,19 +15,7 @@ cabal-version: >= 1.2
build-type: Simple
homepage: http://github.com/snoyberg/data-object/tree/master
-flag buildtests
- description: Build the executable to run unit tests
- default: False
-
-flag nolib
- description: Skip building the library.
- default: False
-
library
- if flag(nolib)
- Buildable: False
- else
- Buildable: True
build-depends: base >= 4 && < 5,
bytestring >= 0.9.1.4 && < 1,
text >= 0.5 && < 0.8,
@@ -35,17 +23,3 @@ library
failure >= 0.1.0 && < 0.2
exposed-modules: Data.Object
ghc-options: -Wall
-
-executable runtests
- if flag(buildtests)
- Buildable: True
- cpp-options: -DTEST
- build-depends: test-framework,
- test-framework-quickcheck,
- test-framework-hunit,
- HUnit,
- QuickCheck >= 1 && < 2
- else
- Buildable: False
- ghc-options: -Wall
- main-is: runtests.hs
View
12 runtests.hs
@@ -1,12 +0,0 @@
-{-# LANGUAGE FlexibleInstances #-}
-{-# LANGUAGE MultiParamTypeClasses #-}
-{-# OPTIONS_GHC -fno-warn-orphans #-}
-
-import Test.Framework (defaultMain)
-
-import qualified Data.Object.Text
-
-main :: IO ()
-main = defaultMain
- [ Data.Object.Text.testSuite
- ]
Please sign in to comment.
Something went wrong with that request. Please try again.