Skip to content

Commit a7aa33e

Browse files
committed
test: check enabled_if and tests stanza alias interaction
Signed-off-by: Ali Caglayan <alizter@gmail.com>
1 parent ad6b5d1 commit a7aa33e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/blackbox-tests/test-cases/stanzas/tests/tests-stanza-alias.t

+16
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,19 @@ Tests stanzas produce aliases with the executable names
2020
$ dune build @a @b
2121
a
2222
b
23+
24+
Checking interaction with enabled_if
25+
26+
$ cat > dune << EOF
27+
> (tests
28+
> (names a b)
29+
> (enabled_if false))
30+
> EOF
31+
32+
$ dune build @a @b
33+
Error: Alias "a" specified on the command line is empty.
34+
It is not defined in . or any of its descendants.
35+
Hint: did you mean all?
36+
Error: Alias "b" specified on the command line is empty.
37+
It is not defined in . or any of its descendants.
38+
[1]

0 commit comments

Comments
 (0)