about summary refs log tree commit diff
path: root/Test/B01cd.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-12-01 21:52:55 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-12-01 21:52:55 +0000
commitae8e3ba86d675e13d70e9bf26bf88620bebb096d (patch)
treeaac40ec0598eab326572422461342bb997578a34 /Test/B01cd.ztst
parentd6d0297b10fb1ad4143633140414f8c5631016d6 (diff)
downloadzsh-ae8e3ba86d675e13d70e9bf26bf88620bebb096d.tar.gz
zsh-ae8e3ba86d675e13d70e9bf26bf88620bebb096d.tar.xz
zsh-ae8e3ba86d675e13d70e9bf26bf88620bebb096d.zip
29924: add ability to match test output using patterns
Diffstat (limited to 'Test/B01cd.ztst')
-rw-r--r--Test/B01cd.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst
index b5ba4d03b..e178495a9 100644
--- a/Test/B01cd.ztst
+++ b/Test/B01cd.ztst
@@ -57,6 +57,14 @@
 # lines are not subject to any substitution unless the `q' flag (see
 # below) is set.
 #
+# '>' and '?' may be preceded by a '*', in which case all lines
+# in the chunk must be so delimited (i.e. all lines must start either
+# '*>' or '>' but not a mixture).  If the '*' is present, the lines
+# in the actual output are pattern matched against the lines in the
+# test output.  The entire line following '*>' or '*?' must be a
+# valid pattern, so characters special to patterns such as parentheses
+# must be quoted.  The EXTENDED_GLOB option is used for all such patterns.
+#
 # Each chunk of indented code is to be evaluated in one go and is to
 # be followed by a line starting (in the first column) with
 # the expected status returned by the code when run, or - if it is