zsh/Test
Peter Stephenson 921b39ac6b 39949: Special case for "-" in directory names.
It can be sh-tokenized to Dash to allow for appearing in ranges
after substitution, so needs to be turned back to "-" in that case.
2016-11-15 18:01:32 +00:00
..
.cvsignore unposted: cvsignore VIM *.swp files 2003-05-05 06:14:49 +00:00
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
A01grammar.ztst 39625: case needs to reset lastval if no pattern matched 2016-10-13 10:49:02 +01:00
A02alias.ztst 38746: Fix suffix alias expansion recursion. 2016-06-22 13:10:22 +01:00
A03quoting.ztst users/21352: ensure $'' doesn't get elided. 2016-03-07 09:44:54 +00:00
A04redirect.ztst 36399: Shell code text with multiple here documents wasn't shown properly. 2015-09-02 14:20:44 +01:00
A05execution.ztst unposted: tests for 39839, 39844 2016-11-05 21:37:23 -07:00
A06assign.ztst 37257 (in part): Add array assignment tests. 2015-12-19 09:53:05 +00:00
A07control.ztst 34077: further tests for return status from "for" loops 2015-01-02 21:16:41 +00:00
B01cd.ztst 37205: update documentary comment 2015-11-23 11:27:22 -08:00
B02typeset.ztst "typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope 2016-10-24 07:14:39 -07:00
B03print.ztst 39389: when printf -v is used with an array use separate elements each time the format is reused 2016-11-05 00:27:47 +01:00
B04read.ztst 29731: fix read -AE, test that and read -Ae 2011-08-28 17:06:27 +00:00
B05eval.ztst 25409: fix eval's use of lastval 2008-08-06 19:51:04 +00:00
B06fc.ztst 33686: set PS1 before pattern-matching for it 2014-11-13 09:27:14 -08:00
B07emulate.ztst 34804: refine POSIX_ALIAS change to preserve old behavior of [[ ]] conditionals 2015-03-28 21:08:02 -07:00
B08shift.ztst 32246: option "shift -p" pops arguments from end of array 2014-01-11 19:31:29 +00:00
B09hash.ztst 39949: Special case for "-" in directory names. 2016-11-15 18:01:32 +00:00
C01arith.ztst 37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar 2016-01-03 18:57:10 +00:00
C02cond.ztst 39332: support ksh's [[ -v varname ]] condition for checking if variables are set 2016-09-16 00:00:28 +02:00
C03traps.ztst 39901: No EXIT trap on LHS of pipeline. 2016-11-10 10:37:27 +00:00
C04funcdef.ztst 39566: Improve usefulness of command_not_found_handler. 2016-10-05 12:14:43 +01:00
C05debug.ztst clean up test temporary files 2008-12-29 04:24:36 +00:00
comptest 37378: New bindkey tests. 2015-12-10 17:51:41 +00:00
D01prompt.ztst 39292: Distinguish "=" and "==" tests in output. 2016-09-13 09:42:24 +01:00
D02glob.ztst 39046 + 39061: New :P history modifier. 2016-08-22 03:34:30 +00:00
D03procsubst.ztst 35873: add original test for process substitution deadlock from 35847 2015-07-23 10:08:19 +01:00
D04parameter.ztst 39947: Additional test for array subscripts. 2016-11-15 16:01:32 +00:00
D05array.ztst 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 2007-06-18 13:25:03 +00:00
D06subscript.ztst 37128: work around alias expansion trashing subscript parsing 2015-11-17 17:44:12 +00:00
D07multibyte.ztst 39678: metafication of printf %q argument and result 2016-10-19 10:39:58 +01:00
D08cmdsubst.ztst 39777: $() is a valid empty command substitution 2016-10-30 17:12:04 +00:00
D09brace.ztst users/18298 (tidied up): add {<char>..<char>} expansion 2014-01-09 10:05:13 +00:00
E01options.ztst 37914: reparse associative array subscripts in "unset" so keys with "[" or "]" may be backslash-escaped 2016-02-08 20:52:11 -08:00
E02xtrace.ztst 39292: Distinguish "=" and "==" tests in output. 2016-09-13 09:42:24 +01:00
Makefile.in Paul Ackersviller: 26959: delay before removing test modules 2009-05-13 08:39:47 +00:00
README 17502: Test changes for xtrace in 17492. 2002-08-05 13:10:02 +00:00
runtests.zsh 24316: count skipped tests differently from successes and failures. 2007-12-25 01:40:16 +00:00
V01zmodload.ztst 39222: test math functions in modules. 2016-09-08 12:15:14 +01:00
V02zregexparse.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V03mathfunc.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V04features.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V05styles.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V06parameter.ztst clean up test temporary files 2008-12-29 04:24:36 +00:00
V07pcre.ztst Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing 2016-04-23 14:20:16 -07:00
V08zpty.ztst 34275: assume zpty can't be used for testing Cygwin 2015-01-14 14:25:18 +00:00
V09datetime.ztst 37344: restore old printable quoting, add ${(q+)...}. 2015-12-07 21:49:07 +00:00
V10private.ztst "typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope 2016-10-24 07:14:39 -07:00
W01history.ztst 34787: Add more history tests 2015-03-27 10:21:02 +00:00
X02zlevi.ztst 39824: test case for 39811 (commit ae4c035c) 2016-11-03 12:03:24 -07:00
X03zlebindkey.ztst 37460: make sure the default keymap is emacs before using that keymap to test bindings 2015-12-30 17:22:37 -08:00
Y01completion.ztst 39787: Add a regression test for 39412. 2016-11-01 05:48:55 +00:00
Y02compmatch.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Y03arguments.ztst 39622: add test cases for recent _arguments fixes, exclusion lists and -A/-S 2016-10-13 10:05:18 +02:00
ztst.zsh 38652: test harness: Emit unified diffs instead of context diffs 2016-06-25 16:32:27 +00:00

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
 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.

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.