[commit: haddock] 2.17.3.1-spanfix, alexbiehl-patch-1, ghc-8.0, ghc-8.0-facebook, ghc-head, ghc-head1, haddock-quick, headdock-library-1.4.5, ie_avails, issue-303, issue-475, master, pr-filter-maps, pr/cabal-desc, travis, v2.17, v2.17.3, v2.18, wip-located-module-as, wip/D2418, wip/T11080-open-data-kinds, wip/T11430, wip/T12105, wip/T12105-2, wip/T12942, wip/T13163, wip/T14529, wip/T3384, wip/embelleshed-rdr, wip/new-tree-one-param, wip/rae, wip/remove-frames, wip/remove-frames1, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13, wip/ttg6-unrevert-2017-11-22: Create convenience script for running specific HTML tests. (554db03)

git at git.haskell.org git at git.haskell.org
Tue Nov 28 11:37:59 UTC 2017


Repository : ssh://git@git.haskell.org/haddock

On branches: 2.17.3.1-spanfix,alexbiehl-patch-1,ghc-8.0,ghc-8.0-facebook,ghc-head,ghc-head1,haddock-quick,headdock-library-1.4.5,ie_avails,issue-303,issue-475,master,pr-filter-maps,pr/cabal-desc,travis,v2.17,v2.17.3,v2.18,wip-located-module-as,wip/D2418,wip/T11080-open-data-kinds,wip/T11430,wip/T12105,wip/T12105-2,wip/T12942,wip/T13163,wip/T14529,wip/T3384,wip/embelleshed-rdr,wip/new-tree-one-param,wip/rae,wip/remove-frames,wip/remove-frames1,wip/revert-ttg-2017-11-20,wip/ttg-2017-10-13,wip/ttg-2017-10-31,wip/ttg-2017-11-06,wip/ttg2-2017-11-10,wip/ttg3-2017-11-12,wip/ttg4-constraints-2017-11-13,wip/ttg6-unrevert-2017-11-22
Link       : http://git.haskell.org/haddock.git/commitdiff/554db03b637a76a01f2907d3115ef0dc290234c5

>---------------------------------------------------------------

commit 554db03b637a76a01f2907d3115ef0dc290234c5
Author: Ɓukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date:   Fri Aug 14 20:05:37 2015 +0200

    Create convenience script for running specific HTML tests.


>---------------------------------------------------------------

554db03b637a76a01f2907d3115ef0dc290234c5
 haddock.cabal                 | 4 ++--
 html-test/{run.hs => Main.hs} | 0
 html-test/run                 | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/haddock.cabal b/haddock.cabal
index c0e812a..019f235 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -125,9 +125,9 @@ executable haddock
 test-suite html-test
   type:             exitcode-stdio-1.0
   default-language: Haskell2010
-  main-is:          run.hs
+  main-is:          Main.hs
   hs-source-dirs:   html-test
-  build-depends:    base, directory, process, filepath, Cabal, xml, syb, haddock-test
+  build-depends:    base, filepath, haddock-test
 
 test-suite hypsrc-test
   type:             exitcode-stdio-1.0
diff --git a/html-test/run.hs b/html-test/Main.hs
similarity index 100%
rename from html-test/run.hs
rename to html-test/Main.hs
diff --git a/html-test/run b/html-test/run
new file mode 100755
index 0000000..5e17ad0
--- /dev/null
+++ b/html-test/run
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export HADDOCK_PATH=$(which haddock)
+LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
+runhaskell -i:"$LIB_PATH" "Main.hs" $@



More information about the ghc-commits mailing list