1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-24 21:11:03 +02:00
zsh/Test
Peter Stephenson e01223a26c 45373: Fix ERR_EXIT bug in else branch of if.
The flags need resetting for this branch otherwise e.g. command
substitution with non-zero status doesn't cause exit.
2020-02-02 18:05:47 +00:00
..
.cvsignore
.distfiles
A01grammar.ztst 45305: Add an XFail test: The exec-last-command optimization is applied to try/always. 2020-01-16 18:21:11 +00:00
A02alias.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
A03quoting.ztst
A04redirect.ztst 44446: Fix here document with file descriptor declarator. 2019-06-24 20:19:19 +01:00
A05execution.ztst 43945 (tweaked to remove test failure, noted in test): 2018-12-30 18:11:43 +00:00
A06assign.ztst
A07control.ztst
B01cd.ztst 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
B02typeset.ztst 44296: "typeset Q= {X}" crashed the shell. 2019-05-14 12:10:10 +01:00
B03print.ztst
B04read.ztst
B05eval.ztst
B06fc.ztst
B07emulate.ztst
B08shift.ztst
B09hash.ztst
B10getopts.ztst 44469: correct error on missing option argument 2019-07-01 09:42:22 +01:00
C01arith.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
C02cond.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
C03traps.ztst 45373: Fix ERR_EXIT bug in else branch of if. 2020-02-02 18:05:47 +00:00
C04funcdef.ztst Copy functions using functions -c old new. 2019-08-03 19:53:51 +01:00
C05debug.ztst
comptest
D01prompt.ztst 44030: prompt: Return error for unrecognised colour name 2019-02-03 11:55:40 -06:00
D02glob.ztst 45296: D02glob: Clean up after test from users/24633 2020-01-13 17:43:51 -06:00
D03procsubst.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
D04parameter.ztst 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
D05array.ztst
D06subscript.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
D07multibyte.ztst
D08cmdsubst.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
D09brace.ztst
E01options.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
E02xtrace.ztst
list-XFails 45290: New helper script for listing XFail tests. 2020-01-13 22:48:55 +00:00
Makefile.in 44523: Add ZTST_handler capability. 2019-07-16 10:57:35 +01:00
README
runtests.zsh
V01zmodload.ztst
V02zregexparse.ztst
V03mathfunc.ztst 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
V04features.ztst
V05styles.ztst unposted: zstyle: Add a unit test and some comments. 2019-12-01 04:00:17 +00:00
V06parameter.ztst
V07pcre.ztst 43493: Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason. 2018-09-24 14:15:18 +00:00
V08zpty.ztst
V09datetime.ztst 43953: Fix rounding/truncation error in %. time-format specifier 2018-12-29 05:24:25 -06:00
V10private.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
V11db_gdbm.ztst
V12zparseopts.ztst 44100: zparseopts: Add -F option, completion, tests; improve documentation 2019-03-12 19:03:56 -05:00
W01history.ztst unposted: Add smoke test for :P history modifier. 2019-11-19 17:57:13 +00:00
W02jobs.ztst 43426: disable job control tests involving suspension. 2018-09-10 13:48:41 +01:00
X02zlevi.ztst
X03zlebindkey.ztst
X04zlehighlight.ztst unposted: internal: Remove Vim modeline that interferes with ztst.vim. 2020-01-07 19:37:41 +00:00
Y01completion.ztst users/24582 + users/24583: Add regression tests for the previous commit. 2019-12-31 18:43:26 +00:00
Y02compmatch.ztst
Y03arguments.ztst
ztst.zsh 45169/0001: In the test suite, allow test cases to be marked as expected to fail. 2020-01-01 13:55:39 +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.