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
dana b15bd4aa59 Add unsetopt/PRIVILEGED tests 4 years ago
..
.cvsignore
.distfiles
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
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
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
B05eval.ztst
B06fc.ztst
B07emulate.ztst
B08shift.ztst
B09hash.ztst
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
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
D06subscript.ztst 45004: Fix typos in comments 5 years ago
D07multibyte.ztst
D08cmdsubst.ztst 45004: Fix typos in comments 5 years ago
D09brace.ztst
E01options.ztst Add unsetopt/PRIVILEGED tests 4 years ago
E02xtrace.ztst
Makefile.in 44523: Add ZTST_handler capability. 5 years ago
P01privileged.ztst Add unsetopt/PRIVILEGED tests 4 years ago
README Add unsetopt/PRIVILEGED tests 4 years ago
V01zmodload.ztst unposted: V01zmodload: Fix failing test from workers/45385 4 years ago
V02zregexparse.ztst
V03mathfunc.ztst 43275: Add log2 to match func 6 years ago
V04features.ztst
V05styles.ztst unposted: zstyle: Add a unit test and some comments. 5 years ago
V06parameter.ztst
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
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
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
Y03arguments.ztst 42575: fix to not complete options in the argument to another option 6 years ago
comptest
list-XFails 45290: New helper script for listing XFail tests. 4 years ago
runtests.zsh
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
 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.