1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00
zsh/Test
Wayne Davison 5aa648a5f2 Third time's a charm: a better fix than using either a subshell or
"setopt localoptions" is to use a function for the final test (since
it destroys all the variables in the environment).  This allows us to
directly test that the environment was properly restored after the
function call, and ensures that the caller (ZTST_execchunk, which
directly exec'ed the test code) still has all the vars that it expects
in the environment (such as ZTST_verbose, options, and ZTST_mainopts).
2005-08-11 16:25:10 +00:00
..
.cvsignore
.distfiles 20126: tidy up before 4.2.1 2004-07-02 15:59:07 +00:00
A01grammar.ztst 21131: exit with status 127 when script not found 2005-04-11 10:23:55 +00:00
A02alias.ztst
A03quoting.ztst
A04redirect.ztst Update test for change in error message. 2005-04-16 23:24:54 +00:00
A05execution.ztst 20221: $LINENO in trap '...' DEBUG was wrong. 2004-07-29 15:09:51 +00:00
A06assign.ztst Test -nt and FOO=BAR BAR=FOO echo bugs 2005-02-02 17:03:50 +00:00
B01cd.ztst
B02typeset.ztst Third time's a charm: a better fix than using either a subshell or 2005-08-11 16:25:10 +00:00
B03print.ztst Test both %b and %s in the empty-arg test. 2005-08-09 00:32:58 +00:00
B04read.ztst Test for fix of read with trailing metacharacters 2005-04-25 10:41:25 +00:00
C01arith.ztst 20599: test for $((##)) should now check for error 2004-11-30 14:14:51 +00:00
C02cond.ztst Test -nt and FOO=BAR BAR=FOO echo bugs 2005-02-02 17:03:50 +00:00
C03traps.ztst 21580: Thorsten's patch to make sure that no pre-existing traps 2005-08-09 07:53:49 +00:00
C04funcdef.ztst
comptest
D01prompt.ztst
D02glob.ztst 21317: fix bug where recursive glob within e qualifier would hang the shell 2005-06-21 08:58:43 +00:00
D03procsubst.ztst Belated commit of 21064: test case for 21049 2005-04-14 04:41:25 +00:00
D04parameter.ztst 21194: fix handling of zero-length quoted test strings for patterns 2005-04-26 09:51:27 +00:00
D05array.ztst 19707: negative index into arrays should return scalar and not one element array 2004-03-30 16:35:30 +00:00
D06subscript.ztst
E01options.ztst 21576: test for 21575 2005-08-08 17:19:57 +00:00
E02xtrace.ztst
Makefile.in 20198: fix TRAPEXIT. 2004-07-26 13:18:07 +00:00
README
V01zmodload.ztst 20959: fix crash unloading zsh/parameter and test the fix 2005-03-10 17:55:37 +00:00
V02zregexparse.ztst
V03mathfunc.ztst 20606: simple verification of pseudorandom numbers 2004-12-07 12:07:54 +00:00
Y01completion.ztst
Y02compmatch.ztst
Y03arguments.ztst
ztst.zsh Got rid of trap call for now. 2005-08-09 06:51:40 +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.