Skip to content

Commit

Permalink
add test for enabled_if with <= operator
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Leruth <[email protected]>
  • Loading branch information
tatchi committed Jan 25, 2023
1 parent e8ad4cd commit 2fc5fb0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(cram
(enabled_if
(= %{ocaml_version} 4.14.1)))
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$ cat >dune-project <<EOF
> (lang dune 3.0)
> EOF

$ cat >dune <<EOF
> (library
> (name lte414caml)
> (modules lte414caml)
> (enabled_if (<= %{ocaml_version} 4.14.1)))
>
> (rule (with-stdout-to lte414caml.ml (echo "")))
>
> (rule (with-stdout-to main.ml (echo "")))
>
> (executable
> (name main)
> (modules main)
> (libraries lte414caml))
> EOF

$ dune build

0 comments on commit 2fc5fb0

Please sign in to comment.