ab201a98cc355735284f5212f3d7af14b195b353
[ghc-hetmet.git] / ghc / tests / mk / should_fail.mk
1 #-----------------------------------------------------------------------------
2 # $Id: should_fail.mk,v 1.4 2000/11/03 16:23:38 simonmar Exp $
3 # template for should_fail tests
4
5 HS_SRCS = $(wildcard *.hs)
6
7 SRC_RUNTEST_OPTS += -x 1 \
8         $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
9         $(foreach i,$(wildcard $*.stderr),-o2 $(i))
10
11 %.o : %.hs
12         @echo ---- Testing for failure to compile $<
13         @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
14
15 all :: $(HS_OBJS)
16
17 # occasionally a test goes wrong and compiles by mistake, so...
18 CLEAN_FILES += ShouldFail.hi