[project @ 2001-04-03 15:51:54 by simonmar]
authorsimonmar <unknown>
Tue, 3 Apr 2001 15:51:54 +0000 (15:51 +0000)
committersimonmar <unknown>
Tue, 3 Apr 2001 15:51:54 +0000 (15:51 +0000)
add missing file

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

diff --git a/ghc/tests/mk/ghci.mk b/ghc/tests/mk/ghci.mk
new file mode 100644 (file)
index 0000000..3b76bc4
--- /dev/null
@@ -0,0 +1,17 @@
+#-----------------------------------------------------------------------------
+# template for should_run tests.
+
+SCRIPTS = $(wildcard *.script)
+
+SRC_RUNTEST_OPTS += -x 0 \
+       $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
+       $(foreach i,$(wildcard $*.stderr),-o2 $(i))
+
+RUNTESTS = $(filter-out $(OMITTED_RUNTESTS), $(patsubst %.script,%.run,$(SCRIPTS)))
+
+all :: $(RUNTESTS)
+
+%.run : %.script
+       HC=$(HC) HC_OPTS="$(HC_OPTS)" $(RUNTEST) $(HC) -i$< $(RUNTEST_OPTS) -- --interactive
+
+include $(TOP)/mk/target.mk