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
Jun-ichi Takimoto 4fc5dc0292 50629: do not use egrep in tests 2 years ago
..
.cvsignore
.distfiles
A01grammar.ztst 49792: Non-interative shell input is line buffered. 2 years ago
A02alias.ztst
A03quoting.ztst
A04redirect.ztst 49813: Add missing test 2 years ago
A05execution.ztst 50342: fix test added by 50306 2 years ago
A06assign.ztst
A07control.ztst
B01cd.ztst
B02typeset.ztst
B03print.ztst
B04read.ztst
B05eval.ztst
B06fc.ztst
B07emulate.ztst
B08shift.ztst
B09hash.ztst
B10getopts.ztst
B11kill.ztst
B12limit.ztst github #82: Fix typos 3 years ago
B13whence.ztst
C01arith.ztst
C02cond.ztst
C03traps.ztst unposted (see 50072): check exit status in exit-from-trap test 2 years ago
C04funcdef.ztst Tweaks to MULTI_FUNC_DEF 2 years ago
C05debug.ztst
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
D06subscript.ztst
D07multibyte.ztst 50629: do not use egrep in tests 2 years ago
D08cmdsubst.ztst
D09brace.ztst
E01options.ztst 50629: do not use egrep in tests 2 years ago
E02xtrace.ztst
E03posix.ztst 50043: avoid spurious test failures when "make check" as root 2 years ago
Makefile.in
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
V02zregexparse.ztst
V03mathfunc.ztst
V04features.ztst
V05styles.ztst
V06parameter.ztst
V07pcre.ztst 50629: do not use egrep in tests 2 years ago
V08zpty.ztst
V09datetime.ztst
V10private.ztst 49456: clean up detection of private params in nested scopes, update doc 3 years ago
V11db_gdbm.ztst
V12zparseopts.ztst
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 50629: do not use egrep in tests 2 years ago
X03zlebindkey.ztst 50629: do not use egrep in tests 2 years ago
X04zlehighlight.ztst
Y01completion.ztst 50629: do not use egrep in tests 2 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
Z02zmathfunc.ztst
Z03run-help.ztst 49386: handle separate source/build trees 3 years ago
comptest
list-XFails
runtests.zsh
ztst.zsh 50629: do not use egrep in tests 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.