-
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: data_only_dirs and aliases (#7129
Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
test/blackbox-tests/test-cases/subdir-stanza/recursive-alias.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,25 @@ | ||
Aliases defined in data_only_dirs aren't traversed | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.8) | ||
> EOF | ||
|
||
$ cat >dune<<EOF | ||
> (subdir foo | ||
> (rule | ||
> (alias run) | ||
> (deps (universe)) | ||
> (action (echo run alias)))) | ||
> EOF | ||
|
||
$ dune build @run | ||
run alias | ||
|
||
$ cat >> dune <<EOF | ||
> (data_only_dirs foo) | ||
> EOF | ||
|
||
$ dune build @run | ||
Error: Alias "run" specified on the command line is empty. | ||
It is not defined in . or any of its descendants. | ||
[1] |