From: simonm Date: Fri, 5 Sep 1997 14:52:57 +0000 (+0000) Subject: [project @ 1997-09-05 14:52:56 by simonm] X-Git-Tag: Approx_2487_patches~1521 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=73ac6d4be0763fa34160f1e47df387f3c69a259e;p=ghc-hetmet.git [project @ 1997-09-05 14:52:56 by simonm] templates for micro-test directories --- diff --git a/ghc/tests/mk/should_compile.mk b/ghc/tests/mk/should_compile.mk new file mode 100644 index 0000000..cb08aa5 --- /dev/null +++ b/ghc/tests/mk/should_compile.mk @@ -0,0 +1,13 @@ +#----------------------------------------------------------------------------- +# template for should_compile tests. + +HS_SRCS = $(wildcard *.hs) + +SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0 + +%.o : %.hs + @echo \*\*\* Testing for successful compilation of $< + @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@ + +all :: $(HS_OBJS) + diff --git a/ghc/tests/mk/should_fail.mk b/ghc/tests/mk/should_fail.mk new file mode 100644 index 0000000..3c43e36 --- /dev/null +++ b/ghc/tests/mk/should_fail.mk @@ -0,0 +1,12 @@ +#----------------------------------------------------------------------------- +# template for should_fail tests + +HS_SRCS = $(wildcard *.hs) + +SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 1 + +%.o : %.hs + @echo \*\*\* Testing for failure to compile $< + @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@ + +all :: $(HS_OBJS)