mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/opam-package-with-build-test-and-build-doc.t

28 lines
741 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Older opam files contain the deprecated `build-test` and `build-doc` fields which has
since been deprecated to the `build` field with a filter.
In this test we demonstrate that we don't currently do anything special with those fields.
$ . ./helpers.sh
$ mkrepo
$ mkpkg with-build-test-doc <<EOF
> build: [ "echo" "Building" ]
> build-doc: [ "echo" "Building doc" ]
> build-test: [ "echo" "Building test" ]
> EOF
$ solve with-build-test-doc
Solution for dune.lock:
- with-build-test-doc.0.0.1
The lockfile should contain the `build-test` and `build-doc` fields inside the build
action.
This is currently not the case.
$ cat dune.lock/with-build-test-doc.pkg
(version 0.0.1)
(build
(run echo Building))