-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: directory targets with empty subdirs
Signed-off-by: Ambre Austen Suhamy <ambre@tarides.com>
1 parent
cd876b2
commit ed32398
Showing
9 changed files
with
589 additions
and
182 deletions.
There are no files selected for viewing
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
test/blackbox-tests/test-cases/directory-targets/subdirs-only.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 @@ | ||
We test that a directory target with only other subdirs can be | ||
properly promoted. | ||
|
||
$ cat > dune-project <<EOF | ||
> (lang dune 3.16) | ||
> (using directory-targets 0.1) | ||
> EOF | ||
|
||
$ cat > dune <<EOF | ||
> (rule | ||
> (targets (dir foo)) | ||
> (mode (promote (until-clean))) | ||
> (action | ||
> (progn | ||
> (run mkdir -p foo/bar) | ||
> (run touch foo/bar/file1) | ||
> (run mkdir -p foo/bar/baz/qux) | ||
> (run touch foo/bar/baz/qux/file2)))) | ||
> EOF | ||
|
||
$ dune build foo | ||
$ ls foo/bar/baz/qux | ||
file2 |
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