-
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.
Fix local_binaries to be called on the correct dir
Previously, it was caused on the associated dir but that was worked by accident. Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
26 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 |
---|---|---|
@@ -1,30 +1,23 @@ | ||
Basic test that we can use private binaries as public ones | ||
$ dune build --root private-bin-import | ||
Entering directory 'private-bin-import' | ||
File "using-priv/dune", line 7, characters 0-79: | ||
7 | (alias | ||
8 | (name runtest) | ||
9 | (action | ||
10 | (progn | ||
11 | (run priv) | ||
12 | (run priv-renamed)))) | ||
Error: No rule found for using-priv/.bin/priv | ||
File "using-priv/dune", line 7, characters 0-79: | ||
7 | (alias | ||
8 | (name runtest) | ||
9 | (action | ||
10 | (progn | ||
11 | (run priv) | ||
12 | (run priv-renamed)))) | ||
Error: No rule found for using-priv/.bin/priv-renamed | ||
[1] | ||
priv alias using-priv/runtest | ||
Executing priv as priv | ||
PATH: | ||
_build/default/test/blackbox-tests/test-cases/env-bins/private-bin-import/_build/default/using-priv/.bin | ||
_build/default/test/blackbox-tests/test-cases/env-bins/private-bin-import/_build/install/default/bin | ||
_build/install/default/bin | ||
priv-renamed alias using-priv/runtest | ||
Executing priv as priv-renamed | ||
PATH: | ||
_build/default/test/blackbox-tests/test-cases/env-bins/private-bin-import/_build/default/using-priv/.bin | ||
_build/default/test/blackbox-tests/test-cases/env-bins/private-bin-import/_build/install/default/bin | ||
_build/install/default/bin | ||
|
||
Override public binary in env | ||
$ dune build --root override-bins | ||
Entering directory 'override-bins' | ||
File "test/dune", line 5, characters 0-43: | ||
5 | (alias | ||
6 | (name runtest) | ||
7 | (action (run foo))) | ||
Error: No rule found for test/.bin/foo | ||
[1] | ||
foo alias test/runtest | ||
private binary | ||
foo alias default | ||
public binary |