1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00
zsh/Test
2022-11-23 14:22:02 +00:00
..
.cvsignore
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
A01grammar.ztst 49792: Non-interative shell input is line buffered. 2022-03-03 19:19:35 +00:00
A02alias.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
A03quoting.ztst 41485: test for previous fix 2017-08-03 21:50:18 +01:00
A04redirect.ztst 49813: Add missing test 2022-03-30 10:01:03 +02:00
A05execution.ztst 50342: fix test added by 50306 2022-06-09 15:08:39 +09:00
A06assign.ztst 42101 (tweaked): assigning shell status to array was broken 2018-05-11 09:29:14 +01:00
A07control.ztst 34077: further tests for return status from "for" loops 2015-01-02 21:16:41 +00:00
B01cd.ztst 46168: Update $PWD and call chpwd hook after normalizing path 2020-07-03 21:17:58 -05:00
B02typeset.ztst 47704: POSIX export and readonly ignore "-p" when parameter names also appear 2021-04-18 14:26:12 -07:00
B03print.ztst 48202 + 48366: Fix handling of NUL bytes in zexpandtabs multibyte version 2021-04-01 09:50:52 +02:00
B04read.ztst 29731: fix read -AE, test that and read -Ae 2011-08-28 17:06:27 +00:00
B05eval.ztst
B06fc.ztst 33686: set PS1 before pattern-matching for it 2014-11-13 09:27:14 -08:00
B07emulate.ztst 47794: exec: run final pipeline command in a subshell in sh mode 2021-04-10 17:56:39 -05:00
B08shift.ztst 32246: option "shift -p" pops arguments from end of array 2014-01-11 19:31:29 +00:00
B09hash.ztst 39949: Special case for "-" in directory names. 2016-11-15 18:01:32 +00:00
B10getopts.ztst 48614: getopts: Calculate OPTIND according to POSIX_BUILTINS 2021-05-03 18:11:38 -05:00
B11kill.ztst 45463: test: kill: Document why we use SIGURG 2020-02-18 19:35:18 +00:00
B12limit.ztst github #82: Fix typos 2021-11-12 23:54:34 +01:00
B13whence.ztst 45640: Fix new test when ${PWD}'s value contains symlinks. 2020-03-28 00:46:51 +00:00
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 49269: Fix "[ ! -o ]". 2021-08-10 09:19:32 +01:00
C03traps.ztst 50928: fix tests for 50897, mention behavior change in NEWS 2022-11-09 21:37:56 -08:00
C04funcdef.ztst Tweaks to MULTI_FUNC_DEF 2022-06-07 10:02:14 +01:00
C05debug.ztst
comptest 48413: Fix _expand completion test 2021-04-06 13:59:43 +02:00
D01prompt.ztst 49628: Add an xfail test for RPS1/RPROMPT equivalence. 2021-12-01 06:32:54 +00:00
D02glob.ztst 50043: avoid spurious test failures when "make check" as root 2022-04-11 15:45:42 -07:00
D03procsubst.ztst 50160: Regression tests for 50126, 50136, and 50149 2022-05-01 12:17:33 -07:00
D04parameter.ztst 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash 2022-03-29 11:09:36 +09:00
D05array.ztst
D06subscript.ztst 48560: add TYPESET_TO_UNSET option to remove initialization of parameters 2021-04-18 13:58:09 -07:00
D07multibyte.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09: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 48594 (plus an "F:" line corresponding to the question there): New tests for functions -t / functions -T 2021-05-18 01:57:06 +00:00
E03posix.ztst 50043: avoid spurious test failures when "make check" as root 2022-04-11 15:45:42 -07:00
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
P01privileged.ztst 50013: skip %test if a chunk in %prep fails 2022-04-12 16:56:18 +09:00
README 49996 (Peter) + 50012: add ZTST_continue 2022-04-12 16:30:40 +09:00
runtests.zsh 48560: add TYPESET_TO_UNSET option to remove initialization of parameters 2021-04-18 13:58:09 -07:00
V01zmodload.ztst 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully. 2020-03-27 01:14:42 +00:00
V02zregexparse.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V03mathfunc.ztst 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
V04features.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V05styles.ztst 48432 and enable test: fix quotiing of zstyle -L for zstyle -e 2021-04-09 21:01:37 +01:00
V06parameter.ztst Revert 40626 which broke tests. 2017-02-26 06:11:19 +00:00
V07pcre.ztst 50658 + test: Enable to switch between C/UTF-8 locales in PCRE 2022-09-26 10:52:50 +09:00
V08zpty.ztst 47849: do not skip tests requiring zpty on Cygwin 2021-01-20 13:49:42 +09:00
V09datetime.ztst 47494, 47495: Add -n option to strftime 2020-10-25 23:06:02 +01:00
V10private.ztst 49456: clean up detection of private params in nested scopes, update doc 2021-10-04 09:02:27 -07:00
V11db_gdbm.ztst Improve comment at top of GDBM test 2017-03-21 09:57:00 +00:00
V12zparseopts.ztst 47905: Add leading '-' to zparseopts option parsing errors 2021-02-13 00:54:59 +01:00
V13zformat.ztst 49561: add zformat -F option, similar to -f but ternary expressions check for existence instead of doing math evaluation 2021-11-12 20:33:52 +01:00
V14system.ztst 50159: Tests for sysread, including 50101 regression 2022-05-01 11:56:28 -07:00
W01history.ztst 49601: don't create ambiguous history file entries for lines ending with a backslash 2021-11-28 20:49:30 +01:00
W02jobs.ztst 49787: test for jobs fix in 49783 2022-03-03 19:07:53 +00:00
W03jobparameters.ztst 49906 (Bart), 49911: Fixes to querying jobs in subshell. 2022-03-30 09:28:43 +01:00
X02zlevi.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
X03zlebindkey.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
X04zlehighlight.ztst 47849: do not skip tests requiring zpty on Cygwin 2021-01-20 13:49:42 +09:00
Y01completion.ztst 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Y02compmatch.ztst unposted (c.f. Bart: 49531): fix completion test where a typo marked it as expected to fail 2021-10-30 23:21:35 +02:00
Y03arguments.ztst 49518: fix exclusions for mixed - and + stacked options 2021-12-14 12:30:55 +01:00
Z01is-at-least.ztst 47314: is-at-least false positive (5.8.0.2 / 5.8) 2020-08-16 14:24:29 +00:00
Z02zmathfunc.ztst 48606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and catch errors. 2021-04-21 22:05:00 +00:00
Z03run-help.ztst 49386: handle separate source/build trees 2021-09-08 15:47:43 -07:00
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.