From 73ac6d4be0763fa34160f1e47df387f3c69a259e Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Fri, 5 Sep 1997 14:52:57 +0000
Subject: [PATCH] [project @ 1997-09-05 14:52:56 by simonm] templates for
 micro-test directories

---
 ghc/tests/mk/should_compile.mk | 13 +++++++++++++
 ghc/tests/mk/should_fail.mk    | 12 ++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 ghc/tests/mk/should_compile.mk
 create mode 100644 ghc/tests/mk/should_fail.mk

diff --git a/ghc/tests/mk/should_compile.mk b/ghc/tests/mk/should_compile.mk
new file mode 100644
index 000000000000..cb08aa566c2d
--- /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 000000000000..3c43e3634ea9
--- /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)
-- 
GitLab