summaryrefslogtreecommitdiff
path: root/testsuite/timeout/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-04-05 13:33:31 +0000
committerIan Lynagh <igloo@earth.li>2007-04-05 13:33:31 +0000
commitc45c86f97ee2f2aa759f7dfab86257b21fdbbb88 (patch)
tree8a1803ea2c321a11f1dc8aae336c491118345f97 /testsuite/timeout/Makefile
parent6ef11e543fee153cfc261bc3fe444656e03e0a15 (diff)
downloadhaskell-c45c86f97ee2f2aa759f7dfab86257b21fdbbb88.tar.gz
Calibrate the testsuite timeout if a value of -1 is given
Diffstat (limited to 'testsuite/timeout/Makefile')
-rw-r--r--testsuite/timeout/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/timeout/Makefile b/testsuite/timeout/Makefile
index f3424ad679..40d71e0881 100644
--- a/testsuite/timeout/Makefile
+++ b/testsuite/timeout/Makefile
@@ -4,6 +4,7 @@ include $(TOP)/mk/boilerplate.mk
HC = $(GHC_INPLACE)
MKDEPENDHS = $(GHC_INPLACE)
SRC_HC_OPTS += -threaded
+EXCLUDED_SRCS += Calibrate.hs
ifeq "$(Windows)" "NO"
SRC_HC_OPTS += -package unix
@@ -11,12 +12,19 @@ endif
HS_PROG = timeout
+boot :: calibrate.out
+
ifeq "$(findstring thr,$(GhcRTSWays))" "thr"
boot :: $(HS_PROG)
else
boot :: python-timeout
endif
+calibrate.out:
+ chmod +x calibrate
+ rm -f Calibrate.o Calibrate.hi Calibrate
+ ./calibrate "$(HC)" > $@
+
python-timeout:
cp timeout.py timeout
chmod +x timeout