summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod175/Makefile
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-07-20 11:09:03 -0700
committerDavid Terei <davidterei@gmail.com>2011-07-20 11:26:35 -0700
commit16514f272fb42af6e9c7674a9bd6c9dce369231f (patch)
treee4f332b45fe65e2a7a2451be5674f887b42bf199 /testsuite/tests/module/mod175/Makefile
parentebd422aed41048476aa61dd4c520d43becd78682 (diff)
downloadhaskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz
Move tests from tests/ghc-regress/* to just tests/*
Diffstat (limited to 'testsuite/tests/module/mod175/Makefile')
-rw-r--r--testsuite/tests/module/mod175/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod175/Makefile b/testsuite/tests/module/mod175/Makefile
new file mode 100644
index 0000000000..65fb2758d8
--- /dev/null
+++ b/testsuite/tests/module/mod175/Makefile
@@ -0,0 +1,19 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+clean:
+ rm -f *.o
+ rm -f *.hi
+ rm -f test test2
+
+# Test for trac bug #437 (Test2 needs to be recompiled in the second GHC
+# invocation as the main-is flag now applies to it).
+
+mod175:
+ $(MAKE) clean
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test.main Test.hs -o test
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test2.main Test2.hs -o test2
+ ./test
+ ./test2
+