-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove --cabal-file flag from v2 commands
- Loading branch information
1 parent
6314590
commit cd83aee
Showing
27 changed files
with
126 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2-fail/Includes2.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: fail | ||
version: 0.1.0.0 | ||
license: BSD3 | ||
author: Edward Z. Yang | ||
maintainer: ezyang@cs.stanford.edu | ||
build-type: Simple | ||
cabal-version: 2.0 | ||
|
||
library mylib | ||
build-depends: base | ||
signatures: Database | ||
exposed-modules: Mine | ||
hs-source-dirs: mylib | ||
default-language: Haskell2010 | ||
|
||
library mysql | ||
build-depends: base | ||
exposed-modules: Database.MySQL | ||
hs-source-dirs: mysql | ||
default-language: Haskell2010 | ||
|
||
library postgresql | ||
build-depends: base | ||
exposed-modules: Database.PostgreSQL | ||
hs-source-dirs: postgresql | ||
default-language: Haskell2010 | ||
|
||
library | ||
build-depends: base, mysql, postgresql, mylib | ||
mixins: | ||
mysql (Database.MySQL as Database), | ||
postgresql (Database.PostgreSQL as Database) | ||
exposed-modules: App | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2-fail/mylib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../mylib |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2-fail/mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../mysql |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2-fail/postgresql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../postgresql |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2-fail/src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src |
41 changes: 41 additions & 0 deletions
41
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2/Includes2.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Includes2 | ||
version: 0.1.0.0 | ||
license: BSD3 | ||
author: Edward Z. Yang | ||
maintainer: ezyang@cs.stanford.edu | ||
build-type: Simple | ||
cabal-version: 2.0 | ||
|
||
library mylib | ||
build-depends: base | ||
signatures: Database | ||
exposed-modules: Mine | ||
hs-source-dirs: mylib | ||
default-language: Haskell2010 | ||
|
||
library mysql | ||
build-depends: base | ||
exposed-modules: Database.MySQL | ||
hs-source-dirs: mysql | ||
default-language: Haskell2010 | ||
|
||
library postgresql | ||
build-depends: base | ||
exposed-modules: Database.PostgreSQL | ||
hs-source-dirs: postgresql | ||
default-language: Haskell2010 | ||
|
||
library | ||
build-depends: base, mysql, postgresql, mylib | ||
mixins: | ||
mylib (Mine as Mine.MySQL) requires (Database as Database.MySQL), | ||
mylib (Mine as Mine.PostgreSQL) requires (Database as Database.PostgreSQL) | ||
exposed-modules: App | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
executable exe | ||
build-depends: base, Includes2 | ||
main-is: Main.hs | ||
hs-source-dirs: exe | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../exe |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2/mylib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../mylib |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2/mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../mysql |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Backpack/Includes2/Includes2/postgresql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src |
2 changes: 1 addition & 1 deletion
2
cabal-testsuite/PackageTests/Backpack/Includes2/cabal.internal.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
packages: . | ||
packages: ./Includes2 |
2 changes: 1 addition & 1 deletion
2
cabal-testsuite/PackageTests/Backpack/Includes2/setup-internal-fail.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
r <- fails $ setup' "configure" ["--cabal-file", "Includes2.cabal.fail"] | ||
r <- fails $ withDirectory "Includes2-fail" $ setup' "configure" [] | ||
assertOutputContains "mysql" r |
9 changes: 5 additions & 4 deletions
9
cabal-testsuite/PackageTests/Backpack/Includes2/setup-internal.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
withPackageDb $ do | ||
setup_install ["--cabal-file", "Includes2.cabal"] | ||
-- TODO: haddock for internal method doesn't work | ||
runExe "exe" [] | ||
withPackageDb $ | ||
withDirectory "Includes2" $ do | ||
setup_install [] | ||
-- TODO: haddock for internal method doesn't work | ||
runExe "exe" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ReexportedModules/p-fail-other/Private.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../p/Private.hs |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/ReexportedModules/p-fail-other/Public.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../p/Public.hs |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
cabal-testsuite/PackageTests/ReexportedModules/setup-fail-missing.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 7.9" | ||
withDirectory "p" $ do | ||
r <- fails $ setup' "configure" ["--cabal-file", "p.cabal.fail-missing"] | ||
withDirectory "p-fail-missing" $ do | ||
r <- fails $ setup' "configure" [] | ||
assertOutputContains "Missing" r |
4 changes: 2 additions & 2 deletions
4
cabal-testsuite/PackageTests/ReexportedModules/setup-fail-other.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Test.Cabal.Prelude | ||
main = setupAndCabalTest $ do | ||
skipUnlessGhcVersion ">= 7.9" | ||
withDirectory "p" $ do | ||
r <- fails $ setup' "configure" ["--cabal-file", "p.cabal.fail-other"] | ||
withDirectory "p-fail-other" $ do | ||
r <- fails $ setup' "configure" [] | ||
assertOutputContains "Private" r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
cabal-testsuite/PackageTests/Regression/HadrianT634/setup.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
import Test.Cabal.Script | ||
main = setupTest $ | ||
void $ setup'' "pkg" "configure" ["--cabal-file", "pkg/a.cabal"] | ||
withDirectory "pkg" $ | ||
void $ setup' "configure" [] |