From 26750bd14c715bb616d1779f031b8f5b0ced1bbf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Jun 2021 15:30:35 +0200 Subject: Redo low verbosity diagnostic deduction to use scope instead of target --- tests/dependency/recipe/testscript | 65 ++++++++++++-------------------------- 1 file changed, 20 insertions(+), 45 deletions(-) (limited to 'tests') diff --git a/tests/dependency/recipe/testscript b/tests/dependency/recipe/testscript index 3126691..ebcdfdb 100644 --- a/tests/dependency/recipe/testscript +++ b/tests/dependency/recipe/testscript @@ -28,16 +28,14 @@ EOE $* <>/~%EOE% alias{x y}: alias{z} {{ - diag echo echo }} dump alias{y} EOI -:6:1: dump: +:5:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE @@ -66,16 +64,14 @@ $* <>/~%EOE% alias{x y}: % perform(update clean) {{ - diag echo echo }} dump alias{y} EOI -:7:1: dump: +:6:1: dump: % .+/alias\{y\}:% - % perform(update) perform(clean) + % [diag=echo] perform(update) perform(clean) {{ - diag echo echo }} EOE @@ -128,19 +124,17 @@ alias{x y}: alias{z} var = x } {{ - diag echo echo }} dump alias{y} EOI -:9:1: dump: +:8:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% { var = x } - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE @@ -176,19 +170,17 @@ $* <>/~%EOE% var = x } {{ - diag echo echo }} dump alias{y} EOI -:9:1: dump: +:8:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% { var = x } - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE @@ -226,19 +218,17 @@ alias{x y}: } % perform(update) {{ - diag echo echo }} dump alias{y} EOI -:10:1: dump: +:9:1: dump: % .+/alias\{y\}:% { var = x } - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE @@ -273,26 +263,22 @@ EOE $* <>/~%EOE% alias{x y}: alias{z} {{ - diag echo echo }} % clean {{{ - diag cat cat }}} dump alias{y} EOI -:11:1: dump: +:9:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} - % perform(clean) + % [diag=cat] perform(clean) {{{ - diag cat cat }}} EOE @@ -331,27 +317,23 @@ alias{x y}: % clean {{ - diag echo echo }} % update {{{ - diag cat cat }}} dump alias{y} EOI -:14:1: dump: +:12:1: dump: % .+/alias\{y\}:% - % perform(clean) + % [diag=echo] perform(clean) {{ - diag echo echo }} - % perform(update) + % [diag=cat] perform(update) {{{ - diag cat cat }}} EOE @@ -504,21 +486,18 @@ alias{x y}: alias{z} % if $f {{ - diag false false }} else {{ - diag echo echo }} dump alias{y} EOI -:14:1: dump: +:12:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE @@ -580,27 +559,23 @@ switch $f { case 1 {{ - diag false false }} case 2 {{ - diag echo echo }} default {{ - diag false false }} } dump alias{y} EOI -:22:1: dump: +:19:1: dump: % .+/alias\{y\}: .+/:alias\{z\}% - % perform(update) + % [diag=echo] perform(update) {{ - diag echo echo }} EOE -- cgit v1.1