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/ghc-regress/cabal/cabal01 | |
parent | ebd422aed41048476aa61dd4c520d43becd78682 (diff) | |
download | haskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz |
Move tests from tests/ghc-regress/* to just tests/*
Diffstat (limited to 'testsuite/tests/ghc-regress/cabal/cabal01')
12 files changed, 0 insertions, 119 deletions
diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/A.hs b/testsuite/tests/ghc-regress/cabal/cabal01/A.hs deleted file mode 100644 index c5227050f9..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/A.hs +++ /dev/null @@ -1,4 +0,0 @@ -module A where -a = 42 :: Int - -main2 = print a diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/B/A.hs b/testsuite/tests/ghc-regress/cabal/cabal01/B/A.hs deleted file mode 100644 index 3e1183b315..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/B/A.hs +++ /dev/null @@ -1,4 +0,0 @@ -module B.A where -a = 42 :: Int - -main = print a diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/B/MainB.hs b/testsuite/tests/ghc-regress/cabal/cabal01/B/MainB.hs deleted file mode 100644 index 823fb19c43..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/B/MainB.hs +++ /dev/null @@ -1,5 +0,0 @@ -module Main where - -import A - -main = print a diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/MainA.hs b/testsuite/tests/ghc-regress/cabal/cabal01/MainA.hs deleted file mode 100644 index 823fb19c43..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/MainA.hs +++ /dev/null @@ -1,5 +0,0 @@ -module Main where - -import A - -main = print a diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/Makefile b/testsuite/tests/ghc-regress/cabal/cabal01/Makefile deleted file mode 100644 index 84c2f6195f..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -TOP=../../../.. -include $(TOP)/mk/boilerplate.mk -include $(TOP)/mk/test.mk - -clean: - rm -rf setup a.out dist/build/testA - rm -rf ,tmp dist ,tmp2 - find . -name "*.o" |xargs rm -f - find . -name "*.hi" |xargs rm -f - rm -fr install-tmp - rm -fr install - rm -f .setup-config .installed-pkg-config - rm -rf local.db - -# We use the global package database as there's no easy way to tell -# ghc-pkg (via Cabal) to use one in ., and the global one at least -# won't affect the installed GHC and is more likely to work - -PREFIX := $(abspath install) -$(eval $(call canonicalise,PREFIX)) - -cabal01: - $(MAKE) clean - '$(TEST_HC)' --make -o setup Setup.lhs -v0 - - '$(GHC_PKG)' init local.db - ./setup configure -v0 --prefix=$(PREFIX) --with-compiler='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' --with-hc-pkg='$(GHC_PKG)' --package-db=local.db $(PROF) - ./setup build -v0 - ./setup copy -v0 - echo install1: - ls -1 install - rm -r install -# install w/ register! - ./setup install -v0 - echo install2: - ls -1 install - ./setup sdist -v0 - echo dist: - ls -1 dist - if [ "$(CLEANUP)" != "" ]; then $(MAKE) clean; fi - diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/Setup.lhs b/testsuite/tests/ghc-regress/cabal/cabal01/Setup.lhs deleted file mode 100644 index b2dccbe310..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/Setup.lhs +++ /dev/null @@ -1,2 +0,0 @@ -> import Distribution.Simple -> main = defaultMain diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/all.T b/testsuite/tests/ghc-regress/cabal/cabal01/all.T deleted file mode 100644 index 299b0b8a06..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/all.T +++ /dev/null @@ -1,16 +0,0 @@ -setTestOpts(only_compiler_types(['ghc'])) - -if config.have_profiling: - prof = '--enable-library-profiling' -else: - prof = '' - -if default_testopts.cleanup != '': - cleanup = 'CLEANUP=1' -else: - cleanup = '' - -test('cabal01', - normal, - run_command, - ['$MAKE -s --no-print-directory cabal01 PROF=' + prof + ' ' + cleanup]) diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/c_src/hello.c b/testsuite/tests/ghc-regress/cabal/cabal01/c_src/hello.c deleted file mode 100644 index 2ae1c276eb..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/c_src/hello.c +++ /dev/null @@ -1 +0,0 @@ -int foo () {return 9;} diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout b/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout deleted file mode 100644 index e828cbe68a..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout +++ /dev/null @@ -1,12 +0,0 @@ -install1: -bin -lib -install2: -bin -lib -dist: -build -package.conf.inplace -setup-config -src -test-1.0.tar.gz diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout-i386-unknown-mingw32 b/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout-i386-unknown-mingw32 deleted file mode 100644 index 647a2324b0..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/cabal01.stdout-i386-unknown-mingw32 +++ /dev/null @@ -1,12 +0,0 @@ -install1:
-bin
-test-1.0
-install2:
-bin
-test-1.0
-dist:
-build
-package.conf.inplace
-setup-config
-src
-test-1.0.tar.gz
diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/hello.c b/testsuite/tests/ghc-regress/cabal/cabal01/hello.c deleted file mode 100644 index de051f6f6b..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/hello.c +++ /dev/null @@ -1 +0,0 @@ -int main () {return 9;} diff --git a/testsuite/tests/ghc-regress/cabal/cabal01/test.cabal b/testsuite/tests/ghc-regress/cabal/cabal01/test.cabal deleted file mode 100644 index f49d8742da..0000000000 --- a/testsuite/tests/ghc-regress/cabal/cabal01/test.cabal +++ /dev/null @@ -1,16 +0,0 @@ -Name: test -Version: 1.0 -Exposed-Modules: A -Other-Modules: B.A -C-Sources: hello.c, c_src/hello.c -Extensions: ForeignFunctionInterface -Build-depends: base>=1.0 - -Executable: testA -Other-Modules: A, MainA -Main-is: MainA.hs -Extensions: OverlappingInstances - -Executable: testB -Other-Modules: B.A, B.MainB -Main-is: B/MainB.hs |