mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/depend-on/expand-aliases-rerun.t

33 lines
710 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Setting (expand_aliases_in_sandbox) should re-run the action
First, we create an action and make it depend on an alias
$ cat >dune-project <<EOF
> (lang dune 3.11)
> EOF
$ export DUNE_SANDBOX=symlink
$ cat >dune <<EOF
> (rule
> (alias bar)
> (action (with-stdout-to alias-dep (echo ""))))
> (rule
> (alias foo)
> (deps (alias bar))
> (action (system "find . | sort")))
> EOF
$ dune build @foo
.
Now we set (expand_aliases_in_sandbox), and re-run the action.
$ cat >dune-project <<EOF
> (lang dune 3.11)
> (expand_aliases_in_sandbox)
> EOF
$ dune build @foo
.
./alias-dep
The above output should include the files that we depend on via the alias
expansion.