File tree 5 files changed +49
-0
lines changed
tests/IntegrationTests/regression 5 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ Extra-Source-Files:
84
84
tests/IntegrationTests/new-build/monitor_cabal_files/q/Setup.hs
85
85
tests/IntegrationTests/new-build/monitor_cabal_files/q/q-broken.cabal.in
86
86
tests/IntegrationTests/new-build/monitor_cabal_files/q/q-fixed.cabal.in
87
+ tests/IntegrationTests/regression/t3199.sh
88
+ tests/IntegrationTests/regression/t3199/Main.hs
89
+ tests/IntegrationTests/regression/t3199/Setup.hs
90
+ tests/IntegrationTests/regression/t3199/test-3199.cabal
87
91
tests/IntegrationTests/sandbox-sources/fail_removing_source_thats_not_registered.err
88
92
tests/IntegrationTests/sandbox-sources/fail_removing_source_thats_not_registered.sh
89
93
tests/IntegrationTests/sandbox-sources/p/Setup.hs
Original file line number Diff line number Diff line change
1
+ . ./common.sh
2
+
3
+ if [[ ` ghc --numeric-version` =~ " 7\\ ." ]]; then
4
+ cd t3199
5
+ tmpfile=$( mktemp /tmp/cabal-t3199.XXXXXX)
6
+ cabal sandbox init
7
+ cabal sandbox add-source ../../../../../Cabal
8
+ cabal install --package-db=clear --package-db=global --only-dep --dry-run > $tmpfile
9
+ grep -q " the following would be installed" $tmpfile || die " Should've installed Cabal"
10
+ grep -q Cabal $tmpfile || die " Should've installed Cabal"
11
+ rm $tmpfile
12
+ fi
Original file line number Diff line number Diff line change
1
+ module Main where
2
+
3
+ main :: IO ()
4
+ main = putStrLn " Hello, Haskell!"
Original file line number Diff line number Diff line change
1
+ import Distribution.Simple
2
+ main = defaultMain
Original file line number Diff line number Diff line change
1
+ name : test-t3199
2
+ version : 0.1.0.0
3
+ license : BSD3
4
+ author : Mikhail Glushenkov
5
+
6
+ category : Test
7
+ build-type : Custom
8
+ cabal-version : >= 1.10
9
+
10
+ flag exe_2
11
+ description : Build second exe
12
+ default : False
13
+
14
+ executable test-3199-1
15
+ main-is : Main.hs
16
+ build-depends : base
17
+ default-language : Haskell2010
18
+
19
+ executable test-3199-2
20
+ main-is : Main.hs
21
+ build-depends : base, ansi-terminal
22
+ default-language : Haskell2010
23
+
24
+ if flag(exe_2)
25
+ buildable : True
26
+ else
27
+ buildable : False
You can’t perform that action at this time.
0 commit comments