aboutsummaryrefslogtreecommitdiff
path: root/tests/dependency
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dependency')
-rw-r--r--tests/dependency/chain/testscript49
-rw-r--r--tests/dependency/recipe/testscript46
2 files changed, 95 insertions, 0 deletions
diff --git a/tests/dependency/chain/testscript b/tests/dependency/chain/testscript
index ac4a946..a24ace3 100644
--- a/tests/dependency/chain/testscript
+++ b/tests/dependency/chain/testscript
@@ -36,3 +36,52 @@ EOI
% .+/dir\{y/\}: .+:dir\{a/\} .+:dir\{b/\}%
EOE
+
+: var-prereq
+:
+$* <<EOI 2>>/~%EOE%
+./: dir{x}: dir{a}: x = y
+dump dir{x}
+EOI
+<stdin>:2:1: dump:
+% .+/dir\{x/\}: .+:dir\{a/\}:%
+ {
+ x = y
+ }
+EOE
+
+: var-prereq-block
+:
+$* <<EOI 2>>/~%EOE%
+./: dir{x}: dir{a}:
+{
+ x = y
+ z = x
+}
+dump dir{x}
+EOI
+<stdin>:6:1: dump:
+% .+/dir\{x/\}: .+:dir\{a/\}:%
+ {
+ x = y
+ z = x
+ }
+EOE
+
+: var-target-block
+:
+$* <<EOI 2>>/~%EOE%
+./: dir{x}: dir{a}
+{
+ x = y
+ z = x
+}
+dump dir{x}
+EOI
+<stdin>:6:1: dump:
+% .+/dir\{x/\}: .+:dir\{a/\}%
+ {
+ x = y
+ z = x
+ }
+EOE
diff --git a/tests/dependency/recipe/testscript b/tests/dependency/recipe/testscript
index bd33bcc..43ec514 100644
--- a/tests/dependency/recipe/testscript
+++ b/tests/dependency/recipe/testscript
@@ -139,6 +139,52 @@ EOI
}}
EOE
+: with-vars-depchain
+:
+$* <<EOI 2>>/~%EOE%
+./: alias{x}: alias{y}
+{
+ var = x
+}
+{{
+ echo
+}}
+dump alias{x}
+EOI
+<stdin>:8:1: dump:
+% .+/alias\{x\}: .+/:alias\{y\}%
+ {
+ var = x
+ }
+ % [diag=echo] perform(update)
+ {{
+ echo
+ }}
+EOE
+
+: with-vars-replay-depchain
+:
+$* <<EOI 2>>/~%EOE%
+./: alias{x y}: alias{z}
+{
+ var = x
+}
+{{
+ echo
+}}
+dump alias{y}
+EOI
+<stdin>:8:1: dump:
+% .+/alias\{y\}: .+/:alias\{z\}%
+ {
+ var = x
+ }
+ % [diag=echo] perform(update)
+ {{
+ echo
+ }}
+EOE
+
: with-vars-header
:
$* <<EOI 2>>/~%EOE%