-
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 installing source trees
Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 7566b2e4-deeb-457c-81c6-2ca51652a09b -->
- Loading branch information
Showing
8 changed files
with
171 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Introduce `(source_trees ..)` to the install stanza to allow installing | ||
entire source trees. (#8349, @rgrinberg) |
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
43 changes: 43 additions & 0 deletions
43
test/blackbox-tests/test-cases/install/install-source-tree.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,43 @@ | ||
Testing the source_trees field which is used to entire source_trees | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.11) | ||
> (package | ||
> (allow_empty) | ||
> (name mypkg)) | ||
> EOF | ||
|
||
$ cat >dune <<EOF | ||
> (install | ||
> (section doc) | ||
> (source_trees mydocs)) | ||
> EOF | ||
|
||
$ test() { | ||
> dune build mypkg.install | ||
> cat _build/default/mypkg.install | ||
> } | ||
|
||
Try to build a source directory that doesn't exist: | ||
|
||
$ test | ||
lib: [ | ||
"_build/install/default/lib/mypkg/META" | ||
"_build/install/default/lib/mypkg/dune-package" | ||
] | ||
|
||
Create the source directory and fill it up with some dummy stuff for the test: | ||
|
||
$ mkdir -p mydocs/foo | ||
$ touch mydocs/foo.md mydocs/baz.md mydocs/foo/bar.md | ||
|
||
$ test | ||
lib: [ | ||
"_build/install/default/lib/mypkg/META" | ||
"_build/install/default/lib/mypkg/dune-package" | ||
] | ||
doc: [ | ||
"_build/install/default/doc/mypkg/mydocs/baz.md" {"mydocs/baz.md"} | ||
"_build/install/default/doc/mypkg/mydocs/foo.md" {"mydocs/foo.md"} | ||
"_build/install/default/doc/mypkg/mydocs/foo/bar.md" {"mydocs/foo/bar.md"} | ||
] |