-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determining the missing library dependencies is revived under $ dune describe external-lib-deps. Signed-off-by: Alpha DIALLO <[email protected]>
- Loading branch information
1 parent
ea49ba6
commit 1d4a783
Showing
7 changed files
with
219 additions
and
6 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 was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
test/blackbox-tests/test-cases/external-lib-deps/simple-pps.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,18 @@ | ||
(library | ||
(name foo) | ||
(modules :standard \ prog) | ||
(libraries a________ b________ c________) | ||
(preprocess (pps d________ e________ f________))) | ||
|
||
(rule | ||
(with-stdout-to file.ml | ||
(echo %{lib-available:optional}))) | ||
|
||
(rule (with-stdout-to foo.ml (run prog))) | ||
|
||
(executable | ||
(name prog) | ||
(modules prog) | ||
(libraries h________ i________ j________)) | ||
|
||
(rule (with-stdout-to prog.ml (echo ""))) |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/external-lib-deps/simple-pps.t/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,4 @@ | ||
(lang dune 1.9) | ||
(name foo) | ||
|
||
(allow_approximate_merlin true) |
14 changes: 14 additions & 0 deletions
14
test/blackbox-tests/test-cases/external-lib-deps/simple-pps.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,14 @@ | ||
Expected: To get all required and pps packages | ||
|
||
$ dune describe external-lib-deps | ||
(default | ||
((. | ||
((a________ required) | ||
(b________ required) | ||
(c________ required) | ||
(d________ required) | ||
(e________ required) | ||
(f________ required) | ||
(h________ required) | ||
(i________ required) | ||
(j________ required))))) |
11 changes: 11 additions & 0 deletions
11
test/blackbox-tests/test-cases/external-lib-deps/simple.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,11 @@ | ||
external library dependencies of a simple project | ||
|
||
$ echo "(lang dune 2.3)" > dune-project | ||
$ touch dummypkg.opam | ||
$ cat >dune <<EOF | ||
> (library | ||
> (public_name dummypkg) | ||
> (libraries base doesnotexist.foo)) | ||
> EOF | ||
$ dune describe external-lib-deps | ||
(default ((. ((base required) (doesnotexist.foo required))))) |