You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zsh/Test
Bart Schaefer 76019f7174 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 3 weeks ago
..
.cvsignore
.distfiles
A01grammar.ztst
A02alias.ztst
A03quoting.ztst
A04redirect.ztst 52360: simplify and improve bad-descriptor detection in %prep section 5 months ago
A05execution.ztst 52515: (+ tests in 52527) avoid sh errors when running shebang-less scripts with paths starting with - or + 2 months ago
A06assign.ztst 52619 (plus tests): no empty element when appending array to unset scalar 2 months ago
A07control.ztst
B01cd.ztst
B02typeset.ztst 52752: typeset -p fixes for local exports and "export -x" / "readonly -r" output. 1 month ago
B03print.ztst 52385: avoid "tr" in test output formatting 3 months ago
B04read.ztst
B05eval.ztst
B06fc.ztst
B07emulate.ztst
B08shift.ztst
B09hash.ztst
B10getopts.ztst
B11kill.ztst
B12limit.ztst
B13whence.ztst
C01arith.ztst
C02cond.ztst 51692: not skip tests for [[ -r/-N file ]] on Cygwin 12 months ago
C03traps.ztst
C04funcdef.ztst
C05debug.ztst
D01prompt.ztst
D02glob.ztst 52008: Pattern bug with branches + exclusion 9 months ago
D03procsubst.ztst
D04parameter.ztst Add missing test case from 52652 2 months ago
D05array.ztst
D06subscript.ztst
D07multibyte.ztst
D08cmdsubst.ztst
D09brace.ztst
D10nofork.ztst 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 3 weeks ago
E01options.ztst users/29160, workers/52156: Fix repetition of substitution modifier. 7 months ago
E02xtrace.ztst
E03posix.ztst
K01nameref.ztst 52692: local typeset of the name of a named reference hides the reference 2 months ago
K02parameter.ztst 51887: namespaces recognized in math, incorrect usages rejected. 10 months ago
Makefile.in
P01privileged.ztst
README
V01zmodload.ztst
V02zregexparse.ztst
V03mathfunc.ztst
V04features.ztst
V05styles.ztst
V06parameter.ztst
V07pcre.ztst 52405, 52502: add empty elements to $match for optional captures that don't match 3 months ago
V08zpty.ztst
V09datetime.ztst
V10private.ztst 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 3 weeks ago
V11db_gdbm.ztst
V12zparseopts.ztst
V13zformat.ztst
V14system.ztst
W01history.ztst
W02jobs.ztst
W03jobparameters.ztst
X02zlevi.ztst
X03zlebindkey.ztst
X04zlehighlight.ztst
X05zleincarg.ztst 52641: incarg: add a backward variant and make it repeatable 2 months ago
Y01completion.ztst 51860: simplify suffix handling in _prefix to remove less accurate hack 10 months ago
Y02compmatch.ztst
Y03arguments.ztst
Z01is-at-least.ztst
Z02zmathfunc.ztst
Z03run-help.ztst
comptest 51860: simplify suffix handling in _prefix to remove less accurate hack 10 months ago
list-XFails
runtests.zsh 52635: show file name when test has crashed 2 months ago
ztst.zsh 52393: fix tests on Solaris by omitting -a option to diff as it is not supported there 4 months ago

README

There are now different sections, expressed by the first letter in the
scripts names:

 A: basic command parsing and execution
 B: builtins
 C: shell commands with special syntax
 D: substititution
 E: options
 K: features adopted from ksh
 P: privileged (needs super-user privileges)
 V: modules
 W: builtin interactive commands and constructs
 X: line editing
 Y: completion
 Z: separate systems and user contributions

You will need to run these by using `make test' in the Test subdirectory of
the build area for your system (which may or may not be the same as the
Test subdirectory of the source tree), or the directory above.  You can get
more information about the tests being performed with
  ZTST_verbose=1 make check
(`test' is equivalent to `check') or change 1 to 2 for even more detail.

A test file is usually aborted on the first error.  To continue to the
end, run with
  ZTST_continue=1 make check
This can usefully be combined with ZTST_verbose.  The test is always
aborted on a syntax error as in that case it is not obvoius how to
continue.

Individual or groups of tests can be performed with
  make TESTNUM=C02 check
or
  make TESTNUM=C check
to perform just the test beginning C02, or all tests beginning C,
respectively.

Instructions on how to write tests are given in B01cd.ztst, which acts as a
model.