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/driver/T3007 | |
parent | ebd422aed41048476aa61dd4c520d43becd78682 (diff) | |
download | haskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz |
Move tests from tests/ghc-regress/* to just tests/*
Diffstat (limited to 'testsuite/tests/driver/T3007')
-rw-r--r-- | testsuite/tests/driver/T3007/A/A.cabal | 7 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/A/A.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/A/Internal.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/A/Setup.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/B/B.cabal | 8 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/B/B.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/B/Internal.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/B/Internal.hs-boot | 1 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/B/Setup.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/Makefile | 21 | ||||
-rw-r--r-- | testsuite/tests/driver/T3007/all.T | 5 |
11 files changed, 70 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T3007/A/A.cabal b/testsuite/tests/driver/T3007/A/A.cabal new file mode 100644 index 0000000000..86b3bb013e --- /dev/null +++ b/testsuite/tests/driver/T3007/A/A.cabal @@ -0,0 +1,7 @@ +Name: A +Version: 0 + +Library + Exposed-Modules: A + Other-Modules: Internal + Extensions: NoImplicitPrelude diff --git a/testsuite/tests/driver/T3007/A/A.hs b/testsuite/tests/driver/T3007/A/A.hs new file mode 100644 index 0000000000..83e99f555f --- /dev/null +++ b/testsuite/tests/driver/T3007/A/A.hs @@ -0,0 +1,7 @@ +module A ( + + A (A) + +) where + + import Internal diff --git a/testsuite/tests/driver/T3007/A/Internal.hs b/testsuite/tests/driver/T3007/A/Internal.hs new file mode 100644 index 0000000000..761480dece --- /dev/null +++ b/testsuite/tests/driver/T3007/A/Internal.hs @@ -0,0 +1,7 @@ +module Internal ( + + A (A) + +) where + + data A = A diff --git a/testsuite/tests/driver/T3007/A/Setup.hs b/testsuite/tests/driver/T3007/A/Setup.hs new file mode 100644 index 0000000000..9a994af677 --- /dev/null +++ b/testsuite/tests/driver/T3007/A/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/testsuite/tests/driver/T3007/B/B.cabal b/testsuite/tests/driver/T3007/B/B.cabal new file mode 100644 index 0000000000..dbccfffbe9 --- /dev/null +++ b/testsuite/tests/driver/T3007/B/B.cabal @@ -0,0 +1,8 @@ +Name: B +Version: 0 + +Library + Build-Depends: A == 0 + Exposed-Modules: B + Other-Modules: Internal + Extensions: NoImplicitPrelude diff --git a/testsuite/tests/driver/T3007/B/B.hs b/testsuite/tests/driver/T3007/B/B.hs new file mode 100644 index 0000000000..9bd13bbaec --- /dev/null +++ b/testsuite/tests/driver/T3007/B/B.hs @@ -0,0 +1,7 @@ +module B where + + import A + import {-# SOURCE #-} Internal + + a :: A + a = A diff --git a/testsuite/tests/driver/T3007/B/Internal.hs b/testsuite/tests/driver/T3007/B/Internal.hs new file mode 100644 index 0000000000..ccb9cd4b23 --- /dev/null +++ b/testsuite/tests/driver/T3007/B/Internal.hs @@ -0,0 +1,3 @@ +module Internal where + + import B diff --git a/testsuite/tests/driver/T3007/B/Internal.hs-boot b/testsuite/tests/driver/T3007/B/Internal.hs-boot new file mode 100644 index 0000000000..d066bb085e --- /dev/null +++ b/testsuite/tests/driver/T3007/B/Internal.hs-boot @@ -0,0 +1 @@ +module Internal where diff --git a/testsuite/tests/driver/T3007/B/Setup.hs b/testsuite/tests/driver/T3007/B/Setup.hs new file mode 100644 index 0000000000..9a994af677 --- /dev/null +++ b/testsuite/tests/driver/T3007/B/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/testsuite/tests/driver/T3007/Makefile b/testsuite/tests/driver/T3007/Makefile new file mode 100644 index 0000000000..8c81bff205 --- /dev/null +++ b/testsuite/tests/driver/T3007/Makefile @@ -0,0 +1,21 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +clean: + rm -f A/Setup A/Setup.o A/Setup.hi + rm -f B/Setup B/Setup.o B/Setup.hi + rm -rf A/dist B/dist + rm -f package.conf + +T3007: + $(MAKE) clean + echo '[]' > package.conf + cd A && '$(TEST_HC)' -v0 --make Setup + cd A && ./Setup configure -v0 --with-compiler='$(TEST_HC)' --ghc-pkg-option=--global-conf=../package.conf --ghc-option=-package-conf../package.conf + cd A && ./Setup build -v0 + cd A && ./Setup register --inplace -v0 + cd B && '$(TEST_HC)' -v0 --make Setup + cd B && ./Setup configure -v0 --with-compiler='$(TEST_HC)' --ghc-pkg-option=--global-conf=../package.conf --ghc-option=-package-conf../package.conf + cd B && ./Setup build -v0 + diff --git a/testsuite/tests/driver/T3007/all.T b/testsuite/tests/driver/T3007/all.T new file mode 100644 index 0000000000..194097335d --- /dev/null +++ b/testsuite/tests/driver/T3007/all.T @@ -0,0 +1,5 @@ +test('T3007', + clean_cmd('$MAKE -s clean'), + run_command, + ['$MAKE -s --no-print-directory T3007']) + |