[Git][reproducible-builds/diffoscope][master] Update tests for OCaml 4.12. Thanks to Zbigniew Jędrzejewski-Szmek for the...

Chris Lamb (@lamby) gitlab at salsa.debian.org
Sun Sep 12 10:21:19 UTC 2021



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
1fcc0d51 by Chris Lamb at 2021-09-12T11:20:10+01:00
Update tests for OCaml 4.12. Thanks to Zbigniew Jędrzejewski-Szmek for the report. (Closes: reproducible-builds/diffoscope#274)

- - - - -


2 changed files:

- tests/comparators/test_ocaml.py
- tests/data/ocaml_expected_diff


Changes:

=====================================
tests/comparators/test_ocaml.py
=====================================
@@ -1,7 +1,7 @@
 #
 # diffoscope: in-depth comparison of files, archives, and directories
 #
-# Copyright © 2018-2020 Chris Lamb <lamby at debian.org>
+# Copyright © 2018-2021 Chris Lamb <lamby at debian.org>
 #
 # diffoscope is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ def ocaml_version():
     return out.decode("utf-8").split()[-1]
 
 
- at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
+ at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
 def test_identification(cmi1):
     assert isinstance(cmi1, OcamlInterfaceFile)
 
@@ -66,17 +66,17 @@ def differences(cmi1, cmi2):
     return cmi1.compare(cmi2).details
 
 
- at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
+ at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
 def test_no_differences(cmi1):
     difference = cmi1.compare(cmi1)
     assert difference is None
 
 
- at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
+ at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
 def test_diff(differences):
     assert_diff(differences[0], "ocaml_expected_diff")
 
 
- at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
+ at skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
 def test_compare_non_existing(monkeypatch, cmi1):
     assert_non_existing(monkeypatch, cmi1, has_null_source=False)


=====================================
tests/data/ocaml_expected_diff
=====================================
@@ -2,7 +2,7 @@
 -Unit name: Test1
 +Unit name: Test2
  Interfaces imported:
--	3e47d8b00458748ef1a9311764531b2c	Test1
-+	de7049745527b20997c517c338bb83cb	Test2
- 	c21c5d26416461b543321872a551ea0d	Stdlib
- 	3a3ca1838627f7762f49679ce0278ad1	CamlinternalFormatBasics
+-	69a7449a2ee894ef85f1a4d8645e8051	Test1
++	187969740b6c403b926a8d81613601ae	Test2
+ 	4b04b4eda19aa722df365141895fb347	Stdlib
+ 	b6c6694955e10001aed267571104a961	CamlinternalFormatBasics



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/1fcc0d51994ab4fd063fed84dd65ac6ff99877ec

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/1fcc0d51994ab4fd063fed84dd65ac6ff99877ec
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210912/93b28115/attachment.htm>


More information about the rb-commits mailing list