From: simonm Date: Fri, 26 Sep 1997 10:03:57 +0000 (+0000) Subject: [project @ 1997-09-26 10:03:57 by simonm] X-Git-Tag: Approx_2487_patches~1462 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7908b385efb69e1c252414ad5a1c24c5d9708e04;p=ghc-hetmet.git [project @ 1997-09-26 10:03:57 by simonm] oops, forgot to add this file --- diff --git a/ghc/tests/mk/should_run.mk b/ghc/tests/mk/should_run.mk new file mode 100644 index 0000000..eab6786 --- /dev/null +++ b/ghc/tests/mk/should_run.mk @@ -0,0 +1,18 @@ +#----------------------------------------------------------------------------- +# template for should_run tests. + +HS_SRCS = $(wildcard *.hs) +BINS = $(patsubst %.o,%.bin,$(HS_OBJS)) +RUNTESTS = $(patsubst %.bin,%.run,$(BINS)) + +SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0 + +all :: $(RUNTESTS) + +%.run : %.bin + $(RUNTEST) $< $(RUNTEST_OPTS) + +%.bin : %.o + $(HC) $(HC_OPTS) $< -o $@ + +CLEAN_FILES += $(BINS)