From f7337b12cc3c198a3827c31cbc2854501f360595 Mon Sep 17 00:00:00 2001 From: Łukasz Hanuszczak Date: Tue, 18 Aug 2015 21:58:37 +0200 Subject: Copy test runner script for hyperlinked source case. --- hypsrc-test/run | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 hypsrc-test/run (limited to 'hypsrc-test/run') diff --git a/hypsrc-test/run b/hypsrc-test/run new file mode 100755 index 00000000..5e17ad0f --- /dev/null +++ b/hypsrc-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" $@ -- cgit v1.2.3 From f2b7e4d0b7be232841e86edabf5152f242976105 Mon Sep 17 00:00:00 2001 From: Łukasz Hanuszczak Date: Sat, 22 Aug 2015 23:28:19 +0200 Subject: Improve portability of test runner scripts. --- hoogle-test/run | 5 +++-- html-test/run | 5 +++-- hypsrc-test/run | 5 +++-- latex-test/run | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'hypsrc-test/run') diff --git a/hoogle-test/run b/hoogle-test/run index 5e17ad0f..3e72be80 100755 --- a/hoogle-test/run +++ b/hoogle-test/run @@ -1,5 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash export HADDOCK_PATH=$(which haddock) LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/" -runhaskell -i:"$LIB_PATH" "Main.hs" $@ +MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs" +runhaskell -i:"$LIB_PATH" $MAIN_PATH $@ diff --git a/html-test/run b/html-test/run index 5e17ad0f..3e72be80 100755 --- a/html-test/run +++ b/html-test/run @@ -1,5 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash export HADDOCK_PATH=$(which haddock) LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/" -runhaskell -i:"$LIB_PATH" "Main.hs" $@ +MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs" +runhaskell -i:"$LIB_PATH" $MAIN_PATH $@ diff --git a/hypsrc-test/run b/hypsrc-test/run index 5e17ad0f..3e72be80 100755 --- a/hypsrc-test/run +++ b/hypsrc-test/run @@ -1,5 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash export HADDOCK_PATH=$(which haddock) LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/" -runhaskell -i:"$LIB_PATH" "Main.hs" $@ +MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs" +runhaskell -i:"$LIB_PATH" $MAIN_PATH $@ diff --git a/latex-test/run b/latex-test/run index 5e17ad0f..3e72be80 100755 --- a/latex-test/run +++ b/latex-test/run @@ -1,5 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash export HADDOCK_PATH=$(which haddock) LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/" -runhaskell -i:"$LIB_PATH" "Main.hs" $@ +MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs" +runhaskell -i:"$LIB_PATH" $MAIN_PATH $@ -- cgit v1.2.3