File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ Build profile: -w ghc-<GHCVER> -O1
44In order, the following will be built:
55 - plain-0.1.0.0 *test (first run)
66Configuring plain-0.1.0.0...
7- Preprocessing library for plain-0.1.0.0..
8- Building library for plain-0.1.0.0..
9- Preprocessing test suite 'test' for plain-0.1.0.0..
10- Building test suite 'test' for plain-0.1.0.0..
7+ Preprocessing library for plain-0.1.0.0...
8+ Building library for plain-0.1.0.0...
9+ Preprocessing test suite 'test' for plain-0.1.0.0...
10+ Building test suite 'test' for plain-0.1.0.0...
1111Running 1 test suites...
1212Test suite test: RUNNING...
1313Test suite test: PASS
1414Test suite logged to: <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/test/plain-0.1.0.0-test.log
15- Test coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/test /hpc_index.html
15+ Package coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/hpc_index.html
16161 of 1 test suites (1 of 1 test cases) passed.
17- Package coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/plain-0.1.0.0/ hpc_index.html
17+ Package coverage report written to <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/plain-0.1.0.0/hpc/vanilla/html/hpc_index.html
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ In order, the following will be built:
77 - one-custom-0.1.0.0 (lib:one-custom) (requires build)
88 - depend-on-custom-with-exe-0.1.0.0 (lib) (first run)
99Configuring one-custom-0.1.0.0...
10- Preprocessing library for one-custom-0.1.0.0..
11- Building library for one-custom-0.1.0.0..
10+ Preprocessing library for one-custom-0.1.0.0...
11+ Building library for one-custom-0.1.0.0...
1212Installing library in <PATH>
1313Warning: depend-on-custom-with-exe.cabal:16:1: Ignoring trailing fields after sections: "ghc-options"
1414Configuring library for depend-on-custom-with-exe-0.1.0.0...
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import System.Exit
2121--
2222-- Results can be read via 'withPlan', 'buildInfoFile' and 'decodeBuildInfoFile'.
2323runShowBuildInfo :: [String ] -> TestM ()
24- runShowBuildInfo args = cabal " build" (" --enable-build-info" : args)
24+ runShowBuildInfo args = noCabalPackageDb $ cabal " build" (" --enable-build-info" : args)
2525
2626-- | Read 'build-info.json' for a given package and component
2727-- from disk and record the content. Helpful for defining test-cases
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ cabalGArgs global_args cmd args input = do
313313 | cmd `elem` [" v2-sdist" , " path" ]
314314 = [ " --project-file=" ++ fp | Just fp <- [testCabalProjectFile env] ]
315315
316- | cmd == " v2-clean"
316+ | cmd == " v2-clean" || cmd == " clean "
317317 = [ " --builddir" , testDistDir env ]
318318 ++ [ " --project-file=" ++ fp | Just fp <- [testCabalProjectFile env] ]
319319
@@ -322,10 +322,14 @@ cabalGArgs global_args cmd args input = do
322322 , " -j1" ]
323323 ++ [ " --project-file=" ++ fp | Just fp <- [testCabalProjectFile env] ]
324324 ++ [" --package-db=" ++ db | Just db <- [testPackageDbPath env]]
325+ | " v1-" `isPrefixOf` cmd
326+ = [ " --builddir" , testDistDir env ]
327+ ++ install_args
325328
326329 | otherwise
327- = [ " --builddir" , testDistDir env ] ++
328- install_args
330+ = [ " --builddir" , testDistDir env ]
331+ ++ [" --package-db=" ++ db | Just db <- [testPackageDbPath env]]
332+ ++ install_args
329333
330334 install_args
331335 | cmd == " v1-install" || cmd == " v1-build" = [ " -j1" ]
You can’t perform that action at this time.
0 commit comments