Skip to content
Snippets Groups Projects
Unverified Commit 2acae632 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #9707 from alt-romes/wip/romes/9697-nonlocal-test

Add test cabal install remote-pkg for #9697
parents 285dac27 b1ff71fc
No related branches found
No related tags found
No related merge requests found
Pipeline #90263 passed
......@@ -11,6 +11,9 @@ main = cabalTest $ do
runInstalledExe' "my-exe" []
>>= assertOutputContains ("hi" ++ show v)
installExternalWithTgt tgt v = withRepo "repo" (installWithTgt tgt v)
cabal "install" (commonOpts 1) -- no target
runInstalledExe' "my-exe" []
>>= assertOutputContains "hi1"
......@@ -20,3 +23,6 @@ main = cabalTest $ do
installWithTgt "my-exe" 4
installWithTgt "all" 5
installWithTgt "all:exes" 6
-- And test it works when installing from an external repo (think Hackage)
installExternalWithTgt "external-lib" 2
# Revision history for external-lib0100
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsuspecting world.
{-# LANGUAGE CPP #-}
#ifdef TEST1
main = putStrLn "hi1"
#endif
#ifdef TEST2
main = putStrLn "hi2"
#endif
#ifdef TEST3
main = putStrLn "hi3"
#endif
#ifdef TEST4
main = putStrLn "hi4"
#endif
#ifdef TEST5
main = putStrLn "hi5"
#endif
#ifdef TEST6
main = putStrLn "hi6"
#endif
cabal-version: 3.0
name: external-lib
version: 0.1.0.0
license: NONE
author: matthewtpickering@gmail.com
maintainer: Matthew Pickering
build-type: Simple
extra-doc-files: CHANGELOG.md
common warnings
ghc-options: -Wall
executable my-exe
import: warnings
main-is: Main.hs
build-depends: base
hs-source-dirs: .
default-language: Haskell2010
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment