-
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.
fix(install): respect display options
<!-- ps-id: e2cecc12-1609-4398-97d1-1d56cdbcfd8d --> Signed-off-by: Ali Caglayan <alizter@gmail.com>
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Test installation display output | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.7) | ||
> (package (name foo)) | ||
> EOF | ||
$ cat >dune <<EOF | ||
> (library | ||
> (public_name foo)) | ||
> EOF | ||
|
||
$ cat >foo.ml <<EOF | ||
> let x = "foo" | ||
> EOF | ||
|
||
$ dune build @install | ||
|
||
dune install should not output any "Installing" messages: | ||
|
||
$ dune install --display=quiet --prefix prefix | ||
|
||
and for comparison here is the output normally: | ||
|
||
$ dune install --prefix prefix | ||
Deleting prefix/lib/foo/META | ||
Deleting prefix/lib/foo/dune-package | ||
Deleting prefix/lib/foo/foo.a | ||
Deleting prefix/lib/foo/foo.cma | ||
Deleting prefix/lib/foo/foo.cmi | ||
Deleting prefix/lib/foo/foo.cmt | ||
Deleting prefix/lib/foo/foo.cmx | ||
Deleting prefix/lib/foo/foo.cmxa | ||
Deleting prefix/lib/foo/foo.ml | ||
Deleting prefix/lib/foo/foo.cmxs |