From ad7b8477f177355e50b411b7296ae2e392d7a4be Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 May 2021 12:37:59 +0200 Subject: Only pass target to recipe_text() if recipe is not shared --- tests/dependency/recipe/testscript | 65 ++++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 20 deletions(-) (limited to 'tests/dependency') 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 $* <>/~%EOE% alias{x y}: alias{z} {{ + diag echo echo }} dump alias{y} EOI -:5:1: dump: +:6:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % [diag=echo] perform(update) + % perform(update) {{ + diag echo echo }} EOE @@ -64,14 +66,16 @@ $* <>/~%EOE% alias{x y}: % perform(update clean) {{ + diag echo echo }} dump alias{y} EOI -:6:1: dump: +: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 -:8:1: dump: +:9:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% { var = x } - % [diag=echo] perform(update) + % perform(update) {{ + diag echo echo }} EOE @@ -170,17 +176,19 @@ $* <>/~%EOE% var = x } {{ + diag echo echo }} dump alias{y} EOI -:8:1: dump: +: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 -:9:1: dump: +:10:1: dump: % .+/alias\{y\}:% { var = x } - % [diag=echo] perform(update) + % perform(update) {{ + diag echo echo }} EOE @@ -263,22 +273,26 @@ EOE $* <>/~%EOE% alias{x y}: alias{z} {{ + diag echo echo }} % clean {{{ + diag cat cat }}} dump alias{y} EOI -:9:1: dump: +: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 -:12:1: dump: +: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 -:12:1: dump: +: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 -:19:1: dump: +:22:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % [diag=echo] perform(update) + % perform(update) {{ + diag echo echo }} EOE -- cgit v1.1