[project @ 1997-09-05 14:52:56 by simonm]
authorsimonm <unknown>
Fri, 5 Sep 1997 14:52:57 +0000 (14:52 +0000)
committersimonm <unknown>
Fri, 5 Sep 1997 14:52:57 +0000 (14:52 +0000)
templates for micro-test directories

ghc/tests/mk/should_compile.mk [new file with mode: 0644]
ghc/tests/mk/should_fail.mk [new file with mode: 0644]

diff --git a/ghc/tests/mk/should_compile.mk b/ghc/tests/mk/should_compile.mk
new file mode 100644 (file)
index 0000000..cb08aa5
--- /dev/null
@@ -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 (file)
index 0000000..3c43e36
--- /dev/null
@@ -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)