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 3bcf9641eb 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. 4 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 45305: Add an XFail test: The exec-last-command optimization is applied to try/always. 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 44446: Fix here document with file descriptor declarator. 5 years ago
A05execution.ztst 43945 (tweaked to remove test failure, noted in test): 5 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 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. 4 years ago
B02typeset.ztst 44296: "typeset Q= {X}" crashed the shell. 5 years ago
B03print.ztst 42488: test cases for 42369 and address some issues in the code 6 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 41668: New --emulate option on invocation. 7 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 44469: correct error on missing option argument 5 years ago
C01arith.ztst 45004: Fix typos in comments 5 years ago
C02cond.ztst 45004: Fix typos in comments 5 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 44030: prompt: Return error for unrecognised colour name 5 years ago
D02glob.ztst 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. 4 years ago
D03procsubst.ztst 45004: Fix typos in comments 5 years ago
D04parameter.ztst 45269: Fix misspellings in completions and elsewhere. 4 years ago
D05array.ztst 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 17 years ago
D06subscript.ztst 45004: Fix typos in comments 5 years ago
D07multibyte.ztst 40470: make the test work also with ASCII collation 7 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 45004: Fix typos in comments 5 years ago
E02xtrace.ztst 39292: Distinguish "=" and "==" tests in output. 8 years ago
Makefile.in 44523: Add ZTST_handler capability. 5 years ago
README 17502: Test changes for xtrace in 17492. 22 years ago
V01zmodload.ztst unposted: V01zmodload.ztst needs update for parameter module fix 6 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 unposted: zstyle: Add a unit test and some comments. 5 years ago
V06parameter.ztst Revert 40626 which broke tests. 7 years ago
V07pcre.ztst 43493: Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason. 6 years ago
V08zpty.ztst 34275: assume zpty can't be used for testing Cygwin 9 years ago
V09datetime.ztst 43953: Fix rounding/truncation error in %. time-format specifier 5 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 44100: zparseopts: Add -F option, completion, tests; improve documentation 5 years ago
W01history.ztst unposted: Add smoke test for :P history modifier. 5 years ago
W02jobs.ztst 43426: disable job control tests involving suspension. 6 years ago
X02zlevi.ztst 42116: multibyte support for ZLE vi-mode word motion 7 years ago
X03zlebindkey.ztst 42581(?): Fix ZLE inline history expansion. 6 years ago
X04zlehighlight.ztst unposted: internal: Remove Vim modeline that interferes with ztst.vim. 4 years ago
Y01completion.ztst users/24582 + users/24583: Add regression tests for the previous commit. 4 years ago
Y02compmatch.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 9 years ago
Y03arguments.ztst 42575: fix to not complete options in the argument to another option 6 years ago
comptest 37378: New bindkey tests. 9 years ago
list-XFails 45290: New helper script for listing XFail tests. 4 years ago
runtests.zsh 24316: count skipped tests differently from successes and failures. 17 years ago
ztst.zsh 45169/0001: In the test suite, allow test cases to be marked as expected to fail. 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
 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.