{-
-Copyright (C) 2009, 2011 Google Inc.
+Copyright (C) 2009, 2011, 2012 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
import Data.Char
import Data.IORef
import Data.List
+import Data.Maybe (fromMaybe)
import System.Console.GetOpt ()
import System.Environment (getArgs)
import System.Exit
, oVerbose
, oShowVer
, oShowHelp
+ , oTestCount
]
fast :: Args
, (fast, testInstance)
, (fast, testNode)
, (fast, testText)
+ , (fast, testSimu)
, (fast, testOpCodes)
, (fast, testJobs)
, (fast, testLoader)
, (fast, testTypes)
+ , (fast, testCLI)
+ , (fast, testJSON)
+ , (fast, testLUXI)
+ , (fast, testSsconf)
, (slow, testCluster)
]
case vs of
[rng, size] -> return $ Just (read rng, read size)
_ -> fail "Invalid state given"
- return args { chatty = optVerbose opts > 1,
- replay = r
+ return args { chatty = optVerbose opts > 1
+ , replay = r
+ , maxSuccess = fromMaybe (maxSuccess args) (optTestCount opts)
+ , maxDiscard = fromMaybe (maxDiscard args) (optTestCount opts)
}
main :: IO ()