about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-07-10 19:49:32 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-07-10 19:50:18 +0100
commit08f084ecdeaeb19e595441e3e0203be4562bd285 (patch)
treeacf95272ebd86aac7e013e96a303c11736d5b0b5 /Test
parent653761fe28b62b999621e5f22ff453121ddc287e (diff)
downloadzsh-08f084ecdeaeb19e595441e3e0203be4562bd285.tar.gz
zsh-08f084ecdeaeb19e595441e3e0203be4562bd285.tar.xz
zsh-08f084ecdeaeb19e595441e3e0203be4562bd285.zip
unposted: notes on ZTST_unimplemented and ZTST_skip.
Diffstat (limited to 'Test')
-rw-r--r--Test/B01cd.ztst14
1 files changed, 13 insertions, 1 deletions
diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst
index c7920dd05..a24eaf730 100644
--- a/Test/B01cd.ztst
+++ b/Test/B01cd.ztst
@@ -70,7 +70,7 @@
 # the expected status returned by the code when run, or - if it is
 # irrelevant.  An optional set of single-letter flags follows the status
 # or -.  The following are understood:
-#   d   Don't diff stdout against the expected stdout.
+#  . d   Don't diff stdout against the expected stdout.
 #   D   Don't diff stderr against the expected stderr.
 #   q   All redirection lines given in the test script (not the lines
 #       actually produced by the test) are subject to ordinary quoted shell
@@ -93,6 +93,18 @@
 # ones which may arise from the environment rather than from the shell
 # itself.  (The example below isn't particularly useful as errors with
 # `cd' are unusual.)
+#
+# A couple of features aren't used in this file, but are usefuil in cases
+# where features may not be available so should not be tested.  They boh
+# take the form of variables.  Note that to keep the test framework simple
+# there is no magic in setting the variables: the chunk of code being
+# executed needs to avoid executing any test code by appropriate structure
+# (typically "if").  In both cases, the value of the variable is output
+# as a warning that the test was skipped.
+# ZTST_unimplemented: Set this in the %prep phase if the entire test file
+#   is to be skipped.
+# ZTST_skip: Set this in any test case if that single test case is to be
+#   skipped.  Testing resumes ath the next test case in the same file.
  cd cdtst.tmp/sub/fake &&
  pwd &&
  print $PWD