Commit e24031e7 authored by Bodigrim's avatar Bodigrim Committed by Xia Li-yao
Browse files

Do not run inspection tests in developer mode

parent 58bfda22
-- | Provides a simple main function which runs all the tests
--
{-# LANGUAGE CPP #-}
module Main
( main
) where
......@@ -10,14 +10,18 @@ import qualified Tests.Lift as Lift
import qualified Tests.Properties as Properties
import qualified Tests.Regressions as Regressions
#if !defined(ASSERTS)
import qualified Tests.Inspection.Strict as InspectionStrict
import qualified Tests.Inspection.Lazy as InspectionLazy
#endif
main :: IO ()
main = defaultMain $ testGroup "All"
[ Lift.tests
, Properties.tests
, Regressions.tests
#if !defined(ASSERTS)
, InspectionStrict.tests
, InspectionLazy.tests
#endif
]
......@@ -181,8 +181,6 @@ test-suite tests
hs-source-dirs: tests
main-is: Tests.hs
other-modules:
Tests.Inspection.Lazy
Tests.Inspection.Strict
Tests.Lift
Tests.Properties
Tests.Properties.Basics
......@@ -199,6 +197,15 @@ test-suite tests
Tests.SlowFunctions
Tests.Utils
-- Fusion tests fail in developer mode (because asserts break inlining)
-- and take ages to build.
if flag(developer)
cpp-options: -DASSERTS
else
other-modules:
Tests.Inspection.Lazy
Tests.Inspection.Strict
build-depends:
QuickCheck >= 2.14.1 && < 2.15,
base <5,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment