mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/glob-deps-outside-directory.t

21 lines
407 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Glob deps in a subdirectory that refer to a path outside that subdirectory
$ cat > dune-project <<EOF
> (lang dune 3.6)
> EOF
$ mkdir -p foo bar
$ cat > foo/dune <<EOF
> (rule
> (alias x)
> (deps (glob_files ../bar/*.txt))
> (action (system "for i in %{deps}; do printf \"\$i\\n\"; done")))
> EOF
$ touch bar/a.txt bar/b.txt
$ dune build @foo/x
../bar/a.txt
../bar/b.txt