-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: generate_opam_files and fresh build (#7546)
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
test/blackbox-tests/test-cases/dune-project-meta/fresh-build.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,24 @@ | ||
Building the .install file should not depend on foo.opam being present in the | ||
source tree if (generate_opam_files true) is enabled. | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.8) | ||
> (package | ||
> (name foo)) | ||
> (generate_opam_files true) | ||
> EOF | ||
|
||
$ cat >dune <<EOF | ||
> (install | ||
> (section share) | ||
> (files dune)) | ||
> EOF | ||
|
||
$ dune build foo.install | ||
$ grep opam _build/default/foo.install | ||
[1] | ||
|
||
$ dune build @check | ||
$ dune build foo.install | ||
$ grep opam _build/default/foo.install | ||
"_build/install/default/lib/foo/opam" |