Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #10 from serras/test-suites

Small patch for running test-suites.
  • Loading branch information...
commit e32ec2c85ffb19101af8b4ad4db61b7af7085d67 2 parents 642449e + ac7500c
JP Moresmau authored

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. +11 0 lib/Scion/Cabal.hs
11 lib/Scion/Cabal.hs
@@ -255,6 +255,10 @@ cabalDynFlags component = do
255 255 let odir
256 256 | Executable {exe_name=exeName'} <- component
257 257 = odir0 </> dropExtension exeName'
  258 +#if CABAL_VERSION > 108
  259 + | TestSuite {test_name=testName'} <- component
  260 + = odir0 </> dropExtension testName'
  261 +#endif
258 262 | otherwise
259 263 = odir0
260 264 #if CABAL_VERSION < 107
@@ -299,6 +303,13 @@ cabalDynFlags component = do
299 303 (if null $ takeExtension exeName'
300 304 then exeExtension
301 305 else "")]
  306 +#if CABAL_VERSION > 108
  307 + TestSuite{test_name=test_name'} ->
  308 + ["-o", odir </> test_name' <.>
  309 + (if null $ takeExtension test_name'
  310 + then exeExtension
  311 + else "")]
  312 +#endif
302 313 _ -> []
303 314
304 315 fromJustD :: [Char] -> Maybe a -> a

0 comments on commit e32ec2c

Please sign in to comment.
Something went wrong with that request. Please try again.