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
Daniel Shahaf 4ba9008ec7 48379: Make the parameter expansion subscript flags parse error message, "error in flags", identify the location of the parse error. 3 years ago
..
.cvsignore
.distfiles
A01grammar.ztst 45616: Remove token from count argument to repeat 4 years ago
A02alias.ztst 45004: Fix typos in comments 5 years ago
A03quoting.ztst 41485: test for previous fix 7 years ago
A04redirect.ztst 46026: Add CLOBBER_EMPTY option. 4 years ago
A05execution.ztst 47296 (+ unposted additional tests and comments): 'repeat' loops: Let the repeat count use $?. 4 years ago
A06assign.ztst 42101 (tweaked): assigning shell status to array was broken 6 years ago
A07control.ztst
B01cd.ztst 46168: Update $PWD and call chpwd hook after normalizing path 4 years ago
B02typeset.ztst 44296: "typeset Q= {X}" crashed the shell. 5 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
B06fc.ztst
B07emulate.ztst 41668: New --emulate option on invocation. 7 years ago
B08shift.ztst
B09hash.ztst 39949: Special case for "-" in directory names. 8 years ago
B10getopts.ztst 44469: correct error on missing option argument 5 years ago
B11kill.ztst 45463: test: kill: Document why we use SIGURG 4 years ago
B12limit.ztst 45584, 45620: zsh/rlimits: Skip the tests for this module when it wasn't compiled in. 4 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 45470: C02cond: Simplify '-N cond' test 4 years ago
C03traps.ztst 45373: Fix ERR_EXIT bug in else branch of if. 4 years ago
C04funcdef.ztst Copy functions using functions -c old new. 5 years ago
C05debug.ztst clean up test temporary files 16 years ago
D01prompt.ztst 47352 (+ extra test cases): fix %<n>K prompt expansion 4 years ago
D02glob.ztst 47895: Remove trailing spaces from "print -ac" output lines. 3 years ago
D03procsubst.ztst 46183: New XFail test: external command with =(...) on LHS of pipeline cleans up its tempfiles. 4 years ago
D04parameter.ztst 48379: Make the parameter expansion subscript flags parse error message, "error in flags", identify the location of the parse error. 3 years ago
D05array.ztst
D06subscript.ztst 45004: Fix typos in comments 5 years ago
D07multibyte.ztst unposted: Improve documentation and add regression test for workers/47745 3 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 47849: do not skip tests requiring zpty on Cygwin 3 years ago
E02xtrace.ztst 45601: fix another status in new function -T test 4 years ago
Makefile.in 44523: Add ZTST_handler capability. 5 years ago
P01privileged.ztst 45542: P01privileged: Use test-directory owner for auto-determined EUID/EGID 4 years ago
README Add unsetopt/PRIVILEGED tests 4 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 48425: Add an XFail test for a 'zstyle -L' escaping bug (workers/48424). 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 45004: Fix typos in comments 5 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 45137: zformat: Allow the specifying minimum width and a dot with an empty maximum width. 4 years ago
V14system.ztst 46152: zsh/system: Re-allow '0' timeout in zsystem flock 4 years ago
W01history.ztst unposted: Add smoke test for :P history modifier. 5 years ago
W02jobs.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
X02zlevi.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
X03zlebindkey.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
X04zlehighlight.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
Y01completion.ztst 48413: Fix _expand completion test 3 years ago
Y02compmatch.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
Y03arguments.ztst 47849: do not skip tests requiring zpty on Cygwin 3 years ago
Z01is-at-least.ztst 47314: is-at-least false positive (5.8.0.2 / 5.8) 4 years ago
Z02zmathfunc.ztst 48147/0002: zmathfunc: Fix bug where the exit code would be non-zero if the expression evaluted to zero. 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
ztst.zsh 46102: test harness: Make the XPass message distinct from the Fail message. 4 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.

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.