-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for enabled_if with <= operator
Signed-off-by: Corentin Leruth <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(cram | ||
(enabled_if | ||
(= %{ocaml_version} 4.14.1))) |
21 changes: 21 additions & 0 deletions
21
test/blackbox-tests/test-cases/enabled_if/eif-ocaml_version_lte/run.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |