-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: allow arch_sixtyfour in enabled_if
Signed-off-by: Ali Caglayan <alizter@gmail.com>
- Loading branch information
Showing
7 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
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
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
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/enabled_if/eif-arch_sixtyfour.t/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,4 @@ | ||
(executable | ||
(name hello) | ||
(enabled_if | ||
(= %{arch_sixtyfour} %{arch_sixtyfour}))) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/enabled_if/eif-arch_sixtyfour.t/hello.ml
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 @@ | ||
let () = Printf.printf "Hello, World!\n" |
22 changes: 22 additions & 0 deletions
22
test/blackbox-tests/test-cases/enabled_if/eif-arch_sixtyfour.t/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,22 @@ | ||
Testing %{arch_sixtyfour} in enabled_if | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.9) | ||
> EOF | ||
|
||
$ dune exec -- ./hello.exe | ||
Hello, World! | ||
|
||
Testing the version guard | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.8) | ||
> EOF | ||
|
||
$ dune exec -- ./hello.exe | ||
File "dune", line 4, characters 5-22: | ||
4 | (= %{arch_sixtyfour} %{arch_sixtyfour}))) | ||
^^^^^^^^^^^^^^^^^ | ||
Error: %{arch_sixtyfour} is only available since version 3.9 of the dune | ||
language. Please update your dune-project file to have (lang dune 3.9). | ||
[1] |
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
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