-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install by copy test and skip symlink install for Windows
- Loading branch information
1 parent
0e19571
commit 7f696e5
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
cabal-testsuite/PackageTests/WarnEarlyOverwrite/clean-install-by-copy.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,12 @@ | ||
# cabal v2-install | ||
Wrote tarball sdist to <ROOT>/clean-install-by-copy.dist/work/./dist/sdist/WarnEarlyOverwrite-0.1.0.0.tar.gz | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- WarnEarlyOverwrite-0.1.0.0 (exe:warn-early-overwrite) (requires build) | ||
Configuring executable 'warn-early-overwrite' for WarnEarlyOverwrite-0.1.0.0... | ||
Preprocessing executable 'warn-early-overwrite' for WarnEarlyOverwrite-0.1.0.0... | ||
Building executable 'warn-early-overwrite' for WarnEarlyOverwrite-0.1.0.0... | ||
Installing executable warn-early-overwrite in <PATH> | ||
Warning: The directory <GBLTMPDIR>/ghc-<GHCVER>/incoming/new-<RAND><GBLTMPDIR>/ghc-<GHCVER>/<PACKAGE>-<HASH>/bin is not in the system search path. | ||
Copying 'warn-early-overwrite' to '<GBLTMPDIR>/warn-early-overwrite' |
6 changes: 6 additions & 0 deletions
6
cabal-testsuite/PackageTests/WarnEarlyOverwrite/clean-install-by-copy.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,6 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ do | ||
let options = ["--store-dir=" ++ storeDir, "--installdir=" ++ storeDir] | ||
-- Use install method copy that should surely work on Windows too. | ||
cabalG options "v2-install" ["--install-method=copy"] |
2 changes: 1 addition & 1 deletion
2
...ests/WarnEarlyOverwrite/clean-install.out → ...rlyOverwrite/clean-install-by-symlink.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
2 changes: 1 addition & 1 deletion
2
.../WarnEarlyOverwrite/clean-install.test.hs → ...verwrite/clean-install-by-symlink.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,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ do | ||
-- The default install method is symlink, which may not work on Windows. | ||
-- The default install method is symlink that may not work on Windows. | ||
skipIfWindows | ||
let options = ["--store-dir=" ++ storeDir, "--installdir=" ++ storeDir] | ||
cabalG options "v2-install" [] |