diff --git a/test/blackbox-tests/test-cases/pkg/bin-pform-from-undeclared-pkg.t b/test/blackbox-tests/test-cases/pkg/bin-pform-from-undeclared-pkg.t index b1b05cd3afc..7e54a2886de 100644 --- a/test/blackbox-tests/test-cases/pkg/bin-pform-from-undeclared-pkg.t +++ b/test/blackbox-tests/test-cases/pkg/bin-pform-from-undeclared-pkg.t @@ -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 @@ -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 @@ -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 @@ -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. @@ -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 @@ -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. @@ -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