Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
0cba1b1f
Commit
0cba1b1f
authored
3 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Support OCaml versions 4.11, 4.12 and 4.13. (Closes: Debian:#1002678)
parent
8258bd24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#332101
failed
3 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/comparators/test_ocaml.py
+6
-6
6 additions, 6 deletions
tests/comparators/test_ocaml.py
tests/data/ocaml_expected_diff
+0
-4
0 additions, 4 deletions
tests/data/ocaml_expected_diff
with
6 additions
and
10 deletions
tests/comparators/test_ocaml.py
+
6
−
6
View file @
0cba1b1f
...
...
@@ -23,7 +23,7 @@ from diffoscope.comparators.ocaml import OcamlInterfaceFile
from
diffoscope.comparators.binary
import
FilesystemFile
from
diffoscope.comparators.utils.specialize
import
specialize
from
..utils.data
import
assert_diff
from
..utils.data
import
assert_diff
_startswith
from
..utils.tools
import
skip_unless_tool_is_at_least
from
..utils.nonexisting
import
assert_non_existing
...
...
@@ -56,7 +56,7 @@ def ocaml_version():
return
out
.
decode
(
"
utf-8
"
).
split
()[
-
1
]
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
2
"
)
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
1
"
)
def
test_identification
(
cmi1
):
assert
isinstance
(
cmi1
,
OcamlInterfaceFile
)
...
...
@@ -66,17 +66,17 @@ def differences(cmi1, cmi2):
return
cmi1
.
compare
(
cmi2
).
details
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
2
"
)
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
1
"
)
def
test_no_differences
(
cmi1
):
difference
=
cmi1
.
compare
(
cmi1
)
assert
difference
is
None
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
2
"
)
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
1
"
)
def
test_diff
(
differences
):
assert_diff
(
differences
[
0
],
"
ocaml_expected_diff
"
)
assert_diff
_startswith
(
differences
[
0
],
"
ocaml_expected_diff
"
)
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
2
"
)
@skip_unless_tool_is_at_least
(
"
ocamlobjinfo
"
,
ocaml_version
,
"
4.1
1
"
)
def
test_compare_non_existing
(
monkeypatch
,
cmi1
):
assert_non_existing
(
monkeypatch
,
cmi1
,
has_null_source
=
False
)
This diff is collapsed.
Click to expand it.
tests/data/ocaml_expected_diff
+
0
−
4
View file @
0cba1b1f
...
...
@@ -2,7 +2,3 @@
-Unit name: Test1
+Unit name: Test2
Interfaces imported:
- 69a7449a2ee894ef85f1a4d8645e8051 Test1
+ 187969740b6c403b926a8d81613601ae Test2
4b04b4eda19aa722df365141895fb347 Stdlib
b6c6694955e10001aed267571104a961 CamlinternalFormatBasics
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment