Skip to content

Commit 0085999

Browse files
committed
fixup test outputs
1 parent 396798a commit 0085999

File tree

23 files changed

+29
-44
lines changed

23 files changed

+29
-44
lines changed

Cabal/src/Distribution/Simple/SetupHooks/Errors.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ rulesExceptionMessage = \case
171171
DuplicateRuleId rId r1 r2 ->
172172
unlines $
173173
[ "Duplicate pre-build rule (" <> show rId <> ")"
174-
, " - " <> show r1
175-
, " - " <> show r2
174+
, " - " <> show (ruleBinary r1)
175+
, " - " <> show (ruleBinary r2)
176176
]
177177

178178
locPath :: Location -> String

cabal-testsuite/PackageTests/BuildAutogenPackageGuard/cabal.out

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Build profile: -w ghc-<GHCVER> -O1
44
In order, the following will be built:
55
- pkg-0 (lib) (first run)
66
Configuring library for pkg-0...
7+
Error: [Cabal-7125]
8+
Failed to build pkg-0-inplace. The failure occurred during the configure step. The exception was:
9+
-----BEGIN CABAL OUTPUT-----
710
Error: [Cabal-5559]
811
[autogen-guard] To use the autogenerated module PackageInfo_* you need to specify `cabal-version: 3.12` or higher.
9-
Error: [Cabal-7125]
10-
Failed to build pkg-0-inplace. The failure occurred during the configure step.
12+
CallStack (from HasCallStack):
13+
dieWithException, called at src/Distribution/Simple/Configure.hs:2674:10 in Cabal-3.13.0.0-inplace:Distribution.Simple.Configure
14+

cabal-testsuite/PackageTests/BuildTargets/UseLocalPackageForSetup/use-local-package-as-setup-dep.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# cabal v2-update
22
Downloading the latest package list from test-local-repo
33
# cabal v2-build
4+
The package description file setup-dep/setup-dep.cabal has warnings: setup-dep/setup-dep.cabal:4:23: Packages with 'cabal-version: 1.12' or later should specify a specific version of the Cabal spec of the form 'cabal-version: x.y'. Use 'cabal-version: 1.20'.
5+
The package description file pkg/pkg.cabal has warnings: pkg/pkg.cabal:4:23: Packages with 'cabal-version: 1.12' or later should specify a specific version of the Cabal spec of the form 'cabal-version: x.y'. Use 'cabal-version: 1.20'.
46
Resolving dependencies...
57
Error: [Cabal-7107]
68
Could not resolve dependencies:

cabal-testsuite/PackageTests/Exec/cabal.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ In order, the following will be built:
66
Configuring my-0.1...
77
Preprocessing executable 'my-executable' for my-0.1...
88
Building executable 'my-executable' for my-0.1...
9+
Preprocessing library for my-0.1...
10+
Building library for my-0.1...
911
# my my-executable
1012
This is my-executable

cabal-testsuite/PackageTests/ExtraProgPath/setup.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# cabal v2-build
22
Warning: cannot determine version of <ROOT>/pkg-config :
33
""
4-
Warning: cannot determine version of <ROOT>/pkg-config :
5-
""
64
Resolving dependencies...
75
Error: [Cabal-7107]
86
Could not resolve dependencies:
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
# cabal v2-run
2-
Resolving dependencies...
3-
Build profile: -w ghc-<GHCVER> -O1
4-
In order, the following will be built:
5-
- fake-package-0 (exe:script-script.hs) (first run)
6-
Configuring executable 'script-script.hs' for fake-package-0...
7-
Building executable 'script-script.hs' for fake-package-0...

cabal-testsuite/PackageTests/NewBuild/CmdRun/Script/cabal.test.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Test.Cabal.Prelude
22

3-
main = cabalTest $ do
3+
main = cabalTest $ recordMode DoNotRecord $ do
44
res <- cabal' "v2-run" ["script.hs"]
55
assertOutputContains "Hello World" res
66

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# cabal v2-run
2+
The package description file ./script.cabal has warnings: script.cabal:0:0: A package using 'cabal-version: >=1.10' must use section syntax. See the Cabal user guide for details.
23
Error: [Cabal-7121]
34
Failed extracting script block: `{- cabal:` start marker not found
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
# cabal v2-run
2-
Resolving dependencies...
3-
Build profile: -w ghc-<GHCVER> -O1
4-
In order, the following will be built:
5-
- fake-package-0 (exe:script-script.lhs) (first run)
6-
Configuring executable 'script-script.lhs' for fake-package-0...
7-
Building executable 'script-script.lhs' for fake-package-0...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Test.Cabal.Prelude
22

3-
main = cabalTest $ do
3+
main = cabalTest $ recordMode DoNotRecord $ do
44
res <- cabal' "v2-run" ["script.lhs"]
55
assertOutputContains "Hello World" res

0 commit comments

Comments
 (0)