-
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.
Merge branch 'master' into explicitly-pass-installed-binaries
- Loading branch information
Showing
32 changed files
with
184 additions
and
56 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(alias | ||
(name default) | ||
(action (run ./exe/test.exe))) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/basic/dune-project
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 @@ | ||
(lang dune 1.9) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/basic/exe/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 @@ | ||
(executable (name test)) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/include-qualified/basic/exe/test.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,3 @@ | ||
let () = | ||
Foolib.Foo.Bar.run (); | ||
Foolib.Foo.A.B.run () |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/include-qualified/basic/lib/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 @@ | ||
(include_subdirs qualified) | ||
|
||
(library (name foolib)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/basic/lib/foo/a/b.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 run () = print_endline "hello from nested module B" |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/basic/lib/foo/bar.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 run () = print_endline "hello from nested module bar" |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/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 @@ | ||
(alias | ||
(name default) | ||
(action (run ./exe/test.exe))) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/dune-project
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 @@ | ||
(lang dune 1.9) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/exe/test.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,3 @@ | ||
let () = | ||
Foolib.Bar.Fake.run (); | ||
Foolib.Bar.Baz.run () |
5 changes: 5 additions & 0 deletions
5
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/lib/bar/bar.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,5 @@ | ||
module Fake = struct | ||
let run () = | ||
print_endline "defined in lib interface file" | ||
end | ||
module Baz = Baz |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/lib/bar/baz.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 run () = print_endline "hello from baz" |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/lib/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 @@ | ||
(include_subdirs qualified) | ||
|
||
(library | ||
(name foolib)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-lib-interface/lib/foolib.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 @@ | ||
module Bar = Bar |
Empty file.
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-virtual/dune-project
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 @@ | ||
(lang dune 1.9) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-virtual/impl/bar/virt.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 run = print_endline |
5 changes: 5 additions & 0 deletions
5
test/blackbox-tests/test-cases/include-qualified/nested-virtual/impl/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,5 @@ | ||
(include_subdirs qualified) | ||
|
||
(library | ||
(name impl) | ||
(implements vlib)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/nested-virtual/vlib/bar/virt.mli
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 @@ | ||
val run : string -> unit |
5 changes: 5 additions & 0 deletions
5
test/blackbox-tests/test-cases/include-qualified/nested-virtual/vlib/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,5 @@ | ||
(include_subdirs qualified) | ||
|
||
(library | ||
(name vlib) | ||
(virtual_modules bar/virt)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/pp/bar/ppme.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 x = 42 |
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,8 @@ | ||
(include_subdirs qualified) | ||
|
||
(library | ||
(name foolib) | ||
(preprocess | ||
(per_module | ||
((action | ||
(run cat %{input-file})) bar/ppme)))) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/include-qualified/pp/dune-project
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 @@ | ||
(lang dune 1.9) |
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 @@ | ||
module Bar = Bar.Ppme |
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,39 @@ | ||
Basic test showcasing the feature. Every directory creates a new level of aliasing. | ||
$ dune build --root basic | ||
Entering directory 'basic' | ||
File "lib/dune", line 1, characters 17-26: | ||
1 | (include_subdirs qualified) | ||
^^^^^^^^^ | ||
Error: Unknown value qualified | ||
Hint: did you mean unqualified? | ||
[1] | ||
|
||
We are also allowed to write lib interface files at each level. | ||
$ dune build --root nested-lib-interface | ||
Entering directory 'nested-lib-interface' | ||
File "lib/dune", line 1, characters 17-26: | ||
1 | (include_subdirs qualified) | ||
^^^^^^^^^ | ||
Error: Unknown value qualified | ||
Hint: did you mean unqualified? | ||
[1] | ||
|
||
We can nested modules virtual | ||
$ dune build @all --root nested-virtual | ||
Entering directory 'nested-virtual' | ||
File "impl/dune", line 1, characters 17-26: | ||
1 | (include_subdirs qualified) | ||
^^^^^^^^^ | ||
Error: Unknown value qualified | ||
Hint: did you mean unqualified? | ||
[1] | ||
|
||
We can set preprocessing options for nested modules | ||
$ dune build @all --root pp | ||
Entering directory 'pp' | ||
File "dune", line 1, characters 17-26: | ||
1 | (include_subdirs qualified) | ||
^^^^^^^^^ | ||
Error: Unknown value qualified | ||
Hint: did you mean unqualified? | ||
[1] |