1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-22 22:58:03 +02:00
zsh/Test
Oliver Kiddle 6502d05897 51320, 51383: fixes to prevent later reappearance of old attributes
Also associated test updates and a test fix for TERM=dumb.
2023-02-09 00:10:19 +01:00
..
.cvsignore
.distfiles
A01grammar.ztst 51134: ! return doesn't change the return status 2022-12-12 10:30:13 +00:00
A02alias.ztst 51307: Improve error on attempt to define function from aliased name 2023-02-02 10:09:21 +00:00
A03quoting.ztst
A04redirect.ztst
A05execution.ztst
A06assign.ztst
A07control.ztst
B01cd.ztst
B02typeset.ztst
B03print.ztst
B04read.ztst 51214: handle read -d and a delimiter that can't be decoded into a character 2022-12-17 00:37:19 +01:00
B05eval.ztst
B06fc.ztst
B07emulate.ztst
B08shift.ztst
B09hash.ztst
B10getopts.ztst
B11kill.ztst
B12limit.ztst
B13whence.ztst
C01arith.ztst unposted (cf. 51016): Add a test case for underscore-followed-by-digits in math context. 2022-11-23 14:22:02 +00:00
C02cond.ztst
C03traps.ztst 51076: fix ERR_EXIT when used with "eval" or "source"; documentary comments 2022-12-03 21:14:26 -08:00
C04funcdef.ztst
C05debug.ztst
comptest
D01prompt.ztst 51320, 51383: fixes to prevent later reappearance of old attributes 2023-02-09 00:10:19 +01:00
D02glob.ztst
D03procsubst.ztst
D04parameter.ztst 51350: ${(S)...//#%...} didn't match the whole string 2023-02-06 14:16:17 +00:00
D05array.ztst
D06subscript.ztst 51278: make (i) subscript flag for zero-length string consistent 2023-01-16 11:10:02 +00:00
D07multibyte.ztst 51214: handle read -d and a delimiter that can't be decoded into a character 2022-12-17 00:37:19 +01:00
D08cmdsubst.ztst users/28338: command substitution with alias edge case. 2022-11-08 14:12:01 +00:00
D09brace.ztst 50668: treat 8bit chars correctly when multibyte is unset 2022-09-27 15:20:24 +09:00
E01options.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
E02xtrace.ztst
E03posix.ztst
list-XFails
Makefile.in
P01privileged.ztst
README
runtests.zsh
V01zmodload.ztst
V02zregexparse.ztst
V03mathfunc.ztst
V04features.ztst
V05styles.ztst
V06parameter.ztst
V07pcre.ztst 50658 + test: Enable to switch between C/UTF-8 locales in PCRE 2022-09-26 10:52:50 +09:00
V08zpty.ztst
V09datetime.ztst
V10private.ztst
V11db_gdbm.ztst
V12zparseopts.ztst
V13zformat.ztst
V14system.ztst
W01history.ztst
W02jobs.ztst
W03jobparameters.ztst
X02zlevi.ztst 51215: consume whole CSI sequences from the input 2022-12-16 23:23:53 +01:00
X03zlebindkey.ztst 51215: consume whole CSI sequences from the input 2022-12-16 23:23:53 +01:00
X04zlehighlight.ztst 51320, 51383: fixes to prevent later reappearance of old attributes 2023-02-09 00:10:19 +01:00
Y01completion.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Y02compmatch.ztst
Y03arguments.ztst
Z01is-at-least.ztst
Z02zmathfunc.ztst
Z03run-help.ztst
ztst.zsh 50662: unset LC_* for all the tests 2022-09-26 11:09:22 +09: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
 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.