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 | 730cc3feb52d59e0bcfa420f327c4185df1bc6b4 (patch) | |
tree | ae922abbf5c8f23d5b38904d59dce27ec3ffcd08 /Types/Test.hs | |
parent | 02d522a12eee595d95f4119f3dba465508248694 (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/Test.hs')
-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 0000000000..35c4c3c235 --- /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 () |