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-03-24 22:28:21 +00:00
|
|
|
command "test" paramNothing seek SectionPlumbing
|
|
|
|
"run built-in test suite"]
|
2013-02-27 19:35:07 +00:00
|
|
|
|
|
|
|
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"
|