Skip to content

Commit

Permalink
test: directory targets and copying sandbox (#7723)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored May 14, 2023
1 parent e704101 commit 3bde079
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/blackbox-tests/test-cases/directory-targets/copy-sandboxing.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Sandbox a rule that depends on a directory target using the copying sandbox
mode:

$ cat >dune-project <<EOF
> (lang dune 3.8)
> (using directory-targets 0.1)
> EOF

$ cat >dune <<EOF
> (rule
> (targets (dir output))
> (action (bash "mkdir -p output/; echo x > output/x; echo y > output/y")))
> (rule
> (target foo)
> (deps (sandbox always) output/)
> (action
> (run touch foo)))
> EOF

$ dune build foo --sandbox=copy
Error: Is a directory
-> required by _build/default/foo
[1]

0 comments on commit 3bde079

Please sign in to comment.