(env
 (_
  (binaries ../../utils/ocamlformat.exe)))

(cram
 (applies_to fmt-test)
 (deps %{bin:ocamlformat}))

(cram
 ;; see https://github.com/ocaml/dune/pull/4728
 (enabled_if
  (<> "macosx" %{ocaml-config:system}))
 (applies_to * \ path-pwd))

(cram
 ;; see https://github.com/ocaml/dune/pull/4728
 (enabled_if
  (= "macosx" %{ocaml-config:system}))
 (applies_to path-pwd))

(cram
 (applies_to rpc-bind-failure)
 (enabled_if
  (<> %{ocaml-config:system} win)))

;; Disabled due to timeouts

(cram
 (enabled_if false)
 (applies_to watching-eager-concurrent-build-command sigpipe))
