summaryrefslogtreecommitdiff
path: root/testsuite/tests/plugins/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/plugins/Makefile')
-rw-r--r--testsuite/tests/plugins/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/plugins/Makefile b/testsuite/tests/plugins/Makefile
new file mode 100644
index 0000000000..8edee2305e
--- /dev/null
+++ b/testsuite/tests/plugins/Makefile
@@ -0,0 +1,20 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+.PHONY: plugins01 clean
+
+plugins01:
+ # This test is extremely fragile because any change in the output of the following
+ # commands invalidates the output of the run. In fact, we really want to ignore the
+ # output resulting from building the simple-plugin, and only look at a few lines of
+ # the output of the call to the TEST_HC (probably just the last 2).
+ #
+ # Suggestions to make this better gratefully recieved.
+ (cd simple-plugin; make package)
+ @$(RM) plugins01.hi plugins01.o
+ "$(TEST_HC)" $(HC_OPTS) --make -v0 plugins01.hs -package-conf simple-plugin/local.package.conf -fplugin Simple.Plugin -fplugin-opt Simple.Plugin:Irrelevant_Option -package simple-plugin
+ ./plugins01
+
+clean:
+ cd simple-plugin && make clean