mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/opam-package-with-build-env-no-build.t
2025-11-11 02:07:51 +01:00

20 lines
553 B
Perl

In this test we test the translation of a package with a build-env field and no build or
install step into a dune lock file.
$ . ./helpers.sh
$ mkrepo
Make a package with a build-env field and no build or install step
$ mkpkg with-build-env <<'EOF'
> build-env: [ [ MY_ENV_VAR = "Hello from env var!" ] ]
> EOF
$ solve with-build-env
Solution for dune.lock:
- with-build-env.0.0.1
When there is no build or install step the build environment does not appear in the lock
file.
$ cat dune.lock/with-build-env.pkg
(version 0.0.1)