Build tests with -O0 and -O2
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Thu, 25 Aug 2011 21:55:22 +0000 (21:55 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Thu, 25 Aug 2011 21:55:22 +0000 (21:55 +0000)
tests/vector-tests.cabal

index 2879cb6..4cecc3b 100644 (file)
@@ -14,9 +14,14 @@ Description:
 Cabal-Version:  >= 1.2
 Build-Type:     Simple
 
-Executable "vector-tests"
+
+Executable "vector-tests-O0"
   Main-Is:  Main.hs
 
+  Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.7.2,
+                 random,
+                 QuickCheck >= 2, test-framework, test-framework-quickcheck2
+
   Extensions: CPP,
               ScopedTypeVariables,
               PatternGuards,
@@ -31,8 +36,15 @@ Executable "vector-tests"
                  random,
                  QuickCheck >= 2, test-framework, test-framework-quickcheck2
 
-  -- Don't let fusion occur or GHC will make our tests less informative in some cases :-)
-  Ghc-Options: -O0
-  
-  -- It's good practice to show all warnings, but since this is just test code let's ignore type sigs
+  Extensions: CPP,
+              ScopedTypeVariables,
+              PatternGuards,
+              MultiParamTypeClasses,
+              FlexibleContexts,
+              Rank2Types,
+              TypeSynonymInstances,
+              TypeFamilies,
+              TemplateHaskell
+
+  Ghc-Options: -O2
   Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures -rtsopts -threaded