[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/15: gnu: ocaml-qcheck: Update to 0.18.
From: |
guix-commits |
Subject: |
09/15: gnu: ocaml-qcheck: Update to 0.18. |
Date: |
Sat, 20 Nov 2021 11:09:35 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit b0e76b0828d6b1aee225e8268634547c33f9ba8d
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Nov 20 15:43:35 2021 +0100
gnu: ocaml-qcheck: Update to 0.18.
* gnu/packages/ocaml.scm (ocaml-qcheck): Update to 0.18.
* gnu/packages/patches/ocaml-qcheck-fix-test-whitespace.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
---
gnu/local.mk | 1 +
gnu/packages/ocaml.scm | 24 +++++++++++++++++++---
.../patches/ocaml-qcheck-fix-test-whitespace.patch | 24 ++++++++++++++++++++++
3 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index a8540f6..2513530 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1533,6 +1533,7 @@ dist_patch_DATA =
\
%D%/packages/patches/ocaml-dose3-Fix-for-ocaml-4.06.patch \
%D%/packages/patches/ocaml-dose3-dont-make-printconf.patch \
%D%/packages/patches/ocaml-dose3-Install-mli-cmx-etc.patch \
+ %D%/packages/patches/ocaml-qcheck-fix-test-whitespace.patch \
%D%/packages/patches/omake-fix-non-determinism.patch \
%D%/packages/patches/oneko-remove-nonfree-characters.patch \
%D%/packages/patches/onnx-optimizer-system-library.patch \
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3db7903..ecd64cc 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1552,16 +1552,17 @@ archive(native) = \"frontc.cmxa\""))))
(define-public ocaml-qcheck
(package
(name "ocaml-qcheck")
- (version "0.12")
+ (version "0.18")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/c-cube/qcheck")
- (commit version)))
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
+ (patches (search-patches "ocaml-qcheck-fix-test-whitespace.patch"))
(sha256
- (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
+ (base32 "1s652hrj2sxqj30dfl300zjvvqk3r62a1bnzqw1hqyf6pi88qn8x"))))
(build-system dune-build-system)
(arguments
`(#:test-target "."
@@ -1577,6 +1578,7 @@ archive(native) = \"frontc.cmxa\""))))
("ocaml-ounit" ,ocaml-ounit)))
(native-inputs
`(("ocamlbuild" ,ocamlbuild)))
+ (properties `((ocaml4.07-variant . ,(delay ocaml4.07-qcheck))))
(home-page "https://github.com/c-cube/qcheck")
(synopsis "QuickCheck inspired property-based testing for OCaml")
(description "QuickCheck inspired property-based testing for OCaml. This
@@ -1585,6 +1587,22 @@ generated instances of the type. It provides combinators
for generating
instances and printing them.")
(license license:lgpl3+)))
+(define-public ocaml4.07-qcheck
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-qcheck)
+ (version "0.12")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/c-cube/qcheck")
+ (commit version)))
+ (file-name (git-file-name "ocaml-qcheck" version))
+ (sha256
+ (base32
+ "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
+ (properties '()))))
+
(define-public ocaml-qtest
(package
(name "ocaml-qtest")
diff --git a/gnu/packages/patches/ocaml-qcheck-fix-test-whitespace.patch
b/gnu/packages/patches/ocaml-qcheck-fix-test-whitespace.patch
new file mode 100644
index 0000000..012f5de
--- /dev/null
+++ b/gnu/packages/patches/ocaml-qcheck-fix-test-whitespace.patch
@@ -0,0 +1,24 @@
+From 0cb666fffcbeb78c8c14d271b3ba65ea514bfc44 Mon Sep 17 00:00:00 2001
+From: Julien Lepiller <julien@lepiller.eu>
+Date: Fri, 19 Nov 2021 03:03:21 +0100
+Subject: [PATCH] Fix whitespace issue in test
+
+---
+ example/alcotest/output.txt.expected | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/example/alcotest/output.txt.expected
b/example/alcotest/output.txt.expected
+index bde0b83..9f1417c 100644
+--- a/example/alcotest/output.txt.expected
++++ b/example/alcotest/output.txt.expected
+@@ -16,7 +16,6 @@ test `fail_sort_id` failed on ≥ 1 cases: [1; 0] (after 20
shrink steps)
+ [exception] test `fail_sort_id` failed on ≥ 1 cases: [1; 0] (after 20 shrink
steps)
+
+
+-
+
──────────────────────────────────────────────────────────────────────────────
+
+ 3 failures! 5 tests run.
+--
+2.33.1
+
- branch master updated (c618f4a -> 0a4656f), guix-commits, 2021/11/20
- 01/15: gnu: ocaml-fmt: Update to 0.9.0., guix-commits, 2021/11/20
- 06/15: gnu: ocaml-odoc: Update to 2.0.0., guix-commits, 2021/11/20
- 08/15: gnu: ocaml-ppx-variants-conv: Update to 0.14.2., guix-commits, 2021/11/20
- 04/15: gnu: ocaml-mtime: Update to 1.3.0., guix-commits, 2021/11/20
- 05/15: gnu: ocaml-ocplib-endian: Update to 1.2., guix-commits, 2021/11/20
- 09/15: gnu: ocaml-qcheck: Update to 0.18.,
guix-commits <=
- 02/15: gnu: ocaml-integers: Update to 0.5.1., guix-commits, 2021/11/20
- 03/15: gnu: ocaml-mdx: Remove unneeded dependency., guix-commits, 2021/11/20
- 07/15: gnu: ocaml-ppx-js-style: Update to 0.14.1., guix-commits, 2021/11/20
- 10/15: gnu: ocaml-qtest: Update to 2.11.2., guix-commits, 2021/11/20
- 15/15: gnu: ocaml-version: Update to 3.4.0., guix-commits, 2021/11/20
- 13/15: gnu: ocaml-topkg: Update to 1.0.4., guix-commits, 2021/11/20
- 12/15: gnu: ocaml-stdlib-shims: Update to 0.3.0., guix-commits, 2021/11/20
- 11/15: gnu: ocaml-sedlex: Update to 2.4., guix-commits, 2021/11/20
- 14/15: gnu: ocaml-tyxml: Update to 4.5.0., guix-commits, 2021/11/20