ghcup-hs/test/optparse-test/RunTest.hs
2023-07-28 23:26:19 +08:00

32 lines
484 B
Haskell

module RunTest where
import Test.Tasty
import GHCup.OptParse
import Utils
runTests :: TestTree
runTests = buildTestTree runParseWith ("run", runCheckList)
defaultOptions :: RunOptions
defaultOptions =
RunOptions
False
False
False
Nothing
Nothing
Nothing
Nothing
Nothing
False
[]
runCheckList :: [(String, RunOptions)]
runCheckList = []
runParseWith :: [String] -> IO RunOptions
runParseWith args = do
Run a <- parseWith args
pure a