diff options
author | David Terei <davidterei@gmail.com> | 2011-07-20 11:09:03 -0700 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2011-07-20 11:26:35 -0700 |
commit | 16514f272fb42af6e9c7674a9bd6c9dce369231f (patch) | |
tree | e4f332b45fe65e2a7a2451be5674f887b42bf199 /testsuite/tests/module/mod175 | |
parent | ebd422aed41048476aa61dd4c520d43becd78682 (diff) | |
download | haskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz |
Move tests from tests/ghc-regress/* to just tests/*
Diffstat (limited to 'testsuite/tests/module/mod175')
-rw-r--r-- | testsuite/tests/module/mod175/Makefile | 19 | ||||
-rw-r--r-- | testsuite/tests/module/mod175/Test.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/module/mod175/Test2.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/module/mod175/all.T | 8 | ||||
-rw-r--r-- | testsuite/tests/module/mod175/mod175.stdout | 2 |
5 files changed, 42 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 + diff --git a/testsuite/tests/module/mod175/Test.hs b/testsuite/tests/module/mod175/Test.hs new file mode 100644 index 0000000000..bc280d86a6 --- /dev/null +++ b/testsuite/tests/module/mod175/Test.hs @@ -0,0 +1,7 @@ + +module Test where + +import Test2 hiding (main) + +main = doit + diff --git a/testsuite/tests/module/mod175/Test2.hs b/testsuite/tests/module/mod175/Test2.hs new file mode 100644 index 0000000000..08d75ddf6e --- /dev/null +++ b/testsuite/tests/module/mod175/Test2.hs @@ -0,0 +1,6 @@ + +module Test2 where + +doit = putStrLn "You have run Test2.doit" +main = putStrLn "You have run Test2.main" + diff --git a/testsuite/tests/module/mod175/all.T b/testsuite/tests/module/mod175/all.T new file mode 100644 index 0000000000..8edbf0ae0f --- /dev/null +++ b/testsuite/tests/module/mod175/all.T @@ -0,0 +1,8 @@ +setTestOpts(only_compiler_types(['ghc'])) + +test('mod175', + [expect_broken(437), + clean_cmd('$MAKE -s clean')], + run_command, + ['$MAKE -s mod175']) + diff --git a/testsuite/tests/module/mod175/mod175.stdout b/testsuite/tests/module/mod175/mod175.stdout new file mode 100644 index 0000000000..a69871173d --- /dev/null +++ b/testsuite/tests/module/mod175/mod175.stdout @@ -0,0 +1,2 @@ +You have run Test2.doit +You have run Test2.main |