diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-13 13:19:20 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-13 13:20:10 -0400 |
commit | 52cfabcd567a3b15c8217edce752f3a3c59ca5ce (patch) | |
tree | f0512188b4e56640fcceeec0dddb9c754ed23783 /Types | |
parent | 8e9ddfe41e73662be5c7fd0ebc6432a52b1dd227 (diff) |
wire tasty's option parser into the main program option parser
This makes bash completion work for git-annex test, and is
generally cleaner.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Test.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Types/Test.hs b/Types/Test.hs new file mode 100644 index 000000000..35c4c3c23 --- /dev/null +++ b/Types/Test.hs @@ -0,0 +1,22 @@ +{- git-annex test data types. + - + - Copyright 2011-2015 Joey Hess <id@joeyh.name> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +{-# LANGUAGE CPP #-} + +module Types.Test where + +#ifdef WITH_TESTSUITE +import Test.Tasty.Options +#endif + +#ifdef WITH_TESTSUITE +type TestOptions = OptionSet +#else +type TestOptions = () +#endif + +type TestRunner = TestOptions -> IO () |