1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-27 00:11:00 +02:00
zsh/Test
Oliver Kiddle 65b265f3c0 42624 (plus test): avoid freeing memory that's still needed
This was occurring in a multiple function definition where a
function name is duplicated.
2018-04-12 23:15:29 +02:00
..
.cvsignore unposted: cvsignore VIM *.swp files 2003-05-05 06:14:49 +00:00
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
A01grammar.ztst add millisecond and microsecond options to TIMEFMT variable 2017-12-14 15:36:46 +00:00
A02alias.ztst 42146: type -w += global aliases 2017-12-20 05:43:42 +00:00
A03quoting.ztst 41485: test for previous fix 2017-08-03 21:50:18 +01:00
A04redirect.ztst 42538: Temporarily set umask for here document. 2018-03-27 09:32:55 +01:00
A05execution.ztst unposted: tests for 39839, 39844 2016-11-05 21:37:23 -07:00
A06assign.ztst 40781: optimize array assignment, similar to 39995 for string assignment 2017-03-04 15:35:19 -08:00
A07control.ztst 34077: further tests for return status from "for" loops 2015-01-02 21:16:41 +00:00
B01cd.ztst 41284: Fix NULL dereference in cd. 2017-06-13 15:41:00 +01:00
B02typeset.ztst Add typeset -p1, like typeset -p with newlines 2017-10-01 17:53:56 +01:00
B03print.ztst 40203: Resolve 'printf --' question from grandparent commit (thanks Chet). 2016-12-16 00:59:57 +00:00
B04read.ztst 29731: fix read -AE, test that and read -Ae 2011-08-28 17:06:27 +00:00
B05eval.ztst 25409: fix eval's use of lastval 2008-08-06 19:51:04 +00:00
B06fc.ztst 33686: set PS1 before pattern-matching for it 2014-11-13 09:27:14 -08:00
B07emulate.ztst 41668: New --emulate option on invocation. 2017-09-11 10:12:17 +01:00
B08shift.ztst 32246: option "shift -p" pops arguments from end of array 2014-01-11 19:31:29 +00:00
B09hash.ztst 39949: Special case for "-" in directory names. 2016-11-15 18:01:32 +00:00
B10getopts.ztst 42065: new getopts tests 2017-12-01 09:51:17 +00:00
C01arith.ztst 41641: Some math operations shouldn't be lvalues. 2017-09-05 13:15:30 +01:00
C02cond.ztst 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather than a syntax error. 2017-11-24 22:10:27 +00:00
C03traps.ztst Fix problem with ERR_RETURN. 2017-08-31 16:54:19 +01:00
C04funcdef.ztst 42624 (plus test): avoid freeing memory that's still needed 2018-04-12 23:15:29 +02:00
C05debug.ztst clean up test temporary files 2008-12-29 04:24:36 +00:00
comptest 37378: New bindkey tests. 2015-12-10 17:51:41 +00:00
D01prompt.ztst 41078: Empty psvar could cause bad dereference in prompt expansion 2017-05-09 09:46:23 +01:00
D02glob.ztst unposted: Adding comments to test changed line number in output 2017-05-09 21:02:34 +01:00
D03procsubst.ztst 35873: add original test for process substitution deadlock from 35847 2015-07-23 10:08:19 +01:00
D04parameter.ztst 41902: ${(z)...} continues parsing on unmatched quote when CSH_JUNKIE_QUOTES is set 2017-10-17 20:29:47 -07:00
D05array.ztst 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 2007-06-18 13:25:03 +00:00
D06subscript.ztst 40932: Parameter subscripts need to count parentheses. 2017-04-03 10:04:03 +01:00
D07multibyte.ztst 40470: make the test work also with ASCII collation 2017-02-01 10:42:45 +09:00
D08cmdsubst.ztst 40995: Don't disable alias expansion when finding command substitution limits 2017-04-23 17:06:26 +01:00
D09brace.ztst 41420: "{.." wasn't check for brace expansion properly 2017-07-13 17:20:24 +01:00
E01options.ztst 41877: Separate out SH_FILE_EXPANSION loop from parameter substitution. 2017-10-13 18:17:09 +01:00
E02xtrace.ztst 39292: Distinguish "=" and "==" tests in output. 2016-09-13 09:42:24 +01:00
Makefile.in Paul Ackersviller: 26959: delay before removing test modules 2009-05-13 08:39:47 +00:00
README 17502: Test changes for xtrace in 17492. 2002-08-05 13:10:02 +00:00
runtests.zsh 24316: count skipped tests differently from successes and failures. 2007-12-25 01:40:16 +00:00
V01zmodload.ztst 39222: test math functions in modules. 2016-09-08 12:15:14 +01:00
V02zregexparse.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V03mathfunc.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V04features.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V05styles.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
V06parameter.ztst Revert 40626 which broke tests. 2017-02-26 06:11:19 +00:00
V07pcre.ztst 41542: Fix pcre logic for extracting matched parentheses. 2017-08-14 11:17:48 +01:00
V08zpty.ztst 34275: assume zpty can't be used for testing Cygwin 2015-01-14 14:25:18 +00:00
V09datetime.ztst 40820: add a few tests of strftime, related to 40681 2017-03-12 21:04:22 +09:00
V10private.ztst More [key]=value tweaks 2017-09-14 21:43:37 +01:00
V11db_gdbm.ztst Improve comment at top of GDBM test 2017-03-21 09:57:00 +00:00
W01history.ztst 34787: Add more history tests 2015-03-27 10:21:02 +00:00
W02jobs.ztst 42156: new CHECK_RUNNING_JOBS option demanded by bash groupies 2017-12-22 20:21:23 +00:00
X02zlevi.ztst 42116: multibyte support for ZLE vi-mode word motion 2017-12-18 12:48:25 +09:00
X03zlebindkey.ztst 42581(?): Fix ZLE inline history expansion. 2018-04-04 18:33:00 +01:00
Y01completion.ztst 42164: fix digits in format escapes in completion listings 2018-01-04 17:16:18 +00:00
Y02compmatch.ztst 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Y03arguments.ztst 42575: fix to not complete options in the argument to another option 2018-04-05 11:14:58 +02:00
ztst.zsh use "diff -a" in case special characters were written to the test output 2017-02-20 13:26:50 -08:00

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.