Skip to content

Commit

Permalink
Limit some tests to specific ocaml versions
Browse files Browse the repository at this point in the history
To ensure we pass on older ocaml versions.
  • Loading branch information
jonludlam committed Feb 8, 2024
1 parent 294633f commit e188a11
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/xref2/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
(cram
(deps %{bin:odoc} %{bin:odoc_print} %{bin:compile}))

(cram
(applies_to module_type_of_size hidden_modules)
(enabled_if
(>= %{ocaml_version} 4.04.0)))

; 4.06.0 and above

(cram
Expand All @@ -29,7 +34,7 @@
; 4.08.0 and above

(cram
(applies_to github_issue_587 shadow)
(applies_to github_issue_587 shadow shadow2 shadow4 expansion)
(enabled_if
(>= %{ocaml_version} 4.08.0)))

Expand All @@ -43,6 +48,6 @@
; 4.14.0 and above

(cram
(applies_to lookup_def)
(applies_to lookup_def shadow3)
(enabled_if
(>= %{ocaml_version} 4.14.0)))

0 comments on commit e188a11

Please sign in to comment.