blob: 48cfb25727ab7ca93689fe554eaf74e5f77db329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|