aboutsummaryrefslogtreecommitdiff
path: root/tests/dependency
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-31 12:37:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-31 13:00:43 +0200
commitad7b8477f177355e50b411b7296ae2e392d7a4be (patch)
tree61339754654e5bb11db585c2954e237d607afac5 /tests/dependency
parent73a64baac30f5c478201e9f86dc4dd5ef85f0192 (diff)
Only pass target to recipe_text() if recipe is not shared
Diffstat (limited to 'tests/dependency')
-rw-r--r--tests/dependency/recipe/testscript65
1 files changed, 45 insertions, 20 deletions
diff --git a/tests/dependency/recipe/testscript b/tests/dependency/recipe/testscript
index 09a38ad..4c4abe5 100644
--- a/tests/dependency/recipe/testscript
+++ b/tests/dependency/recipe/testscript
@@ -28,14 +28,16 @@ EOE
$* <<EOI 2>>/~%EOE%
alias{x y}: alias{z}
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:5:1: dump:
+<stdin>:6:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE
@@ -64,14 +66,16 @@ $* <<EOI 2>>/~%EOE%
alias{x y}:
% perform(update clean)
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:6:1: dump:
+<stdin>:7:1: dump:
% .+/alias\{y\}:%
- % [diag=echo] perform(update) perform(clean)
+ % perform(update) perform(clean)
{{
+ diag echo
echo
}}
EOE
@@ -124,17 +128,19 @@ alias{x y}: alias{z}
var = x
}
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:8:1: dump:
+<stdin>:9:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
{
var = x
}
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE
@@ -170,17 +176,19 @@ $* <<EOI 2>>/~%EOE%
var = x
}
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:8:1: dump:
+<stdin>:9:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
{
var = x
}
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE
@@ -218,17 +226,19 @@ alias{x y}:
}
% perform(update)
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:9:1: dump:
+<stdin>:10:1: dump:
% .+/alias\{y\}:%
{
var = x
}
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE
@@ -263,22 +273,26 @@ EOE
$* <<EOI 2>>/~%EOE%
alias{x y}: alias{z}
{{
+ diag echo
echo
}}
% clean
{{{
+ diag cat
cat
}}}
dump alias{y}
EOI
-<stdin>:9:1: dump:
+<stdin>:11:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
- % [diag=cat] perform(clean)
+ % perform(clean)
{{{
+ diag cat
cat
}}}
EOE
@@ -317,23 +331,27 @@ alias{x y}:
% clean
{{
+ diag echo
echo
}}
% update
{{{
+ diag cat
cat
}}}
dump alias{y}
EOI
-<stdin>:12:1: dump:
+<stdin>:14:1: dump:
% .+/alias\{y\}:%
- % [diag=echo] perform(clean)
+ % perform(clean)
{{
+ diag echo
echo
}}
- % [diag=cat] perform(update)
+ % perform(update)
{{{
+ diag cat
cat
}}}
EOE
@@ -468,18 +486,21 @@ alias{x y}: alias{z}
%
if $f
{{
+ diag false
false
}}
else
{{
+ diag echo
echo
}}
dump alias{y}
EOI
-<stdin>:12:1: dump:
+<stdin>:14:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE
@@ -541,23 +562,27 @@ switch $f
{
case 1
{{
+ diag false
false
}}
case 2
{{
+ diag echo
echo
}}
default
{{
+ diag false
false
}}
}
dump alias{y}
EOI
-<stdin>:19:1: dump:
+<stdin>:22:1: dump:
% .+/alias\{y\}: .+/:alias\{z\}%
- % [diag=echo] perform(update)
+ % perform(update)
{{
+ diag echo
echo
}}
EOE