summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/bug1465/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/bug1465/Makefile')
-rw-r--r--testsuite/tests/typecheck/bug1465/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/bug1465/Makefile b/testsuite/tests/typecheck/bug1465/Makefile
new file mode 100644
index 0000000000..965b21e99a
--- /dev/null
+++ b/testsuite/tests/typecheck/bug1465/Makefile
@@ -0,0 +1,33 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+LOCAL_PKGCONF=local.package.conf
+
+PKG=bug1465
+
+clean:
+ rm -f v1/setup v1/Setup.o v1/Setup.hi
+ rm -f v2/setup v2/Setup.o v2/Setup.hi
+ rm -rf v1/dist v2/dist
+ rm -f *.o *.hi
+ rm -f $(LOCAL_PKGCONF)
+
+bug1465:
+ $(MAKE) clean
+ $(MAKE) prep
+ '$(TEST_HC)' $(TEST_HC_OPTS) -package-conf $(LOCAL_PKGCONF) -c C.hs || exit 0
+ $(MAKE) clean
+
+prep:
+ echo "[]" >$(LOCAL_PKGCONF)
+ $(MAKE) prep.v1
+ $(MAKE) prep.v2
+ '$(TEST_HC)' $(TEST_HC_OPTS) -package-conf $(LOCAL_PKGCONF) -c -package $(PKG)-1.0 B1.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -package-conf $(LOCAL_PKGCONF) -c -package $(PKG)-2.0 B2.hs
+
+prep.%:
+ cd $* && '$(TEST_HC)' -v0 --make -o setup Setup.hs
+ cd $* && ./setup configure -v0 --with-compiler='$(TEST_HC)' --with-ghc-pkg='$(GHC_PKG)' --package-db ../$(LOCAL_PKGCONF)
+ cd $* && ./setup build -v0
+ cd $* && ./setup register -v0 --inplace