Skip to content

Commit ae21eca

Browse files
committed
Use cabal's new test support
1 parent 1489f6e commit ae21eca

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Setup.lhs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
#!/usr/bin/env runhaskell
22
> import Distribution.Simple
3-
> import System.Cmd
4-
>
5-
> main = defaultMainWithHooks hooks
6-
> where hooks = simpleUserHooks { runTests = runTests' }
7-
>
8-
> runTests' _ _ _ _ = system "tests/run.sh" >> return ()
3+
> main = defaultMain

tests/ListWidgetTest.hs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{-# OPTIONS_GHC -XTemplateHaskell #-}
2-
module ListWidgetTest where
3-
42
import Test.Framework.TH
53
import Test.Framework.Providers.QuickCheck2
64

vimus.cabal

+11
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,14 @@ executable vimus
4848
Vimus
4949
Widget
5050
WindowLayout
51+
52+
test-suite default
53+
type: exitcode-stdio-1.0
54+
main-is: ListWidgetTest.hs
55+
hs-source-dirs: tests, src
56+
build-depends:
57+
QuickCheck
58+
, test-framework-quickcheck2
59+
, test-framework-th
60+
61+
cpp-options: -DTEST

0 commit comments

Comments
 (0)