2013-02-27 19:35:07 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2013 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.Test where
|
|
|
|
|
|
|
|
import Command
|
|
|
|
|
|
|
|
def :: [Command]
|
2013-02-27 19:48:26 +00:00
|
|
|
def = [ dontCheck repoExists $
|
2013-02-27 19:35:07 +00:00
|
|
|
command "test" paramNothing seek "run built-in test suite"]
|
|
|
|
|
|
|
|
seek :: [CommandSeek]
|
|
|
|
seek = [withWords start]
|
|
|
|
|
2013-02-27 19:48:26 +00:00
|
|
|
{- We don't actually run the test suite here because of a dependency loop.
|
|
|
|
- The main program notices when the command is test and runs it; this
|
|
|
|
- function is never run if that works. -}
|
2013-02-27 19:35:07 +00:00
|
|
|
start :: [String] -> CommandStart
|
2013-02-27 19:48:26 +00:00
|
|
|
start _ = error "Cannot specify any additional parameters when running test"
|