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
Peter Stephenson cd1b5d86e0 users/17046: don't count too many elements when splitting quoted parameter
substitution on null parameter
12 years ago
..
.cvsignore unposted: cvsignore VIM *.swp files 21 years ago
.distfiles unposted: 4.3.16 12 years ago
A01grammar.ztst 29025: Test/A01grammar.ztst: in select test, assert LINES=3 to print list 13 years ago
A02alias.ztst unposted: change new test in A02alias.ztst to use cat 14 years ago
A03quoting.ztst 28424: new POSIX_STRINGS option 14 years ago
A04redirect.ztst 29928: belated commit to fix OpenBSD redirection test 13 years ago
A05execution.ztst 28475: test that starting background job resets status 14 years ago
A06assign.ztst users/15662: array slice assignment with one index positive and one negative. 14 years ago
A07control.ztst 25568: Frank Terbeck & pws: invalid continue and break arguments 16 years ago
B01cd.ztst unposted: fix documentation for "*" test output syntax 13 years ago
B02typeset.ztst "typeset -g <var>" should be silent even without TYPESET_SILENT 16 years ago
B03print.ztst 28578: fix handling of numeric escapes that expand to "%" in printf 14 years ago
B04read.ztst 29731: fix read -AE, test that and read -Ae 13 years ago
B05eval.ztst 25409: fix eval's use of lastval 16 years ago
B06fc.ztst test needs -f flag to zsh 16 years ago
B07emulate.ztst 26546, 26556: sticky emulation for functions defined in emulate ... -c ... 15 years ago
C01arith.ztst 27611: cache parameter values in math eval so subscripts are eval'd once 15 years ago
C02cond.ztst 30270: don't need errors when testing to see if mtime test will work 12 years ago
C03traps.ztst 28253: document -h argument to atribute commands 14 years ago
C04funcdef.ztst 29633: more care with anonymous and other functions 13 years ago
C05debug.ztst clean up test temporary files 16 years ago
D01prompt.ztst 25931: Test for prompt code reentrancy 16 years ago
D02glob.ztst 27723: eval shouldn't modify non-zero return statuses 14 years ago
D03procsubst.ztst 29703: crash when failing to parse process substitutions 13 years ago
D04parameter.ztst users/17046: don't count too many elements when splitting quoted parameter 12 years ago
D05array.ztst 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 17 years ago
D06subscript.ztst 25364: fix k flag in hash subscript 16 years ago
D07multibyte.ztst 28339: backslash-newline history without HIST_LEX_WORDS 14 years ago
D08cmdsubst.ztst 29776: fix case of double quotes in double-quote-style 13 years ago
D09brace.ztst 28474, 28478: extended {START..END..STEP} syntax 14 years ago
E01options.ztst 29955++: IGNORE_CLOSE_BRACES option 13 years ago
E02xtrace.ztst 29367: update tests redirection of stderr. 13 years ago
Makefile.in Paul Ackersviller: 26959: delay before removing test modules 15 years ago
README 17502: Test changes for xtrace in 17492. 22 years ago
V01zmodload.ztst 29410: skip autoload persistence test when zsh/example is not available. 13 years ago
V02zregexparse.ztst moved from ./Test/52zregexparse.ztst 23 years ago
V03mathfunc.ztst 20606: simple verification of pseudorandom numbers 20 years ago
V04features.ztst fix tests using zsh/datetime that I broke 13 years ago
V05styles.ztst 23537: make style list a hash table 17 years ago
V06parameter.ztst clean up test temporary files 16 years ago
V07pcre.ztst 29867: pcre/ZTST_unimplemented change from Bart 13 years ago
Y01completion.ztst 19603: Gracefully omit Y tests if zpty is not available 20 years ago
Y02compmatch.ztst Test for matcher fix in 24127 17 years ago
Y03arguments.ztst 19603: Gracefully omit Y tests if zpty is not available 20 years ago
comptest 26301: make zpty -r exit more cleanly on bad reads 16 years ago
runtests.zsh 24316: count skipped tests differently from successes and failures. 17 years ago
ztst.zsh 29924: add ability to match test output using patterns 13 years 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
 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.