Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions test/blackbox-tests/test-cases/pkg/bin-pform-from-undeclared-pkg.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ declaring any package dependencies:
> (enabled_if %{bin-available:check-env})
> (action
> (with-stdout-to mybin-output (run %{bin:mybin}))))
> (rule
> (alias test-sys)
> (enabled_if %{bin-available:check-env})
> (deps (package provider))
> ; Check that the binary can be found on PATH
> (action
> (with-stdout-to system-mybin-output (system mybin))))
> EOF

$ dune build @all
Expand All @@ -68,6 +75,9 @@ The rule depends on the binary from the provider lockdir package:

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin
Expand All @@ -91,6 +101,9 @@ the same.

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin
Expand All @@ -115,11 +128,16 @@ the behavior is still the same.

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin




With a package defined in the project, *with a dir field, and explicit depends
on only [check-env]*, the behavior remains the same.

Expand All @@ -140,6 +158,9 @@ on only [check-env]*, the behavior remains the same.

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin
Expand All @@ -165,11 +186,16 @@ on only [provider]*, the behavior remains the same.

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin




With a package defined in the project, *with a dir field, and explicit depends
on both [check-env] and [provider]*, the behavior remains the same.

Expand All @@ -190,6 +216,9 @@ on both [check-env] and [provider]*, the behavior remains the same.

All the packages' bin layouts are added to $PATH:

$ cat _build/default/system-mybin-output
from provider

$ env_added "$(cat _build/default/path-output)" "$PATH" | censor
$PWD/_build/_private/default/.pkg/provider.0.0.1-$DIGEST1/target/bin
$PWD/_build/_private/default/.pkg/check-env.0.0.1-$DIGEST2/target/bin
Loading