1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-11 16:51:26 +02:00
zsh/Test
dana 8720885648 53662: tests: add extra namespace tests
relates to workers/53660
2025-05-24 09:07:55 -05:00
..
.cvsignore
.distfiles
A01grammar.ztst 53088: enable `time' on builtins, assignments, and current-shell actions 2024-09-14 12:40:56 -07: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 53529: A04redirect fix. 2025-05-01 09:16:45 +01:00
A05execution.ztst 52515: (+ tests in 52527) avoid sh errors when running shebang-less scripts with paths starting with - or + 2024-02-18 18:22:37 +00:00
A06assign.ztst unposted: fix parsing of Bang token in value side of array element assignment 2024-08-15 18:06:19 -07:00
A07control.ztst
A08time.ztst 53297: Test/A08time: allow %nU/%nS result to be 0 2025-01-02 17:13:04 -06:00
B01cd.ztst 53515: tests: correct ztst documentation error 2025-04-27 07:47:53 -05:00
B02typeset.ztst 52752: typeset -p fixes for local exports and "export -x" / "readonly -r" output. 2024-03-14 13:11:31 -07:00
B03print.ztst 52385: avoid "tr" in test output formatting 2024-01-25 21:58:25 -08:00
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 53626: tests: make whence -s test use grep -c instead of wc -l 2025-05-16 12:11:50 -05:00
C01arith.ztst
C02cond.ztst 51692: not skip tests for [[ -r/-N file ]] on Cygwin 2023-05-08 12:53:37 +09:00
C03traps.ztst 52977: ERR_EXIT/ERR_RETURN are respected by the final command in && / || lists 2024-06-28 21:05:42 -07:00
C04funcdef.ztst
C05debug.ztst
comptest 51860: simplify suffix handling in _prefix to remove less accurate hack 2023-06-22 13:13:09 -07:00
D01prompt.ztst 53257: use monotonic clock where appropriate 2024-12-26 10:09:25 -06:00
D02glob.ztst 52008: Pattern bug with branches + exclusion 2023-08-01 14:32:55 +01:00
D03procsubst.ztst
D04parameter.ztst 53257: use monotonic clock where appropriate 2024-12-26 10:09:25 -06: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
D09brace.ztst
D10nofork.ztst 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 2024-04-01 22:35:33 -07:00
E01options.ztst users/30257: Add a test for an ERR_RETURN bug fixed in workers/51076. 2025-05-14 16:34:19 +00:00
E02xtrace.ztst
E03posix.ztst
K01nameref.ztst 53602: "typeset -nu" always refers to at a call level above the declaration 2025-05-12 21:29:16 -07:00
K02parameter.ztst 53662: tests: add extra namespace tests 2025-05-24 09:07:55 -05:00
list-XFails
Makefile.in
P01privileged.ztst
README 51374: Expose named references in $parameters, fix substitution error. 2023-02-12 11:29:10 -08:00
runtests.zsh 52635: show file name when test has crashed 2024-03-02 20:26:01 -08:00
V01zmodload.ztst
V02zregexparse.ztst
V03mathfunc.ztst
V04features.ztst
V05styles.ztst
V06parameter.ztst
V07pcre.ztst 52405, 52502: add empty elements to $match for optional captures that don't match 2024-01-26 07:33:38 +01:00
V08zpty.ztst
V09datetime.ztst
V10private.ztst 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 2024-04-01 22:35:33 -07:00
V11db_gdbm.ztst
V12zparseopts.ztst 53483: zparseopts -G: accept only '--' as parsing terminator 2025-04-19 18:48:31 -05:00
V13zformat.ztst
V14system.ztst 53588: zsystem flock: handle optargs in the same word 2025-05-13 22:14:09 -05:00
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
X05zleincarg.ztst 53087: don't produce spurious error when zpty is missing 2024-09-14 19:43:26 +02:00
Y01completion.ztst 53244: rename user in test case to reduce likelihood of failure due to user existing 2024-11-23 22:29:19 +01:00
Y02compmatch.ztst
Y03arguments.ztst
Z01is-at-least.ztst
Z02zmathfunc.ztst
Z03run-help.ztst
ztst.zsh 52393: fix tests on Solaris by omitting -a option to diff as it is not supported there 2023-12-13 11:40:03 +01: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
 K: features adopted from ksh
 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.