1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00
zsh/Test
Daniel Shahaf 06265d2b83 47314: is-at-least false positive (5.8.0.2 / 5.8)
Actual behaviour:

    % is-at-least 5.8.0.2 5.8 && echo yes || echo no
    yes
    % is-at-least 5.8.0.2 5.8.0.0 && echo yes || echo no
    no

Expected behaviour: Both commands should have printed "no".
2020-08-16 14:24:29 +00:00
..
.cvsignore
.distfiles
A01grammar.ztst 45616: Remove token from count argument to repeat 2020-03-26 20:54:37 +00:00
A02alias.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
A03quoting.ztst 41485: test for previous fix 2017-08-03 21:50:18 +01:00
A04redirect.ztst 46026: Add CLOBBER_EMPTY option. 2020-06-09 18:07:01 +01:00
A05execution.ztst 47296 (+ unposted additional tests and comments): 'repeat' loops: Let the repeat count use $?. 2020-08-08 06:11:00 +00:00
A06assign.ztst 42101 (tweaked): assigning shell status to array was broken 2018-05-11 09:29:14 +01:00
A07control.ztst
B01cd.ztst 46168: Update $PWD and call chpwd hook after normalizing path 2020-07-03 21:17:58 -05:00
B02typeset.ztst 44296: "typeset Q= {X}" crashed the shell. 2019-05-14 12:10:10 +01:00
B03print.ztst 42488: test cases for 42369 and address some issues in the code 2018-05-13 10:13:42 +02:00
B04read.ztst
B05eval.ztst
B06fc.ztst
B07emulate.ztst 41668: New --emulate option on invocation. 2017-09-11 10:12:17 +01:00
B08shift.ztst
B09hash.ztst
B10getopts.ztst 44469: correct error on missing option argument 2019-07-01 09:42:22 +01:00
B11kill.ztst 45463: test: kill: Document why we use SIGURG 2020-02-18 19:35:18 +00:00
B12limit.ztst 45584, 45620: zsh/rlimits: Skip the tests for this module when it wasn't compiled in. 2020-03-27 01:14:42 +00:00
B13whence.ztst 45640: Fix new test when ${PWD}'s value contains symlinks. 2020-03-28 00:46:51 +00:00
C01arith.ztst 46079: Ignore double quotes in math expressions. 2020-06-23 12:17:32 +01:00
C02cond.ztst 45470: C02cond: Simplify '-N cond' test 2020-03-11 21:17:12 -05:00
C03traps.ztst 45373: Fix ERR_EXIT bug in else branch of if. 2020-02-02 18:05:47 +00:00
C04funcdef.ztst Copy functions using functions -c old new. 2019-08-03 19:53:51 +01:00
C05debug.ztst
comptest 46189: Ignore exit status of final zpty_flush in comptesteval 2020-07-07 09:36:11 -07:00
D01prompt.ztst 44030: prompt: Return error for unrecognised colour name 2019-02-03 11:55:40 -06:00
D02glob.ztst unposted: Make test platform-independent. 2020-04-02 00:10:42 +00:00
D03procsubst.ztst 46183: New XFail test: external command with =(...) on LHS of pipeline cleans up its tempfiles. 2020-07-12 15:57:49 +00:00
D04parameter.ztst users/24971: ${(-)var} sorts on signed integers 2020-07-03 21:05:46 +01:00
D05array.ztst
D06subscript.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
D07multibyte.ztst 45764: Add a regression test for 45772. Test by Roman 2020-05-05 21:15:54 +00:00
D08cmdsubst.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
D09brace.ztst 41420: "{.." wasn't check for brace expansion properly 2017-07-13 17:20:24 +01:00
E01options.ztst 46204: Fix new test case for the theoretical case of having more than 100 files in the root directory. 2020-07-12 11:37:16 +00:00
E02xtrace.ztst 45601: fix another status in new function -T test 2020-03-25 15:55:19 +09:00
list-XFails 45290: New helper script for listing XFail tests. 2020-01-13 22:48:55 +00:00
Makefile.in 44523: Add ZTST_handler capability. 2019-07-16 10:57:35 +01:00
P01privileged.ztst 45542: P01privileged: Use test-directory owner for auto-determined EUID/EGID 2020-04-01 17:05:26 -05:00
README Add unsetopt/PRIVILEGED tests 2020-02-14 16:06:58 -06:00
runtests.zsh
V01zmodload.ztst 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully. 2020-03-27 01:14:42 +00:00
V02zregexparse.ztst
V03mathfunc.ztst 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
V04features.ztst
V05styles.ztst 45737 (+ docs, and update the test from 45722): zstyle: When determining the weight (specificity) of a pattern, consider the number of components before anything else, as documented. 2020-05-02 01:12:07 +00:00
V06parameter.ztst Revert 40626 which broke tests. 2017-02-26 06:11:19 +00:00
V07pcre.ztst unposted: Fix syntax error introduced in 45591. 2020-03-28 00:56:22 +00:00
V08zpty.ztst
V09datetime.ztst 43953: Fix rounding/truncation error in %. time-format specifier 2018-12-29 05:24:25 -06:00
V10private.ztst 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
V11db_gdbm.ztst Improve comment at top of GDBM test 2017-03-21 09:57:00 +00:00
V12zparseopts.ztst 44100: zparseopts: Add -F option, completion, tests; improve documentation 2019-03-12 19:03:56 -05:00
V13zformat.ztst 45137: zformat: Allow the specifying minimum width and a dot with an empty maximum width. 2019-12-26 04:21:47 +00:00
V14system.ztst 46152: zsh/system: Re-allow '0' timeout in zsystem flock 2020-07-11 00:14:58 -05:00
W01history.ztst unposted: Add smoke test for :P history modifier. 2019-11-19 17:57:13 +00:00
W02jobs.ztst 43426: disable job control tests involving suspension. 2018-09-10 13:48:41 +01: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
X04zlehighlight.ztst 46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve add-zle-hook-widget support for multiple hook functions. 2020-06-27 03:09:31 +00:00
Y01completion.ztst 45895: ignore deduplication patterns in _sequence 2020-06-26 00:34:33 +02:00
Y02compmatch.ztst
Y03arguments.ztst 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely. 2020-05-03 01:27:36 +00:00
Z01is-at-least.ztst 47314: is-at-least false positive (5.8.0.2 / 5.8) 2020-08-16 14:24:29 +00:00
ztst.zsh 46102: test harness: Make the XPass message distinct from the Fail message. 2020-06-25 10:24:11 +00: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
 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.