1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-17 13:36:04 +02:00
Commit Graph

49 Commits

Author SHA1 Message Date
Oliver Kiddle 10c3ed20c7 52393: fix tests on Solaris by omitting -a option to diff as it is not supported there 2023-12-13 11:40:03 +01:00
Jun-ichi Takimoto 1e4c7bcae5 50662: unset LC_* for all the tests 2022-09-26 11:09:22 +09:00
Jun-ichi Takimoto 4fc5dc0292 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Jun-ichi Takimoto c19f1313e3 50046: ztst.zsh: export LANG to child zsh 2022-04-14 10:19:57 +09:00
Jun-ichi Takimoto 06e5ec914f 50013: skip %test if a chunk in %prep fails
Only %test is skipped if a chunk in %prep returns nonzero. Both %test
and %clean are skipped if ZTST_unimplemented is set in a chunk of %prep.
ZTST_cleanup is run in both cases.
2022-04-12 16:56:18 +09:00
Jun-ichi Takimoto 3622551e02 49996 (Peter) + 50012: add ZTST_continue 2022-04-12 16:30:40 +09:00
Jun-ichi Takimoto 6617f19234 49908: reset LC_CTYPE to C during tests
and do not export MODULE_PATH since child zsh will not import it
2022-03-30 09:42:57 +09:00
Bart Schaefer 82ff9f24f1 48560: add TYPESET_TO_UNSET option to remove initialization of parameters
Changes typeset such that ${newparam-notset} yields "notset" and
"typeset -p newparam" does not show an assignment to the parameter.  This
is similar to the default behavior of bash and ksh, with minor differences
in typeset output.

Also add tests for some POSIX incompatibilities plus minor changes for test
harness robustness.
2021-04-18 13:58:09 -07:00
Daniel Shahaf 304ce85a2a 46102: test harness: Make the XPass message distinct from the Fail message.
The new output is:

    ./Test/B02typeset.ztst: starting.
    Test ./Test/B02typeset.ztst was expected to fail, but passed.
    Was testing: this is the description that's after the colon on in the ztst file
    ./Test/B02typeset.ztst: test XPassed.
    **************************************
    0 successful test scripts, 1 failure, 0 skipped
    **************************************
    make[1]: *** [Makefile:190: check] Error 1
    make: *** [Makefile:263: check] Error 2

The new function is deliberately very similar to ZTST_testfailed() just
above it.
2020-06-25 10:24:11 +00:00
Daniel Shahaf 7e2c80fcd5 45169/0001: In the test suite, allow test cases to be marked as expected to fail.
See next commit for a use-case.
2020-01-01 13:55:39 +00:00
Jun-ichi Takimoto 2055ee92e7 unposted: ztst.zsh: fix a typo 2019-03-01 14:57:55 +09:00
Peter Stephenson bdd595321f 42722: Replace ed with dc in fg/bg tests.
This should be even simpler.

Also more fix ups for failed pattern diffs.
2018-04-25 18:16:02 +01:00
Peter Stephenson c6dbd862d0 42714: Add fg and bg tests.
Use ed to get minimal user interaction without needing
advanced terminal handling.

