Hello community,
here is the log from the commit of package ghc-test-framework-quickcheck2 for
openSUSE:Factory checked in at 2017-07-05 23:59:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-test-framework-quickcheck2 (Old)
and /work/SRC/openSUSE:Factory/.ghc-test-framework-quickcheck2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-test-framework-quickcheck2"
Wed Jul 5 23:59:45 2017 rev:2 rq:506851 version:0.3.0.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-test-framework-quickcheck2/ghc-test-framework-quickcheck2.changes
2016-11-02 12:43:50.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-test-framework-quickcheck2.new/ghc-test-framework-quickcheck2.changes
2017-07-05 23:59:46.412947461 +0200
@@ -1,0 +2,5 @@
+Mon Jun 19 20:53:34 UTC 2017 - [email protected]
+
+- Update to version 0.3.0.4.
+
+-------------------------------------------------------------------
Old:
----
2.cabal
test-framework-quickcheck2-0.3.0.3.tar.gz
New:
----
test-framework-quickcheck2-0.3.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-test-framework-quickcheck2.spec ++++++
--- /var/tmp/diff_new_pack.g0OO7O/_old 2017-07-05 23:59:47.076853935 +0200
+++ /var/tmp/diff_new_pack.g0OO7O/_new 2017-07-05 23:59:47.080853372 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-test-framework-quickcheck2
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,26 +18,24 @@
%global pkg_name test-framework-quickcheck2
Name: ghc-%{pkg_name}
-Version: 0.3.0.3
+Version: 0.3.0.4
Release: 0
-Summary: QuickCheck2 support for the test-framework package
+Summary: QuickCheck-2 support for the test-framework package
License: BSD-3-Clause
-Group: System/Libraries
+Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal
BuildRequires: ghc-Cabal-devel
-# Begin cabal-rpm deps:
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-extensible-exceptions-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-test-framework-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
%description
-QuickCheck2 support for the test-framework package.
+Allows 'QuickCheck-2' properties to be used with the </package/test-framework
+test-framework package>.
%package devel
Summary: Haskell %{pkg_name} library development files
@@ -53,17 +51,13 @@
%prep
%setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
-
%build
%ghc_lib_build
-
%install
%ghc_lib_install
-
%post devel
%ghc_pkg_recache
@@ -76,5 +70,6 @@
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
+%doc ChangeLog.md
%changelog
++++++ test-framework-quickcheck2-0.3.0.3.tar.gz ->
test-framework-quickcheck2-0.3.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test-framework-quickcheck2-0.3.0.3/ChangeLog.md
new/test-framework-quickcheck2-0.3.0.4/ChangeLog.md
--- old/test-framework-quickcheck2-0.3.0.3/ChangeLog.md 1970-01-01
01:00:00.000000000 +0100
+++ new/test-framework-quickcheck2-0.3.0.4/ChangeLog.md 2017-06-16
16:41:06.000000000 +0200
@@ -0,0 +1,5 @@
+## 0.3.0.4
+
+- Add support for `Quickcheck >= 2.8 && < 2.11`'s `InsufficientCoverage`
status result
+- Drop support for GHC < 7.0 (require `Haskell2010` support)
+- Prevent `maxDiscardRatio` from becoming zero
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test-framework-quickcheck2-0.3.0.3/Setup.hs
new/test-framework-quickcheck2-0.3.0.4/Setup.hs
--- old/test-framework-quickcheck2-0.3.0.3/Setup.hs 1970-01-01
01:00:00.000000000 +0100
+++ new/test-framework-quickcheck2-0.3.0.4/Setup.hs 2017-06-16
16:41:06.000000000 +0200
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test-framework-quickcheck2-0.3.0.3/Setup.lhs
new/test-framework-quickcheck2-0.3.0.4/Setup.lhs
--- old/test-framework-quickcheck2-0.3.0.3/Setup.lhs 2014-04-11
12:23:46.000000000 +0200
+++ new/test-framework-quickcheck2-0.3.0.4/Setup.lhs 1970-01-01
01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-#! /usr/bin/env runhaskell
-
-> import Distribution.Simple
-> main = defaultMain
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/test-framework-quickcheck2-0.3.0.3/Test/Framework/Providers/QuickCheck2.hs
new/test-framework-quickcheck2-0.3.0.4/Test/Framework/Providers/QuickCheck2.hs
---
old/test-framework-quickcheck2-0.3.0.3/Test/Framework/Providers/QuickCheck2.hs
2014-04-11 12:23:46.000000000 +0200
+++
new/test-framework-quickcheck2-0.3.0.4/Test/Framework/Providers/QuickCheck2.hs
2017-06-16 16:41:06.000000000 +0200
@@ -1,7 +1,13 @@
+{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE ExistentialQuantification #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
+{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE TypeSynonymInstances #-}
+
-- | Allows QuickCheck2 properties to be used with the test-framework package.
--
--- For an example of how to use test-framework, please see
<http://github.com/batterseapower/test-framework/raw/master/example/Test/Framework/Example.lhs>
+-- For an example of how to use @test-framework@, please see
<https://github.com/haskell/test-framework/raw/master/example/Test/Framework/Example.lhs>.
module Test.Framework.Providers.QuickCheck2 (
testProperty
) where
@@ -43,6 +49,9 @@
| PropertyFalsifiable String String -- ^ The property was
not true. The strings are the reason and the output.
| PropertyNoExpectedFailure -- ^ We expected that
a property would fail but it didn't
| PropertyTimedOut -- ^ The property
timed out during execution
+#if MIN_VERSION_QuickCheck(2,8,0)
+ | PropertyInsufficientCoverage -- ^ The tests passed
but a use of 'cover' had insufficient coverage.
+#endif
instance Show PropertyResult where
show (PropertyResult { pr_status = status, pr_used_seed = used_seed,
pr_tests_run = mb_tests_run })
@@ -52,6 +61,9 @@
PropertyFalsifiable _rsn otpt -> otpt ++ "(used seed " ++ show
used_seed ++ ")"
PropertyNoExpectedFailure -> "No expected failure with seed "
++ show used_seed ++ ", after " ++ tests_run_str ++ " tests"
PropertyTimedOut -> "Timed out after " ++
tests_run_str ++ " tests"
+#if MIN_VERSION_QuickCheck(2,8,0)
+ PropertyInsufficientCoverage -> "Insufficient coverage after " ++
tests_run_str ++ " tests"
+#endif
where
tests_run_str = fmap show mb_tests_run `orElse` "an unknown number of"
@@ -92,7 +104,7 @@
args = stdArgs { replay = Just (gen, 0) -- NB: the 0 is the saved
size. Defaults to 0 if you supply "Nothing" for "replay".
, maxSuccess = max_success
#if MIN_VERSION_QuickCheck(2,5,0)
- , maxDiscardRatio = max_discard `div` max_success
+ , maxDiscardRatio = (max_discard `div` max_success) + 1
#else
, maxDiscard = max_discard
#endif
@@ -115,3 +127,6 @@
toPropertyStatus (GaveUp {}) =
PropertyArgumentsExhausted
toPropertyStatus (Failure { reason = rsn, output = otpt }) =
PropertyFalsifiable rsn otpt
toPropertyStatus (NoExpectedFailure {}) =
PropertyNoExpectedFailure
+#if MIN_VERSION_QuickCheck(2,8,0)
+ toPropertyStatus (InsufficientCoverage _ _ _) =
PropertyInsufficientCoverage
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/test-framework-quickcheck2-0.3.0.3/test-framework-quickcheck2.cabal
new/test-framework-quickcheck2-0.3.0.4/test-framework-quickcheck2.cabal
--- old/test-framework-quickcheck2-0.3.0.3/test-framework-quickcheck2.cabal
2014-04-11 12:23:46.000000000 +0200
+++ new/test-framework-quickcheck2-0.3.0.4/test-framework-quickcheck2.cabal
2017-06-16 16:41:06.000000000 +0200
@@ -1,46 +1,39 @@
Name: test-framework-quickcheck2
-Version: 0.3.0.3
-Cabal-Version: >= 1.6
+Version: 0.3.0.4
+Cabal-Version: >= 1.10
Category: Testing
-Synopsis: QuickCheck2 support for the test-framework package.
+Synopsis: QuickCheck-2 support for the test-framework package.
License: BSD3
License-File: LICENSE
Author: Max Bolingbroke <[email protected]>
Maintainer: Haskell Libraries <[email protected]>
-Homepage: https://batterseapower.github.io/test-framework/
-Bug-Reports: https://github.com/haskell/test-framework/
+Homepage: http://haskell.github.io/test-framework/
+Bug-Reports: https://github.com/haskell/test-framework/issues
Build-Type: Simple
-Description: QuickCheck2 support for the test-framework package.
-
-Flag Base4
- Description: Choose base version 4
- Default: True
-
-Flag Base3
- Description: Choose base version 3
- Default: False
-
+Description: Allows @QuickCheck-2@ properties to be used with the
</package/test-framework test-framework package>.
+Tested-With: GHC==8.2.1, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4,
GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
+extra-source-files: ChangeLog.md
Library
- Exposed-Modules: Test.Framework.Providers.QuickCheck2
+ Default-Language: Haskell2010
+ Other-Extensions: CPP
+ DeriveDataTypeable
+ ExistentialQuantification
+ MultiParamTypeClasses
+ TypeOperators
+ TypeSynonymInstances
- Build-Depends: test-framework >= 0.7.1,
- QuickCheck >= 2.4 && < 2.8,
- extensible-exceptions >= 0.1.1 && < 0.2.0
- if flag(base3)
- Build-Depends: base >= 3 && < 4, random >= 1
- else
- if flag(base4)
- Build-Depends: base >= 4 && < 5, random >= 1
+ Exposed-Modules: Test.Framework.Providers.QuickCheck2
- Extensions: TypeSynonymInstances
- TypeOperators
- MultiParamTypeClasses
- ExistentialQuantification
- CPP
+ Build-Depends: test-framework == 0.8.*
+ , QuickCheck >= 2.4 && < 2.11
+ , base >= 4.3 && < 5
+ , extensible-exceptions >= 0.1.1 && < 0.2.0
+ , random >= 1 && < 1.2
Ghc-Options: -Wall
Source-Repository head
Type: git
- Location: https://github.com/haskell/test-framework
+ Location: https://github.com/haskell/test-framework.git
+ subdir: quickcheck2