From 8efa6cbc72bbdad8dceb06896f8c1e7a90ab6c6a Mon Sep 17 00:00:00 2001 From: Ɓukasz Hanuszczak Date: Tue, 18 Aug 2015 21:07:06 +0200 Subject: Adapt HTML test runner to use new ignoring functionality. --- html-test/Main.hs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html-test/Main.hs b/html-test/Main.hs index 8d1b40a8..49e769f5 100755 --- a/html-test/Main.hs +++ b/html-test/Main.hs @@ -1,6 +1,8 @@ {-# LANGUAGE CPP #-} +import Data.Char + import System.Environment import System.FilePath @@ -17,7 +19,9 @@ checkConfig = CheckConfig dirConfig :: DirConfig -dirConfig = defaultDirConfig $ takeDirectory __FILE__ +dirConfig = (defaultDirConfig $ takeDirectory __FILE__) + { dcfgCheckIgnore = checkIgnore + } main :: IO () @@ -36,3 +40,8 @@ stripIfRequired mdl = -- | List of modules in which we don't 'stripLinks' preserveLinksModules :: [String] preserveLinksModules = ["Bug253"] + + +checkIgnore :: FilePath -> Bool +checkIgnore file@(c:_) | takeExtension file == ".html" && isUpper c = False +checkIgnore _ = True -- cgit v1.2.3