-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: directory targets and copying sandbox (#7723)
Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
test/blackbox-tests/test-cases/directory-targets/copy-sandboxing.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |