mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/absolute-paths-in-sections.t

27 lines
635 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Test that section pforms are substituted with absolute paths.
$ . ./helpers.sh
$ make_lockdir
$ cat >dune.lock/test.pkg <<EOF
> (version 0.0.1)
> (install (progn
> (run echo --prefix %{prefix})
> (run echo --prefix=%{prefix})))
> EOF
$ cat >dune-project <<EOF
> (lang dune 3.13)
> (package
> (name foo)
> (allow_empty)
> (depends test))
> EOF
Note that currently dune incorrectly substitutes relative paths for pforms that
appear in string interpolations.
$ build_pkg test 2>&1 | strip_sandbox
--prefix $SANDBOX/_private/default/.pkg/test/target
$SANDBOX/_private/default/.pkg/test/target