Add a test for ${<}
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
This commit is contained in:
parent
bfa73a8cac
commit
e3821bbf11
|
@ -1,5 +1,11 @@
|
||||||
|
(alias
|
||||||
|
(name runtest)
|
||||||
|
(deps (:foo a b) (:baz foo (alias x)) a b c)
|
||||||
|
(action (echo "foo = %{foo}\nbaz = %{baz}\n")))
|
||||||
|
|
||||||
(rule
|
(rule (with-stdout-to a (echo "")))
|
||||||
(deps (:foo a b) (:baz foo (alias test)) a b c)
|
(rule (with-stdout-to b (echo "")))
|
||||||
(targets bar)
|
(rule (with-stdout-to c (echo "")))
|
||||||
(action (with-stdout-to bar (echo "foo"))))
|
(rule (with-stdout-to foo (echo "")))
|
||||||
|
|
||||||
|
(alias (name x))
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
(alias
|
||||||
|
((name runtest)
|
||||||
|
(deps ((alias x) foo (alias x)))
|
||||||
|
(action (echo "< = ${<}\n"))))
|
||||||
|
|
||||||
|
(alias ((name x)))
|
||||||
|
|
||||||
|
(rule (with-stdout-to foo (echo "")))
|
|
@ -1,3 +1,6 @@
|
||||||
Dependencies are allowed :patterns
|
Dependencies are allowed :patterns
|
||||||
|
|
||||||
$ dune build
|
$ dune runtest
|
||||||
|
< = foo
|
||||||
|
foo = a b
|
||||||
|
baz = foo
|
||||||
|
|
Loading…
Reference in New Issue