Commit ab355361 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

setupAndCabalTest uses cabal act-as-setup for cabal part

The cabal command interface will drift more and more from
./Setup interface. This is first step: don't assume
they are the same.

This removes need to "patch" setup commands to work with cabal:
the `act-as-setup` SHOULD behave as (simple) ./Setup

There were few setupAndCabalTests which weren't `build-type: Simple`.
For those I made a separate `cabal.test.hs`.

Also added a OutputNormalizer for global tmp directory.
`v2-build` sdists `build-type: Custom` packages to get the list of files
to watch. I guess it's ok to have that functionality,
yet it could be eventually removed, as `v2-sdist`
does not invoke `./Setup.hs` script.
parent 80befc1a
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
......@@ -9,7 +8,6 @@ Installing library in <PATH>
# Setup register
Registering library for p-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring q-0.1.0.0...
# Setup build
Preprocessing library for q-0.1.0.0..
......@@ -19,7 +17,6 @@ Installing library in <PATH>
# Setup register
Registering library for q-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring package-import-0.1.0.0...
# Setup build
Preprocessing executable 'package-import' for package-import-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
......@@ -9,7 +8,6 @@ Installing library in <PATH>
# Setup register
Registering library for p-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring q-0.1.0.0...
# Setup build
Preprocessing library for q-0.1.0.0..
......@@ -19,7 +17,6 @@ Installing library in <PATH>
# Setup register
Registering library for q-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring reexport-0.1.0.0...
# Setup build
Preprocessing library for reexport-0.1.0.0..
......@@ -29,7 +26,6 @@ Installing library in <PATH>
# Setup register
Registering library for reexport-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring reexport-test-0.1.0.0...
# Setup build
Preprocessing executable 'reexport-test' for reexport-test-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring AutogenModules-0.1...
cabal: An 'autogen-module' is neither on 'exposed-modules' or 'other-modules'.
......
# Setup configure
Resolving dependencies...
Configuring AutogenModules-0.1...
# Setup sdist
Building source dist for AutogenModules-0.1...
......@@ -8,4 +7,3 @@ Preprocessing library for AutogenModules-0.1..
Source tarball created: setup.cabal.dist/work/dist/AutogenModules-0.1.tar.gz
# Setup sdist
List of package sources written to file '<ROOT>/setup.cabal.dist/work/./dist/list-sources.txt'
List of package sources written to file '<ROOT>/setup.cabal.dist/work/./dist/list-sources.txt'
# Setup configure
Resolving dependencies...
Configuring Fail1-0.1.0.0...
Error:
The library 'sig' from package 'Fail1-0.1.0.0' does not require:
......
# Setup configure
Resolving dependencies...
Configuring Fail2-0.1.0.0...
Error:
Mix-in refers to non-existent package 'non-existent'
......
# Setup configure
Resolving dependencies...
Configuring Fail1-0.1.0.0...
Error:
Non-library component has unfilled requirements: UnfilledSig
......
# Setup configure
Resolving dependencies...
Configuring Includes1-0.1.0.0...
# Setup build
Preprocessing library for Includes1-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring mylib-0.1.0.0...
# Setup build
Preprocessing library for mylib-0.1.0.0..
......@@ -16,7 +15,6 @@ Installing library in <PATH>
Registering library instantiated with Database = <Database>
for mylib-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring mysql-0.1.0.0...
# Setup build
Preprocessing library for mysql-0.1.0.0..
......@@ -30,7 +28,6 @@ Installing library in <PATH>
# Setup register
Registering library for mysql-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring postgresql-0.1.0.0...
# Setup build
Preprocessing library for postgresql-0.1.0.0..
......@@ -44,7 +41,6 @@ Installing library in <PATH>
# Setup register
Registering library for postgresql-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring mylib-0.1.0.0...
# Setup build
Preprocessing library for mylib-0.1.0.0..
......@@ -62,7 +58,6 @@ Installing library in <PATH>
Registering library instantiated with Database = mysql-0.1.0.0:Database.MySQL
for mylib-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring mylib-0.1.0.0...
# Setup build
Preprocessing library for mylib-0.1.0.0..
......@@ -82,7 +77,6 @@ Registering library instantiated with
Database = postgresql-0.1.0.0:Database.PostgreSQL
for mylib-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring src-0.1.0.0...
# Setup build
Preprocessing library for src-0.1.0.0..
......@@ -96,15 +90,6 @@ Installing library in <PATH>
# Setup register
Registering library for src-0.1.0.0..
# Setup configure
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: exe-0.1.0.0 (user goal)
[__1] next goal: src (dependency of exe)
[__1] rejecting: src-<VERSION>/installed-<HASH> (conflict: src => mylib==<VERSION>/installed-<HASH>, src => mylib==<VERSION>/installed-<HASH>)
[__1] fail (backjumping, conflict set: exe, src)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: exe (2), src (2)
Trying configure anyway.
Configuring exe-0.1.0.0...
# Setup build
Preprocessing executable 'exe' for exe-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring fail-0.1.0.0...
Error:
- Cannot match module names
......
# Setup configure
Resolving dependencies...
Configuring Includes2-0.1.0.0...
# Setup build
Preprocessing library 'postgresql' for Includes2-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring sigs-0.1.0.0...
# Setup build
Preprocessing library for sigs-0.1.0.0..
......@@ -11,7 +10,6 @@ Installing library in <PATH>
Registering library instantiated with Data.Map = <Data.Map>
for sigs-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring indef-0.1.0.0...
# Setup build
Preprocessing library for indef-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring sigs-0.1.0.0...
# Setup build
Preprocessing library for sigs-0.1.0.0..
......@@ -16,7 +15,6 @@ Installing library in <PATH>
Registering library instantiated with Data.Map = <Data.Map>
for sigs-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring indef-0.1.0.0...
# Setup build
Preprocessing library for indef-0.1.0.0..
......@@ -33,7 +31,6 @@ Installing library in <PATH>
Registering library instantiated with Data.Map = <Data.Map>
for indef-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring sigs-0.1.0.0...
# Setup build
Preprocessing library for sigs-0.1.0.0..
......@@ -51,7 +48,6 @@ Installing library in <PATH>
Registering library instantiated with Data.Map = containers-<VERSION>:Data.Map
for sigs-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring indef-0.1.0.0...
# Setup build
Preprocessing library for indef-0.1.0.0..
......@@ -69,7 +65,6 @@ Installing library in <PATH>
Registering library instantiated with Data.Map = containers-<VERSION>:Data.Map
for indef-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring exe-0.1.0.0...
# Setup build
Preprocessing executable 'exe' for exe-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring Includes3-0.1.0.0...
# Setup build
Preprocessing library 'sigs' for Includes3-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring Includes4-0.1.0.0...
# Setup build
Preprocessing library 'indef' for Includes4-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring Includes5-0.1.0.0...
# Setup build
Preprocessing library 'impl' for Includes5-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring Indef2-0.1.0.0...
# Setup build
Preprocessing library 'asig1' for Indef2-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
......@@ -13,7 +12,6 @@ Installing library in <PATH>
# Setup register
Registering library for p-0.1.0.0..
# Setup configure
Resolving dependencies...
Configuring q-0.1.0.0...
# Setup build
Preprocessing library for q-0.1.0.0..
......
# Setup configure
Resolving dependencies...
Configuring Reexport2-1.0...
cabal: Duplicate modules in library: Asdf
# Setup configure
Resolving dependencies...
Configuring T4447-1.0...
Error:
Cannot instantiate requirement 'A' brought into scope by build-depends: T4447:foo-indef
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment