Commit 730ab9b8 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-08-22 10:36:07 by simonmar]

Add a simple fptools project, so we don't have to wire in things like
the location of GHC_INPLACE, and so we can use Makefiles in the
various test subdirectories to simplify running the test driver.
parent 2dd00f31
TESTSUITE_TOP := $(TOP)
TOP:=$(TOP)/..
include $(TOP)/mk/boilerplate.mk
TOP:=$(TESTSUITE_TOP)
# -----------------------------------------------------------------------------
# Examples of use:
#
# make -- run all the tests in the current directory
# make verbose -- as make test, but up the verbosity
# make accept -- run the tests, accepting the current output
#
# The following variables may be set on the make command line:
#
# TESTS -- specific tests to run
# EXTRA_HC_OPTS -- extra flags to send to the Haskell compiler
# EXTRA_RUNTEST_OPTS -- extra flags to give the test driver
# CONFIG -- use a different configuration file
#
# -----------------------------------------------------------------------------
RUNTESTS = $(TOP)/driver/runtests
RUNTEST_OPTS = --config=$(CONFIG) tool=$(GHC_INPLACE) extra_hc_flags="$(EXTRA_HC_OPTS)" $(EXTRA_RUNTEST_OPTS)
CONFIG = $(TOP)/config/msrc/cam-02-unx.T
TESTS =
all :: test
test:
$(RUNTESTS) $(RUNTEST_OPTS) $(TESTS)
verbose:
$(RUNTESTS) $(RUNTEST_OPTS) verbose= $(TESTS)
accept:
$(RUNTESTS) $(RUNTEST_OPTS) accept= verbose= $(TESTS)
include $(FPTOOLS_TOP)/mk/target.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment