From 52cfabcd567a3b15c8217edce752f3a3c59ca5ce Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 13 Jul 2015 13:19:20 -0400 Subject: wire tasty's option parser into the main program option parser This makes bash completion work for git-annex test, and is generally cleaner. --- Types/Test.hs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Types/Test.hs (limited to 'Types/Test.hs') 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 + - + - 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 () -- cgit v1.2.3