Hello community, here is the log from the commit of package ocaml-qtest for openSUSE:Factory checked in at 2020-08-24 15:07:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-qtest (Old) and /work/SRC/openSUSE:Factory/.ocaml-qtest.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-qtest" Mon Aug 24 15:07:14 2020 rev:7 rq:828692 version:2.11 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-qtest/ocaml-qtest.changes 2019-12-05 17:35:59.553425115 +0100 +++ /work/SRC/openSUSE:Factory/.ocaml-qtest.new.3399/ocaml-qtest.changes 2020-08-24 15:08:37.346555447 +0200 @@ -1,0 +2,6 @@ +Thu Aug 20 20:20:20 UTC 2020 - [email protected] + +- Update to version 2.11 + no changelog provided by upstream + +------------------------------------------------------------------- Old: ---- ocaml-qtest-2.10.tar.xz New: ---- ocaml-qtest-2.11.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-qtest.spec ++++++ --- /var/tmp/diff_new_pack.zv8YNI/_old 2020-08-24 15:08:38.830556169 +0200 +++ /var/tmp/diff_new_pack.zv8YNI/_new 2020-08-24 15:08:38.834556171 +0200 @@ -1,7 +1,7 @@ # # spec file for package ocaml-qtest # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,17 +17,17 @@ Name: ocaml-qtest -Version: 2.10 +Version: 2.11 Release: 0 %{?ocaml_preserve_bytecode} Summary: Inline (Unit) Tests for OCaml License: GPL-3.0-or-later Group: Development/Languages/OCaml -URL: https://github.com/vincent-hugot/qtest +URL: https://opam.ocaml.org/packages/qtest Source0: %{name}-%{version}.tar.xz BuildRequires: ocaml BuildRequires: ocaml-dune -BuildRequires: ocaml-rpm-macros >= 20191101 +BuildRequires: ocaml-rpm-macros >= 20200514 BuildRequires: ocamlfind(bytes) BuildRequires: ocamlfind(qcheck) ++++++ _service ++++++ --- /var/tmp/diff_new_pack.zv8YNI/_old 2020-08-24 15:08:38.858556183 +0200 +++ /var/tmp/diff_new_pack.zv8YNI/_new 2020-08-24 15:08:38.862556185 +0200 @@ -1,10 +1,13 @@ <services> <service name="tar_scm" mode="disabled"> - <param name="url">https://github.com/vincent-hugot/qtest.git</param> - <param name="scm">git</param> - <param name="versionformat">2.10</param> - <param name="revision">a0517614759387867b185f19831280516b543c62</param> <param name="filename">ocaml-qtest</param> + <param name="revision">5cd5d8bfaefb3393c2247001fc67d9c78f2ba483</param> + <param name="scm">git</param> + <param name="submodules">disable</param> + <param name="url">https://github.com/vincent-hugot/qtest.git</param> + <param name="versionformat">@PARENT_TAG@</param> + <param name="versionrewrite-pattern">[v]?([^+]+)(.*)</param> + <param name="versionrewrite-replacement">\1</param> </service> <service name="recompress" mode="disabled"> <param name="file">*.tar</param> ++++++ ocaml-qtest-2.10.tar.xz -> ocaml-qtest-2.11.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-qtest-2.10/qtest.opam new/ocaml-qtest-2.11/qtest.opam --- old/ocaml-qtest-2.10/qtest.opam 2019-11-27 02:57:10.000000000 +0100 +++ new/ocaml-qtest-2.11/qtest.opam 2020-05-12 15:58:36.000000000 +0200 @@ -1,6 +1,6 @@ opam-version: "2.0" maintainer: "Simon Cruanes <[email protected]" -version: "2.10" +version: "2.11" authors: [ "Vincent Hugot <[email protected]>" "Simon Cruanes <[email protected]" @@ -16,10 +16,10 @@ ] depends: [ "base-bytes" - "ounit" { >= "2.0.0" } - "dune" { >= "1.1" & < "2.0" } + "ounit2" + "dune" { >= "1.1" } "qcheck" { >= "0.5" } - "ocaml" { >= "4.02.0" } + "ocaml" { >= "4.03.0" } ] tags: [ "test" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-qtest-2.10/src/core.ml new/ocaml-qtest-2.11/src/core.ml --- old/ocaml-qtest-2.10/src/core.ml 2019-11-27 02:57:10.000000000 +0100 +++ new/ocaml-qtest-2.11/src/core.ml 2020-05-12 15:58:36.000000000 +0200 @@ -5,6 +5,7 @@ (**** TOOLKIT ****) module M = Misclex +let quiet = ref false let fpf = Printf.fprintf let va = Printf.sprintf let epf = Printf.eprintf let eps = prerr_string let pl = print_endline diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-qtest-2.10/src/dune new/ocaml-qtest-2.11/src/dune --- old/ocaml-qtest-2.10/src/dune 2019-11-27 02:57:10.000000000 +0100 +++ new/ocaml-qtest-2.11/src/dune 2020-05-12 15:58:36.000000000 +0200 @@ -3,7 +3,7 @@ (name qtest_bin) (public_name qtest) (libraries bytes) - (flags :standard -w +a-4-29-44-50@8 -warn-error -a -safe-string)) + (flags :standard -w +a-4-29-44-50@8 -warn-error -a+8 -safe-string)) (ocamllex (modules qtest_bin misclex)) @@ -14,5 +14,5 @@ (name qtestlib) (modules) (inline_tests.backend - (generate_runner (run qtest extract %{impl-files} %{intf-files})) + (generate_runner (run qtest extract --quiet %{impl-files} %{intf-files})) (runner_libraries qcheck oUnit bytes))) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-qtest-2.10/src/qtest_bin.mll new/ocaml-qtest-2.11/src/qtest_bin.mll --- old/ocaml-qtest-2.10/src/qtest_bin.mll 2019-11-27 02:57:10.000000000 +0100 +++ new/ocaml-qtest-2.11/src/qtest_bin.mll 2020-05-12 15:58:36.000000000 +0200 @@ -211,7 +211,7 @@ (** register all the tests in source file, and register them in the suite *) let extract_from pathin = Lexing.( - epf "`%s' %!" pathin; + if not !quiet then epf "`%s' %!" pathin; let chanin = open_in pathin in let lexbuf = from_channel chanin in lexbuf.lex_curr_p <- {lexbuf.lex_curr_p with @@ -222,7 +222,7 @@ let fn_base = basename pathin in if not (check_suffix fn_base ".ml" || check_suffix fn_base ".mli") then (Printf.eprintf "File %S is not a ML module!\n%!" pathin ; exit 2); - String.capitalize (chop_extension fn_base) + String.capitalize_ascii (chop_extension fn_base) ) in (* adding the file's pragmas to the suite *) register Env_begin; register (Open mod_name); @@ -233,7 +233,7 @@ (** Generate the test suite from files list on currently selected output *) let generate paths = - eps "Extraction : "; List.iter extract_from paths; + if not !quiet then eps "Extraction : "; List.iter extract_from paths; out "let ___tests = ref []\nlet ___add test = ___tests := test::!___tests\n"; out hard_coded_preamble; out (Buffer.contents global_preamble); @@ -244,7 +244,7 @@ exit (QCheck_ounit.run (\"\" >::: List.rev !___tests))\n\ with Arg.Bad msg -> print_endline msg; exit 1\n\ | Arg.Help msg -> print_endline msg; exit 0"; - eps "Done.\n" + if not !quiet then eps "Done.\n" (** Parse command line *) @@ -256,7 +256,8 @@ Buffer.add_channel global_preamble input (in_channel_length input); close_in input let set_output path = - epf "Target file: `%s'. " path; outc := open_out path + if not !quiet then epf "Target file: `%s'. " path; + outc := open_out path let options = Arg.align [ "-o", Arg.String set_output, " "; @@ -284,6 +285,10 @@ "--shuffle", Arg.Unit (fun ()->toggle _shuffle; if !_shuffle then epf "!!! SHUFFLE is ON !!!\n"), " (default: turned off) \ Toggle test execution order randomisation; submodules using injection are not shuffled"; + +"--quiet", Arg.Set quiet, +" (default: turned off) \ +Suppress output on stderr"; ] let usage_msg = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-qtest-2.10/tests/directives.ml.reference new/ocaml-qtest-2.11/tests/directives.ml.reference --- old/ocaml-qtest-2.10/tests/directives.ml.reference 2019-11-27 02:57:10.000000000 +0100 +++ new/ocaml-qtest-2.11/tests/directives.ml.reference 2020-05-12 15:58:36.000000000 +0200 @@ -74,6 +74,6 @@ end let _ = try - exit (QCheck_runner.run ("" >::: List.rev !___tests)) - with Arg.Bad msg -> print_endline msg; exit 1 - | Arg.Help msg -> print_endline msg; exit 0 \ No newline at end of file +exit (QCheck_ounit.run ("" >::: List.rev !___tests)) +with Arg.Bad msg -> print_endline msg; exit 1 +| Arg.Help msg -> print_endline msg; exit 0 \ No newline at end of file
