import System.Environment (getArgs)
import Test.Ganeti.TestImports ()
+import Test.Ganeti.Attoparsec
import Test.Ganeti.BasicTypes
-import Test.Ganeti.Confd.Utils
+import Test.Ganeti.Block.Drbd.Parser
import Test.Ganeti.Common
+import Test.Ganeti.Confd.Utils
import Test.Ganeti.Daemon
+import Test.Ganeti.Errors
+import Test.Ganeti.HTools.Backend.Simu
+import Test.Ganeti.HTools.Backend.Text
import Test.Ganeti.HTools.CLI
import Test.Ganeti.HTools.Cluster
import Test.Ganeti.HTools.Container
-import Test.Ganeti.HTools.Loader
import Test.Ganeti.HTools.Instance
+import Test.Ganeti.HTools.Loader
import Test.Ganeti.HTools.Node
import Test.Ganeti.HTools.PeerMap
-import Test.Ganeti.HTools.Simu
-import Test.Ganeti.HTools.Text
import Test.Ganeti.HTools.Types
-import Test.Ganeti.HTools.Utils
-import Test.Ganeti.Jobs
import Test.Ganeti.JSON
+import Test.Ganeti.Jobs
import Test.Ganeti.Luxi
import Test.Ganeti.Objects
import Test.Ganeti.OpCodes
import Test.Ganeti.Query.Query
import Test.Ganeti.Rpc
import Test.Ganeti.Ssconf
+import Test.Ganeti.THH
+import Test.Ganeti.Types
+import Test.Ganeti.Utils
-- | Our default test options, overring the built-in test-framework
-- ones (but not the supplied command line parameters).
}
-- | All our defined tests.
-allTests :: [(String, [Test])]
+allTests :: [Test]
allTests =
[ testBasicTypes
+ , testAttoparsec
, testCommon
, testConfd_Utils
, testDaemon
+ , testBlock_Drbd_Parser
+ , testErrors
+ , testHTools_Backend_Simu
+ , testHTools_Backend_Text
, testHTools_CLI
, testHTools_Cluster
, testHTools_Container
, testHTools_Loader
, testHTools_Node
, testHTools_PeerMap
- , testHTools_Simu
- , testHTools_Text
, testHTools_Types
- , testHTools_Utils
, testJSON
, testJobs
, testLuxi
, testQuery_Query
, testRpc
, testSsconf
+ , testTHH
+ , testTypes
+ , testUtils
]
-- | Main function. Note we don't use defaultMain since we want to
main = do
ropts <- getArgs >>= interpretArgsOrExit
let opts = maybe defOpts (defOpts `mappend`) $ ropt_test_options ropts
- tests = map (uncurry testGroup) allTests
- defaultMainWithOpts tests (ropts { ropt_test_options = Just opts })
+ defaultMainWithOpts allTests (ropts { ropt_test_options = Just opts })