-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for unsupported builds on Windows
- Loading branch information
Showing
10 changed files
with
58 additions
and
0 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
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,4 @@ | ||
module Main where | ||
|
||
main :: IO () | ||
main = pure () |
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,8 @@ | ||
cabal-version: 3.0 | ||
name: aa | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
|
||
executable a | ||
default-language: Haskell2010 | ||
main-is: Main.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,10 @@ | ||
# cabal build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- aa-0.1.0.0 (exe:a) (first run) | ||
Configuring executable 'a' for aa-0.1.0.0... | ||
Error: [Cabal-3339] | ||
Operating system: windows, does not support shared executables | ||
Error: [Cabal-7125] | ||
Failed to build aa-0.1.0.0-inplace-a. The failure occurred during the configure step. |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/NoOSSupport/DynExe/cabal.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = do | ||
skipUnlessWindows | ||
cabalTest $ fails $ cabal "build" ["--enable-executable-dynamic"] |
4 changes: 4 additions & 0 deletions
4
cabal-testsuite/PackageTests/NoOSSupport/RelocatableExe/Main.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,4 @@ | ||
module Main where | ||
|
||
main :: IO () | ||
main = pure () |
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/NoOSSupport/RelocatableExe/a.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,8 @@ | ||
cabal-version: 3.0 | ||
name: aa | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
|
||
executable a | ||
default-language: Haskell2010 | ||
main-is: Main.hs |
10 changes: 10 additions & 0 deletions
10
cabal-testsuite/PackageTests/NoOSSupport/RelocatableExe/cabal.out
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,10 @@ | ||
# cabal build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- aa-0.1.0.0 (exe:a) (first run) | ||
Configuring executable 'a' for aa-0.1.0.0... | ||
Error: [Cabal-3339] | ||
Operating system: windows, does not support relocatable builds | ||
Error: [Cabal-7125] | ||
Failed to build aa-0.1.0.0-inplace-a. The failure occurred during the configure step. |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/NoOSSupport/RelocatableExe/cabal.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = do | ||
skipUnlessWindows | ||
cabalTest $ fails $ cabal "build" ["--enable-relocatable"] |
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