From 4ee94ea30da8c093299a0eb983540ac87edfb027 Mon Sep 17 00:00:00 2001 From: Sonja Heinze Date: Mon, 13 Jun 2022 12:09:47 +0200 Subject: [PATCH] Disable the sexp tests on old compilers Due to its ppxlib constraint, ppx_import needs ppx_sexp_conv >= v.0.15.0, which (transitively via base) requires a compiler >= 4.10.0. --- ppx_import.opam | 12 +++++++++++- src_test/ppx_deriving_sexp/dune | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ppx_import.opam b/ppx_import.opam index 5b104a3..d1d5563 100644 --- a/ppx_import.opam +++ b/ppx_import.opam @@ -11,12 +11,22 @@ dev-repo: "git+https://github.com/ocaml-ppx/ppx_import.git" tags: [ "syntax" ] depends: [ - "ocaml" { >= "4.05.0" } + ( + "ocaml" {>= "4.05.0" & < "4.10.0" } "dune" { >= "1.11.0" } "ppxlib" { >= "0.26.0" } "ounit" { with-test } "ppx_deriving" { with-test & >= "4.2.1" } + ) + | + ( + "ocaml" { >= "4.10.0" } "ppx_sexp_conv" { with-test & >= "v0.13.0" } + "dune" { >= "1.11.0" } + "ppxlib" { >= "0.26.0" } + "ounit" { with-test } + "ppx_deriving" { with-test & >= "4.2.1" } + ) ] build: [["dune" "build" "-p" name "-j" jobs] diff --git a/src_test/ppx_deriving_sexp/dune b/src_test/ppx_deriving_sexp/dune index 800d8ce..7b4beee 100644 --- a/src_test/ppx_deriving_sexp/dune +++ b/src_test/ppx_deriving_sexp/dune @@ -1,4 +1,6 @@ (test (name test_ppx_deriving_sexp) + (enabled_if + (>= %{ocaml_version} "4.10.0")) (preprocess (staged_pps ppx_import ppx_sexp_conv)))