Improve test output of failures of pattern differences.
2018-04-25 10:16:51 +01:00
Barton E. Schaefer 79005f1b79 use "diff -a" in case special characters were written to the test output 2017-02-20 13:26:50 -08:00
Peter Stephenson 98e297931a 40102: Use subdirectory for test I/O files 2016-12-05 16:52:22 +00:00
Daniel Shahaf 14dbc20b02 38652: test harness: Emit unified diffs instead of context diffs 2016-06-25 16:32:27 +00:00
Barton E. Schaefer b1688305cc 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Peter Stephenson 9152ff3b46 35760: Add ZTST_skip to test system 2015-07-10 14:47:19 +01:00
Peter Stephenson b5198b10a1 32768 with further modifications: LOCAL_LOOPS option. 2014-06-13 21:39:44 +01:00
Peter Stephenson ae8e3ba86d 29924: add ability to match test output using patterns 2011-12-01 21:52:55 +00:00
Clint Adams 4aef005bf8 24316: count skipped tests differently from successes and failures. 2007-12-25 01:40:16 +00:00
Peter Stephenson f8585a7c21 24289 plus Ismail's suggestion 24290: count test scripts succeeded and failed 2007-12-18 21:16:30 +00:00
Peter Stephenson 52e5a75a7a 23486: use {fd} syntax to get fd's for tests 2007-05-29 14:50:28 +00:00
Peter Stephenson ab8b8026dc 23022: don't allow WORDCHARS to be exported to tests 2006-11-28 22:09:00 +00:00
Andrey Borzenkov daed9601f7 revert 22758 and add LC_NUMERIC and LC_MESSAGES
to test harness instead
2006-09-23 06:55:29 +00:00
Peter Stephenson 3d3318d8f6 22550: put "exec" tests
in subshells and allow substitution on test output to occur
after the test.
2006-07-12 12:02:51 +00:00
Peter Stephenson cca66ab341 21862/21863: GLOB_SUBST shouldn't swallow up backslashes in parameter
substitutions that don't match anything.
2005-10-11 16:48:05 +00:00
Wayne Davison e0d0d9bfac Got rid of trap call for now. 2005-08-09 06:51:40 +00:00
Peter Stephenson ec4aa9f409 20698: Fix tail for POSIX conformance 2005-01-13 10:34:17 +00:00
Peter Stephenson cbd52eae53 20692: unset POSIXLY_CORRECT in test.
unposted: minor comment change in _perforce
2005-01-12 10:31:54 +00:00
Peter Stephenson 17e576782c 20198: fix TRAPEXIT. 2004-07-26 13:18:07 +00:00
Peter Stephenson 049dce8f63 17502: Test changes for xtrace in 17492.
`F:' code indicates text to display in event of error.
2002-08-05 13:10:02 +00:00
Peter Stephenson 979cbb0dc3 15261: remaining easy option tests 2001-07-05 14:51:33 +00:00
Andrey Borzenkov b053d02cdb 15099: rudimental support for skipping unimplemented tests 2001-06-26 15:02:34 +00:00
Peter Stephenson 87f45de409 14430: handle cleanup better in Test/ztst.zsh 2001-05-22 09:27:25 +00:00
Bart Schaefer ad74b5519c Handle line wrapping in ZTST_hashmark. 2001-05-20 18:10:56 +00:00
Peter Stephenson 774e0bf3a7 More options tests and a ztst.zsh fix for ksharrays 2001-05-18 18:03:11 +00:00
Bart Schaefer de880a6bbb Tweak zmodload tests, fix fd 8. 2001-05-18 16:20:48 +00:00
Peter Stephenson 326be4e98f 14313: New options tests 2001-05-11 12:53:40 +00:00
Sven Wischnowsky 6150ef8696 (13892) fixes for fpaths and completion matching 2001-04-03 11:25:11 +00:00
Sven Wischnowsky 3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Bart Schaefer 9b464ddc8d Print hash marks for progress. 2001-03-30 16:20:27 +00:00
Peter Stephenson aff2d638e6 stop LC_COLLATE reordering things in tests 2001-03-25 00:24:25 +00:00
Bart Schaefer 0fe2fc2742 More minor test fixes. 2001-03-25 00:14:00 +00:00
Peter Stephenson b24757fc34 11711: Andrej: diff output workaround 2000-06-07 09:02:23 +00:00
Peter Stephenson e6a6cab83c 11096: Use C locale for tests 2000-05-03 09:24:47 +00:00
Peter Stephenson 155df70ca8 Test additions; 3.1.7-pre-1 2000-04-19 19:03:09 +00:00
Peter Stephenson d2330ba055 10547: (#s) and (#e) pattern assertions 2000-04-06 18:44:01 +00:00
Tanaka Akira d4ce23998b Initial revision 1999-12-07 22:42:20 +00:00