Skip to content

Commit

Permalink
Merge pull request #6643 from phadej/cabal-testsuite-src-dir
Browse files Browse the repository at this point in the history
setupAndCabalTest uses cabal act-as-setup for cabal part
  • Loading branch information
phadej authored Apr 3, 2020
2 parents 8ffb885 + ab35536 commit 1008805
Show file tree
Hide file tree
Showing 118 changed files with 97 additions and 236 deletions.
6 changes: 3 additions & 3 deletions .docker/validate-8.4.4.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM phadej/ghc:8.6.5-bionic
FROM phadej/ghc:8.4.4-bionic

# Install cabal-plan
RUN mkdir -p /root/.cabal/bin && \
Expand All @@ -16,7 +16,7 @@ RUN cabal v2-install happy --constraint 'happy ^>=1.19.12'

# Install some other dependencies
# Remove $HOME/.ghc so there aren't any environments
RUN cabal v2-install -w ghc-8.6.5 --lib \
RUN cabal v2-install -w ghc-8.4.4 --lib \
aeson \
async \
base-compat \
Expand Down Expand Up @@ -48,4 +48,4 @@ RUN cabal v2-install -w ghc-8.6.5 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -w ghc-8.6.5 -v
RUN sh ./validate.sh -w ghc-8.4.4 -v
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
Expand All @@ -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..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring AutogenModules-0.1...
cabal: An 'autogen-module' is neither on 'exposed-modules' or 'other-modules'.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring AutogenModules-0.1...
# Setup sdist
Building source dist for AutogenModules-0.1...
Expand All @@ -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'
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Fail1-0.1.0.0...
Error:
The library 'sig' from package 'Fail1-0.1.0.0' does not require:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Fail2-0.1.0.0...
Error:
Mix-in refers to non-existent package 'non-existent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Fail1-0.1.0.0...
Error:
Non-library component has unfilled requirements: UnfilledSig
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Includes1-0.1.0.0...
# Setup build
Preprocessing library for Includes1-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring mylib-0.1.0.0...
# Setup build
Preprocessing library for mylib-0.1.0.0..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring fail-0.1.0.0...
Error:
- Cannot match module names
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Includes2-0.1.0.0...
# Setup build
Preprocessing library 'postgresql' for Includes2-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring sigs-0.1.0.0...
# Setup build
Preprocessing library for sigs-0.1.0.0..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring sigs-0.1.0.0...
# Setup build
Preprocessing library for sigs-0.1.0.0..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Includes3-0.1.0.0...
# Setup build
Preprocessing library 'sigs' for Includes3-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Includes4-0.1.0.0...
# Setup build
Preprocessing library 'indef' for Includes4-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Includes5-0.1.0.0...
# Setup build
Preprocessing library 'impl' for Includes5-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring Indef2-0.1.0.0...
# Setup build
Preprocessing library 'asig1' for Indef2-0.1.0.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring p-0.1.0.0...
# Setup build
Preprocessing library for p-0.1.0.0..
Expand All @@ -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..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Setup configure
Resolving dependencies...
Configuring Reexport2-1.0...
cabal: Duplicate modules in library: Asdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring T4447-1.0...
Error:
Cannot instantiate requirement 'A' brought into scope by build-depends: T4447:foo-indef
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring p-0.1...
Warning: Packages using 'cabal-version: >= 1.10' must specify the 'default-language' field for each component (e.g. Haskell98 or Haskell2010). If a component uses different languages in different modules then list the other ones in the 'other-languages' field.
# Setup build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring th-backpack-failure-1.0...
Warning: Packages using 'cabal-version: >= 1.10' must specify the 'default-language' field for each component (e.g. Haskell98 or Haskell2010). If a component uses different languages in different modules then list the other ones in the 'other-languages' field.
# Setup build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring bkpth-1.0...
# Setup build
Preprocessing library 'helper' for bkpth-1.0..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring my-0.1...
# Setup build
Preprocessing library for my-0.1..
Expand Down
5 changes: 0 additions & 5 deletions cabal-testsuite/PackageTests/BenchmarkOptions/setup.cabal.out
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# Setup configure
Resolving dependencies...
Configuring BenchmarkOptions-0.1...
# Setup build
Preprocessing benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Building benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Preprocessing executable 'dummy' for BenchmarkOptions-0.1..
Building executable 'dummy' for BenchmarkOptions-0.1..
# Setup bench
Preprocessing benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Building benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Running 1 benchmarks...
Benchmark test-BenchmarkOptions: RUNNING...
Benchmark test-BenchmarkOptions: FINISH
# Setup bench
Preprocessing benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Building benchmark 'test-BenchmarkOptions' for BenchmarkOptions-0.1..
Running 1 benchmarks...
Benchmark test-BenchmarkOptions: RUNNING...
Benchmark test-BenchmarkOptions: FINISH
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Setup configure
Resolving dependencies...
Configuring BenchmarkStanza-0.1...
Warning: Packages using 'cabal-version: >= 1.10' must specify the 'default-language' field for each component (e.g. Haskell98 or Haskell2010). If a component uses different languages in different modules then list the other ones in the 'other-languages' field.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring DepCycle-1.0...
Error:
Components in the package depend on each other in a cyclic way:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Setup configure
Resolving dependencies...
Configuring InternalLibrary0-0.1...
cabal: The field 'build-depends: InternalLibrary0' refers to a library which is defined within the same package. To use this feature the package must specify at least 'cabal-version: >= 1.8'.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring InternalLibrary1-0.1...
# Setup build
Preprocessing library for InternalLibrary1-0.1..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring InternalLibrary2-0.1...
# Setup build
Preprocessing library for InternalLibrary2-0.1..
Expand All @@ -9,7 +8,6 @@ Installing library in <PATH>
# Setup register
Registering library for InternalLibrary2-0.1..
# Setup configure
Resolving dependencies...
Configuring InternalLibrary2-0.1...
# Setup build
Preprocessing library for InternalLibrary2-0.1..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring InternalLibrary3-0.2...
# Setup build
Preprocessing library for InternalLibrary3-0.2..
Expand All @@ -9,7 +8,6 @@ Installing library in <PATH>
# Setup register
Registering library for InternalLibrary3-0.2..
# Setup configure
Resolving dependencies...
Configuring InternalLibrary3-0.1...
# Setup build
Preprocessing library for InternalLibrary3-0.1..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring SameDepsAllRound-0.1...
# Setup build
Preprocessing executable 'pineapple' for SameDepsAllRound-0.1..
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Setup configure
Resolving dependencies...
Configuring TargetSpecificDeps1-0.1...
# Setup build
Preprocessing executable 'lemon' for TargetSpecificDeps1-0.1..
Expand Down
Loading

0 comments on commit 1008805

Please sign in to comment.