aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-24 18:09:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-11-25 14:15:43 +0300
commit472d6d0e49c0114f46ff31267d09acdbf9fba421 (patch)
tree9edfc26e77edabee872c625eb5b96e845b7b4654 /tests
parentf8408539216cc213fa780560b7396af8ba801e2e (diff)
Use operation name as a buildscript name if unable to deduce
Diffstat (limited to 'tests')
-rw-r--r--tests/dependency/recipe/testscript48
1 files changed, 36 insertions, 12 deletions
diff --git a/tests/dependency/recipe/testscript b/tests/dependency/recipe/testscript
index 1d30207..f43111e 100644
--- a/tests/dependency/recipe/testscript
+++ b/tests/dependency/recipe/testscript
@@ -611,18 +611,42 @@ EOE
{
: weight-0
:
- $* <<EOI 2>>EOE != 0
- alias{x}:
- {{
-
- exit
- }}
- dump alias{x}
- EOI
- <stdin>:3:1: error: unable to deduce low-verbosity script diagnostics name
- info: consider specifying it explicitly with the 'diag' recipe attribute
- info: or provide custom low-verbosity diagnostics with the 'diag' builtin
- EOE
+ {
+ : single-operation
+ :
+ {
+ $* <<EOI 2>>~%EOE%
+ alias{x}:
+ {{
+
+ exit
+ }}
+ dump alias{x}
+ EOI
+ %.{2}
+ % [diag=update] perform(update)
+ %.{3}
+ EOE
+ }
+
+ : multiple-operations
+ :
+ {
+ $* <<EOI 2>>EOE != 0
+ alias{x}:
+ % update clean
+ {{
+
+ exit
+ }}
+ dump alias{x}
+ EOI
+ <stdin>:4:1: error: unable to deduce low-verbosity script diagnostics name
+ info: consider specifying it explicitly with the 'diag' recipe attribute
+ info: or provide custom low-verbosity diagnostics with the 'diag' builtin
+ EOE
+ }
+ }
: weight-1
: