about summary refs log tree commit diff
path: root/Test/ztst.zsh
Commit message (Collapse)AuthorAgeFilesLines
* Add PM_DECLARED and PM_DECLAREDNULL parameter flags.Bart Schaefer2021-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses the issue that "typeset foo" creates $foo set to an empty string, which differs from typeset handling in bash and ksh. It does this by concealing the internal value rather than alter the way internal values are defaulted. This imposes the following changes: A typeset variable with no assignment triggers NO_UNSET warnings when the name is used in parameter expansion or math. The typeset -AEFHLRTZailux options are applied upon the first assignment to the variable. Explicit unset before the first assignment discards all of those properties. If any option is applied to an existing name, historic behavior is unchanged. Consequent to the foregoing, the (t) parameter expansion flag prints nothing until after the first assignment, and the (i) and (I) subscript flags also print nothing. The bash behavior of "unset foo; typeset -p foo" is NOT used. This is called out as an emulation distinction, not a change. The test cases have not been updated, so several now fail. The test harness has been updated to declare default values.
* 46102: test harness: Make the XPass message distinct from the Fail message.Daniel Shahaf2020-06-251-1/+14
| | | | | | | | | | | | | | | | | 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.
* 45169/0001: In the test suite, allow test cases to be marked as expected to ↵Daniel Shahaf2020-01-011-2/+28
| | | | | | fail. See next commit for a use-case.
* unposted: ztst.zsh: fix a typoJun-ichi Takimoto2019-03-011-1/+1
|
* 42722: Replace ed with dc in fg/bg tests.Peter Stephenson2018-04-251-8/+7
| | | | | | This should be even simpler. Also more fix ups for failed pattern diffs.
* 42714: Add fg and bg tests.Peter Stephenson2018-04-251-2/+21
| | | | | | | Use ed to get minimal user interaction without needing advanced terminal handling. Improve test output of failures of pattern differences.
* use "diff -a" in case special characters were written to the test outputBarton E. Schaefer2017-02-201-1/+1
|
* 40102: Use subdirectory for test I/O filesPeter Stephenson2016-12-051-7/+11
|
* 38652: test harness: Emit unified diffs instead of context diffsDaniel Shahaf2016-06-251-3/+3
|
* 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ↵Barton E. Schaefer2015-11-211-1/+1
| | | | ZTST_skip
* 35760: Add ZTST_skip to test systemPeter Stephenson2015-07-101-0/+11
|
* 32768 with further modifications: LOCAL_LOOPS option.Peter Stephenson2014-06-131-1/+5
|
* 29924: add ability to match test output using patternsPeter Stephenson2011-12-011-9/+62
|
* 24316: count skipped tests differently from successes and failures.Clint Adams2007-12-251-0/+1
|
* 24289 plus Ismail's suggestion 24290: count test scripts succeeded and failedPeter Stephenson2007-12-181-1/+1
|
* 23486: use {fd} syntax to get fd's for testsPeter Stephenson2007-05-291-5/+9
|
* 23022: don't allow WORDCHARS to be exported to testsPeter Stephenson2006-11-281-0/+3
|
* revert 22758 and add LC_NUMERIC and LC_MESSAGESAndrey Borzenkov2006-09-231-0/+2
| | | | to test harness instead
* 22550: put "exec" testsPeter Stephenson2006-07-121-18/+29
| | | | | in subshells and allow substitution on test output to occur after the test.
* 21862/21863: GLOB_SUBST shouldn't swallow up backslashes in parameterPeter Stephenson2005-10-111-1/+1
| | | | substitutions that don't match anything.
* Got rid of trap call for now.Wayne Davison2005-08-091-2/+2
|
* 20698: Fix tail for POSIX conformancePeter Stephenson2005-01-131-3/+27
|
* 20692: unset POSIXLY_CORRECT in test.Peter Stephenson2005-01-121-0/+3
| | | | unposted: minor comment change in _perforce
* 20198: fix TRAPEXIT.Peter Stephenson2004-07-261-0/+2
|
* 17502: Test changes for xtrace in 17492.Peter Stephenson2002-08-051-14/+24
| | | | `F:' code indicates text to display in event of error.
* 15261: remaining easy option testsPeter Stephenson2001-07-051-0/+2
|
* 15099: rudimental support for skipping unimplemented testsAndrey Borzenkov2001-06-261-5/+14
|
* 14430: handle cleanup better in Test/ztst.zshPeter Stephenson2001-05-221-12/+35
|
* Handle line wrapping in ZTST_hashmark.Bart Schaefer2001-05-201-0/+1
|
* More options tests and a ztst.zsh fix for ksharraysPeter Stephenson2001-05-181-2/+3
|
* Tweak zmodload tests, fix fd 8.Bart Schaefer2001-05-181-1/+1
|
* 14313: New options testsPeter Stephenson2001-05-111-1/+1
|
* (13892) fixes for fpaths and completion matchingSven Wischnowsky2001-04-031-0/+1
|
* after-move cleanupSven Wischnowsky2001-04-021-1/+2
|
* Print hash marks for progress.Bart Schaefer2001-03-301-0/+4
|
* stop LC_COLLATE reordering things in testsPeter Stephenson2001-03-251-0/+1
|
* More minor test fixes.Bart Schaefer2001-03-251-0/+2
|
* 11711: Andrej: diff output workaroundPeter Stephenson2000-06-071-2/+15
|
* 11096: Use C locale for testsPeter Stephenson2000-05-031-0/+5
|
* Test additions; 3.1.7-pre-1Peter Stephenson2000-04-191-1/+2
|
* 10547: (#s) and (#e) pattern assertionsPeter Stephenson2000-04-061-29/+64
|
* Initial revisionTanaka Akira1999-12-071-0/+316