summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2014-02-26 14:26:42 +0100
committerDaniel Gröber <dxld@darkboxed.org>2014-02-26 16:09:22 +0100
commitb041624dca8b66d89180158e28bc5d0808046023 (patch)
treeb5230c5597e48c45ebf11009fb709a4138741b8f /tests
parentfa01c6b1b3918b5dc68933ad18a7ce930788338b (diff)
Fix Travis build
Diffstat (limited to 'tests')
-rw-r--r--tests/Main.hs3
-rw-r--r--tests/Spec.hs2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/Main.hs b/tests/Main.hs
index 6577e6f4..75321ec7 100644
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -10,6 +10,7 @@ import System.Environment
10import System.Process 10import System.Process
11import System.Directory 11import System.Directory
12import Text.Printf 12import Text.Printf
13import Test.Hspec
13 14
14import Config 15import Config
15import Spec 16import Spec
@@ -64,7 +65,7 @@ terminateEnv = do
64runTestSuite :: [String] -> IO ExitCode 65runTestSuite :: [String] -> IO ExitCode
65runTestSuite args = do 66runTestSuite args = do
66 printf "running hspec test suite with args: %s\n" (show args) 67 printf "running hspec test suite with args: %s\n" (show args)
67 catch (withArgs args hspecMain >> return ExitSuccess) return 68 catch (withArgs args (hspec spec) >> return ExitSuccess) return
68 69
69main :: IO () 70main :: IO ()
70main = do 71main = do
diff --git a/tests/Spec.hs b/tests/Spec.hs
index 8d2b5139..b4e92e75 100644
--- a/tests/Spec.hs
+++ b/tests/Spec.hs
@@ -1 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --hook-main #-} {-# OPTIONS_GHC -F -pgmF hspec-discover -optF --no-main #-}