Skip to content

Commit

Permalink
Adjusting cabal-testsuite checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkato committed Jul 22, 2021
1 parent 9fb0260 commit 7f13e4d
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ Building library 'mylib' instantiated with
Database = Includes2-0.1.0.0-inplace-postgresql:Database.PostgreSQL
for Includes2-0.1.0.0..
Configuring library for Includes2-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: Includes2:{mylib, mysql, postgresql} (((>=0 && >=0 && >=0) && ==0.1.0.0) && ==0.1.0.0) && ==0.1.0.0, Includes2 ((>=0 && ==0.1.0.0) && ==0.1.0.0) && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing library for Includes2-0.1.0.0..
Building library for Includes2-0.1.0.0..
Configuring executable 'exe' for Includes2-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: Includes2:{mylib, mysql, postgresql} (>=0 && >=0 && >=0) && ==0.1.0.0, Includes2 >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'exe' for Includes2-0.1.0.0..
Building executable 'exe' for Includes2-0.1.0.0..
# Includes2 exe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ Configuring library for InternalLibrary1-0.1..
Preprocessing library for InternalLibrary1-0.1..
Building library for InternalLibrary1-0.1..
Configuring executable 'lemon' for InternalLibrary1-0.1..
Warning: The package has an extraneous version range for a dependency on an internal library: InternalLibrary1 >=0 && ==0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'lemon' for InternalLibrary1-0.1..
Building executable 'lemon' for InternalLibrary1-0.1..
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/BuildTools/Internal/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ Configuring library for foo-0.1.0.0..
Preprocessing library for foo-0.1.0.0..
Building library for foo-0.1.0.0..
Configuring executable 'hello-world' for foo-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: foo >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'hello-world' for foo-0.1.0.0..
Building executable 'hello-world' for foo-0.1.0.0..
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/CmmSources/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ Configuring library for cmmexperiment-0..
Preprocessing library for cmmexperiment-0..
Building library for cmmexperiment-0..
Configuring executable 'demo' for cmmexperiment-0..
Warning: The package has an extraneous version range for a dependency on an internal library: cmmexperiment >=0 && ==0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'demo' for cmmexperiment-0..
Building executable 'demo' for cmmexperiment-0..
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/CmmSourcesDyn/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ Configuring library for cmmexperiment-0..
Preprocessing library for cmmexperiment-0..
Building library for cmmexperiment-0..
Configuring executable 'demo' for cmmexperiment-0..
Warning: The package has an extraneous version range for a dependency on an internal library: cmmexperiment >=0 && ==0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'demo' for cmmexperiment-0..
Building executable 'demo' for cmmexperiment-0..
2 changes: 0 additions & 2 deletions cabal-testsuite/PackageTests/InternalLibraries/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ Configuring library 'q' for p-0.1.0.0..
Preprocessing library 'q' for p-0.1.0.0..
Building library 'q' for p-0.1.0.0..
Configuring executable 'foo' for p-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: p:q >=0 && ==0.1.0.0, p:q >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'foo' for p-0.1.0.0..
Building executable 'foo' for p-0.1.0.0..
Configuring library for p-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: p:q >=0 && ==0.1.0.0, p:q >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing library for p-0.1.0.0..
Building library for p-0.1.0.0..
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-depends-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal library: build-depends-extra-version >=0.0.0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal library: build-depends-extra-version >=0.0.0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-depends-extra-version-0.1.0.0...
Source tarball created: setup.cabal.dist/work/dist/build-depends-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-depends-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal library: build-depends-extra-version >=0.0.0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal library: build-depends-extra-version >=0.0.0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-depends-extra-version-0.1.0.0...
Source tarball created: setup.dist/work/dist/build-depends-extra-version-0.1.0.0.tar.gz
Source tarball created: setup.dist/work/dist/build-depends-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import Test.Cabal.Prelude
-- Test unneed version bound on internal build-tools deps
main = setupAndCabalTest $ do
setup' "configure" []
assertOutputContains "extraneous version range"
-- this specific warning was commented out, this check is inverted so it doesn't break the CI
assertOutputDoesNotContain "extraneous version range"
=<< setup' "sdist" []
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-tool-depends-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal executable: build-tool-depends-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal executable: build-tool-depends-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-tool-depends-extra-version-0.1.0.0...
Source tarball created: setup.cabal.dist/work/dist/build-tool-depends-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-tool-depends-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal executable: build-tool-depends-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal executable: build-tool-depends-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-tool-depends-extra-version-0.1.0.0...
Source tarball created: setup.dist/work/dist/build-tool-depends-extra-version-0.1.0.0.tar.gz
Source tarball created: setup.dist/work/dist/build-tool-depends-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import Test.Cabal.Prelude
-- Test unneed version bound on internal build-tools deps
main = setupAndCabalTest $ do
setup' "configure" []
assertOutputContains "extraneous version range"
-- this specific warning was commented out, this check is inverted so it doesn't break the CI
assertOutputDoesNotContain "extraneous version range"
=<< setup' "sdist" []
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-tools-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal executable: build-tools-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal executable: build-tools-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-tools-extra-version-0.1.0.0...
Source tarball created: setup.cabal.dist/work/dist/build-tools-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Setup configure
Configuring build-tools-extra-version-0.1.0.0...
Warning: The package has an extraneous version range for a dependency on an internal executable: build-tools-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
# Setup sdist
Distribution quality errors:
The package has an extraneous version range for a dependency on an internal executable: build-tools-extra-version:hello-world >=0.0.0.1. This version range includes the current package but isn't needed as the current package's executable will always be used.
Distribution quality warnings:
No 'maintainer' field.
No 'description' field.
A 'license-file' is not specified.
Note: the public hackage server would reject this package.
Building source dist for build-tools-extra-version-0.1.0.0...
Source tarball created: setup.dist/work/dist/build-tools-extra-version-0.1.0.0.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import Test.Cabal.Prelude
-- Test unneed version bound on internal build-tools deps
main = setupAndCabalTest $ do
setup' "configure" []
assertOutputContains "extraneous version range"
-- this specific warning was commented out, this check is inverted so it doesn't break the CI
assertOutputDoesNotContain "extraneous version range"
=<< setup' "sdist" []
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ Preprocessing library for pkg-def-0.1.0.0..
Building library for pkg-def-0.1.0.0..
Warning: pkg-abc.cabal:19:15: colon specifier is experimental feature (issue #5660)
Configuring executable 'program' for pkg-abc-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: pkg-def >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'program' for pkg-abc-0.1.0.0..
Building executable 'program' for pkg-abc-0.1.0.0..
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ Building library for pkg-def-0.1.0.0..
Warning: pkg-abc.cabal:15:29: colon specifier is experimental feature (issue #5660)
Warning: pkg-abc.cabal:20:15: colon specifier is experimental feature (issue #5660)
Configuring executable 'program' for pkg-abc-0.1.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: pkg-def >=0 && ==0.1.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'program' for pkg-abc-0.1.0.0..
Building executable 'program' for pkg-abc-0.1.0.0..
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ Preprocessing library 'sublib' for issue-6894..
Building library 'sublib' for issue-6894..
Warning: issue.cabal:7:30: colon specifier is experimental feature (issue #5660)
Configuring library for issue-6894..
Warning: The package has an extraneous version range for a dependency on an internal library: issue:sublib >=0 && ==6894. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing library for issue-6894..
Building library for issue-6894..
3 changes: 0 additions & 3 deletions cabal-testsuite/PackageTests/Regression/T5309/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Configuring executable 'exe-no-lib' for T5309-1.0.0.0..
Preprocessing executable 'exe-no-lib' for T5309-1.0.0.0..
Building executable 'exe-no-lib' for T5309-1.0.0.0..
Configuring executable 'exe-with-lib' for T5309-1.0.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'exe-with-lib' for T5309-1.0.0.0..
Building executable 'exe-with-lib' for T5309-1.0.0.0..
# cabal v2-test
Expand All @@ -29,7 +28,6 @@ Test suite test-no-lib: PASS
Test suite logged to: <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/T5309-1.0.0.0/t/test-no-lib/test/T5309-1.0.0.0-test-no-lib.log
1 of 1 test suites (1 of 1 test cases) passed.
Configuring test suite 'test-with-lib' for T5309-1.0.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing test suite 'test-with-lib' for T5309-1.0.0.0..
Building test suite 'test-with-lib' for T5309-1.0.0.0..
Running 1 test suites...
Expand All @@ -49,7 +47,6 @@ Running 1 benchmarks...
Benchmark bench-no-lib: RUNNING...
Benchmark bench-no-lib: FINISH
Configuring benchmark 'bench-with-lib' for T5309-1.0.0.0..
Warning: The package has an extraneous version range for a dependency on an internal library: T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0, T5309 >=0 && ==1.0.0.0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing benchmark 'bench-with-lib' for T5309-1.0.0.0..
Building benchmark 'bench-with-lib' for T5309-1.0.0.0..
Running 1 benchmarks...
Expand Down
1 change: 0 additions & 1 deletion cabal-testsuite/PackageTests/Regression/T5677/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ Preprocessing library for prog-0..
Building library instantiated with Sig = impl-0-inplace:Sig
for prog-0..
Configuring executable 'prog' for prog-0..
Warning: The package has an extraneous version range for a dependency on an internal library: prog >=0 && ==0. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing executable 'prog' for prog-0..
Building executable 'prog' for prog-0..
2 changes: 0 additions & 2 deletions cabal-testsuite/PackageTests/TestSuiteTests/ExeV10/cabal.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Configuring library for my-0.1..
Preprocessing library for my-0.1..
Building library for my-0.1..
Configuring test suite 'test-Short' for my-0.1..
Warning: The package has an extraneous version range for a dependency on an internal library: my >=0 && ==0.1, my >=0 && ==0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing test suite 'test-Short' for my-0.1..
Building test suite 'test-Short' for my-0.1..
Running 1 test suites...
Expand All @@ -18,7 +17,6 @@ Test suite test-Short: PASS
Test suite logged to: <ROOT>/cabal.dist/work/./dist/build/<ARCH>/ghc-<GHCVER>/my-0.1/t/test-Short/test/my-0.1-test-Short.log
1 of 1 test suites (1 of 1 test cases) passed.
Configuring test suite 'test-Foo' for my-0.1..
Warning: The package has an extraneous version range for a dependency on an internal library: my >=0 && ==0.1, my >=0 && ==0.1. This version range includes the current package but isn't needed as the current package's library will always be used.
Preprocessing test suite 'test-Foo' for my-0.1..
Building test suite 'test-Foo' for my-0.1..
Running 1 test suites...
Expand Down

0 comments on commit 7f13e4d

Please sign in to comment.