You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zsh/Test
Bart Schaefer 23dab58b8e Fix problems with tests for 50126 and 50150. 2 years ago
..
.cvsignore unposted: cvsignore VIM *.swp files 21 years ago
.distfiles 33047: use git to simplify massively source distribution file selection 10 years ago
A01grammar.ztst 49792: Non-interative shell input is line buffered. 2 years ago
A02alias.ztst 45004: Fix typos in comments 5 years ago
A03quoting.ztst 41485: test for previous fix 7 years ago
A04redirect.ztst 49813: Add missing test 2 years ago
A05execution.ztst unposted: Fix typos 3 years ago
A06assign.ztst 42101 (tweaked): assigning shell status to array was broken 6 years ago
A07control.ztst 34077: further tests for return status from "for" loops 10 years ago
B01cd.ztst 46168: Update $PWD and call chpwd hook after normalizing path 4 years ago
B02typeset.ztst 47704: POSIX export and readonly ignore "-p" when parameter names also appear 3 years ago
B03print.ztst 48202 + 48366: Fix handling of NUL bytes in zexpandtabs multibyte version 3 years ago
B04read.ztst 29731: fix read -AE, test that and read -Ae 13 years ago
B05eval.ztst 25409: fix eval's use of lastval 16 years ago
B06fc.ztst 33686: set PS1 before pattern-matching for it 10 years ago
B07emulate.ztst 47794: exec: run final pipeline command in a subshell in sh mode 3 years ago
B08shift.ztst 32246: option "shift -p" pops arguments from end of array 11 years ago
B09hash.ztst 39949: Special case for "-" in directory names. 8 years ago
B10getopts.ztst 48614: getopts: Calculate OPTIND according to POSIX_BUILTINS 3 years ago
B11kill.ztst 45463: test: kill: Document why we use SIGURG 4 years ago
B12limit.ztst github #82: Fix typos 3 years ago
B13whence.ztst 45640: Fix new test when ${PWD}'s value contains symlinks. 4 years ago
C01arith.ztst 46079: Ignore double quotes in math expressions. 4 years ago
C02cond.ztst 49269: Fix "[ ! -o ]". 3 years ago
C03traps.ztst unposted (see 50072): check exit status in exit-from-trap test 2 years ago
C04funcdef.ztst unposted: Fix typos 3 years ago
C05debug.ztst clean up test temporary files 16 years ago
D01prompt.ztst 49628: Add an xfail test for RPS1/RPROMPT equivalence. 3 years ago
D02glob.ztst 50043: avoid spurious test failures when "make check" as root 2 years ago
D03procsubst.ztst 50160: Regression tests for 50126, 50136, and 50149 2 years ago
D04parameter.ztst 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash 2 years ago
D05array.ztst 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 17 years ago
D06subscript.ztst 48560: add TYPESET_TO_UNSET option to remove initialization of parameters 3 years ago
D07multibyte.ztst Fix problems with tests for 50126 and 50150. 2 years ago
D08cmdsubst.ztst 45004: Fix typos in comments 5 years ago
D09brace.ztst 41420: "{.." wasn't check for brace expansion properly 7 years ago
E01options.ztst Fix problems with tests for 50126 and 50150. 2 years ago
E02xtrace.ztst 48594 (plus an "F:" line corresponding to the question there): New tests for functions -t / functions -T 3 years ago
E03posix.ztst 50043: avoid spurious test failures when "make check" as root 2 years ago
Makefile.in 44523: Add ZTST_handler capability. 5 years ago
P01privileged.ztst 50013: skip %test if a chunk in %prep fails 2 years ago
README 49996 (Peter) + 50012: add ZTST_continue 2 years ago
V01zmodload.ztst 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully. 4 years ago
V02zregexparse.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 9 years ago
V03mathfunc.ztst 43275: Add log2 to match func 6 years ago
V04features.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 9 years ago
V05styles.ztst 48432 and enable test: fix quotiing of zstyle -L for zstyle -e 3 years ago
V06parameter.ztst Revert 40626 which broke tests. 7 years ago
V07pcre.ztst unposted: Fix syntax error introduced in 45591. 4 years ago
V08zpty.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
V09datetime.ztst 47494, 47495: Add -n option to strftime 4 years ago
V10private.ztst 49456: clean up detection of private params in nested scopes, update doc 3 years ago
V11db_gdbm.ztst Improve comment at top of GDBM test 7 years ago
V12zparseopts.ztst 47905: Add leading '-' to zparseopts option parsing errors 3 years ago
V13zformat.ztst 49561: add zformat -F option, similar to -f but ternary expressions check for existence instead of doing math evaluation 3 years ago
V14system.ztst 50159: Tests for sysread, including 50101 regression 2 years ago
W01history.ztst 49601: don't create ambiguous history file entries for lines ending with a backslash 3 years ago
W02jobs.ztst 49787: test for jobs fix in 49783 2 years ago
W03jobparameters.ztst 49906 (Bart), 49911: Fixes to querying jobs in subshell. 2 years ago
X02zlevi.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
X03zlebindkey.ztst 50089: unset LC_* for multibyte tests in X03zlebindkey 2 years ago
X04zlehighlight.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
Y01completion.ztst 49572: Let _expand preserve array form w/out zstyle glob 3 years ago
Y02compmatch.ztst unposted (c.f. Bart: 49531): fix completion test where a typo marked it as expected to fail 3 years ago
Y03arguments.ztst 49518: fix exclusions for mixed - and + stacked options 2 years ago
Z01is-at-least.ztst 47314: is-at-least false positive (5.8.0.2 / 5.8) 4 years ago
Z02zmathfunc.ztst 48606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and catch errors. 3 years ago
Z03run-help.ztst 49386: handle separate source/build trees 3 years ago
comptest 48413: Fix _expand completion test 3 years ago
list-XFails 45290: New helper script for listing XFail tests. 4 years ago
runtests.zsh 48560: add TYPESET_TO_UNSET option to remove initialization of parameters 3 years ago
ztst.zsh 50046: ztst.zsh: export LANG to child zsh 2 years ago

README

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.