Skip to content

Commit

Permalink
Use cabal's new test support
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Feb 13, 2012
1 parent 1489f6e commit ae21eca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
7 changes: 1 addition & 6 deletions Setup.lhs
@@ -1,8 +1,3 @@
#!/usr/bin/env runhaskell
> import Distribution.Simple
> import System.Cmd
>
> main = defaultMainWithHooks hooks
> where hooks = simpleUserHooks { runTests = runTests' }
>
> runTests' _ _ _ _ = system "tests/run.sh" >> return ()
> main = defaultMain
2 changes: 0 additions & 2 deletions tests/ListWidgetTest.hs
@@ -1,6 +1,4 @@
{-# OPTIONS_GHC -XTemplateHaskell #-}
module ListWidgetTest where

import Test.Framework.TH
import Test.Framework.Providers.QuickCheck2

Expand Down
11 changes: 11 additions & 0 deletions vimus.cabal
Expand Up @@ -48,3 +48,14 @@ executable vimus
Vimus
Widget
WindowLayout

test-suite default
type: exitcode-stdio-1.0
main-is: ListWidgetTest.hs
hs-source-dirs: tests, src
build-depends:
QuickCheck
, test-framework-quickcheck2
, test-framework-th

cpp-options: -DTEST

0 comments on commit ae21eca

Please sign in to comment.