wire tasty's option parser into the main program option parser

This makes bash completion work for git-annex test, and is
generally cleaner.
This commit is contained in:
Joey Hess 2015-07-13 13:19:20 -04:00
parent 02d522a12e
commit 730cc3feb5
6 changed files with 82 additions and 82 deletions

22
Types/Test.hs Normal file
View file

@ -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 ()