aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-14 20:05:37 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-22 23:40:27 +0200
commit554db03b637a76a01f2907d3115ef0dc290234c5 (patch)
tree3be67daacda982629edda5148b9bef00ab4fd9cd
parent20867f75e92931e2131a1badfa6b9606b970eb12 (diff)
Create convenience script for running specific HTML tests.
-rw-r--r--haddock.cabal4
-rwxr-xr-xhtml-test/Main.hs (renamed from html-test/run.hs)0
-rwxr-xr-xhtml-test/run5
3 files changed, 7 insertions, 2 deletions
diff --git a/haddock.cabal b/haddock.cabal
index c0e812a1..019f235e 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
index 8d1b40a8..8d1b40a8 100755
--- a/html-test/run.hs
+++ b/html-test/Main.hs
diff --git a/html-test/run b/html-test/run
new file mode 100755
index 00000000..5e17ad0f
--- /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" $@