summaryrefslogtreecommitdiffstats
path: root/regress/bin (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix EOL tests for ksh vi mode.anton2017-06-201-4/+4
|
* Don't write input if ICANON is enabled. Also, write one byte at a time.anton2017-06-181-1/+7
|
* Pass the command to execute as an argument. Allows the edit program to beanton2017-06-172-6/+17
| | | | reused.
* Test insertion of unmatched meta sequence.anton2017-06-061-0/+3
|
* Test insertion of non-ASCII characters, in particular making sureschwarze2017-06-051-0/+59
| | | | | | | | that valid input does not cause writing invalid intermediate states to the terminal, and that invalid input is not delayed waiting for more input, but written through right away. Currently failing, but expected to be fixed shortly.
* Add new edit regress files.anton2017-06-055-0/+378
| | | | Absent from my previous commit.
* Rewrite ksh edit mode regression tests.anton2017-06-057-394/+2
| | | | | | | | Instead of calling x_vi() directly, run ksh in a pseudo tty. This makes the process of adding tests for emacs mode simpler since the code can be shared. With feedback and help from millert@ and schwarze@
* Allow replacement of UTF-8 characters in vi mode.anton2017-05-311-0/+3
| | | | | | Reported by Walter Alejandro Iglesias on tech@. ok schwarze@ tb@
* Fix cursor position while removing characters from the command line.anton2017-05-281-0/+1
| | | | | | While here, remove a condition that becomes redundant. ok schwarze@ tb@
* Add missing includes to avoid implicit function declarations.jsg2017-02-251-0/+1
|
* Add a regress test for the chflags problem analogous to the chmod bugtb2017-02-181-1/+14
| | | | found by Christopher Wellons (see chmod.c r1.41).
* Add tests for chmod's interaction with symlinks: missing tests for -h andtb2017-02-171-1/+110
| | | | | | | | | | | add tests for the regression introduced in chmod.c r1.33 that transferred the permissions from the link to the target file in some circumstances. There are no tests for chflags since I couldn't come up with testcases without undesirable side-effects like breaking make clean. Four of these tests fail and will be fixed in the upcoming r1.40 to chmod. Prompted by a bug report from Christopher Wellons
* Remove and-list-error-3 test, it is obsoleted by seterror-11millert2016-12-111-22/+1
|
* Fixes descriptions for seterror tests 1, 2 and 4.millert2016-12-111-7/+132
| | | | | | | Add seterror tests 8-10 for better "set -e" coverage. Add seterror-11 test to exercise the bug with "set -e" and short-ciruited "&&" chains. From Kartik Agaram
* If a Makefile both defines SUBDIR and includes <bsd.regress.mk>,schwarze2016-09-292-20/+24
| | | | | | | | | | | | | the "all" target will depend on the "regress" target, so running "make all" will recurse into the subdirectories for "regress", and then recurse a second time into the same subdirectories for "all", running all the tests twice. Fix this by moving the Makefile to run the main-level tests into a subdirectory "main" and only including <bsd.subdir.mk> from the top level Makefile. Issue reported by otto@; patch OK'ed by otto@ and bluhm@.
* Adjusts some patterns, so that the warning messages ksh prints ifbluhm2016-09-274-35/+35
| | | | | it has no controlliing tty is not causing the test to fail. based on otto@'s work; OK otto@
* fix dependency, fixing regress if make regress is called with a clean objotto2016-09-271-2/+2
| | | | | | (like the parent does). When make is called in the parent dir, both make regress and make all are called for the vi subdir. Need to figure out how to avoid that.
* Fix a race in test. Wait until the process shown by ps is reallybluhm2016-09-211-0/+0
| | | | up and running.
* Some new tests related to bin/cat.c rev. 1.25,schwarze2016-07-056-2/+29
| | | | from Sevan Janiyan <venture37 at geeklan dot co dot uk>.
* remove systracetedu2016-04-257-111/+2
|
* More ksh POSIX compliance fixes by Martijn Dekker:tb2016-03-211-1/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | This simple patch makes the 'command' builtin POSIX-compliant and consistent with other current shells. It fixes two things: a) 'command -v' does not find shell reserved words (a.k.a. keywords). For instance, 'command -v select' outputs nothing but should output 'select'. b) 'command -pv' always outputs the path of an external command, even if 'command -p' would execute a builtin. For instance, 'command -p kill' executes the 'kill' builtin, as expected, but 'command -pv kill' outputs '/bin/kill'. The '-v' option is supposed to reflect what would actually be executed, so 'command -pv kill' should output 'kill'. The -p option sets the PATH to a default system value before doing the search, but that has no bearing on the fact that builtins take precedence over external commands. The patch fixes both issues for 'command' without affecting the behaviour of the ksh-specific builtin 'whence', which is handled by the same C function. Regression test added to obsd-regress.t. Issues found and fixed by Martijn Dekker, ok millert@
* POSIX-compliant behavior of "set -u" regarding "$*" and "$@" specialsczarkoff2016-03-051-1/+12
| | | | | | All work done by Martijn Dekker OK millert@
* don't parse (...|...) patterns in variable substitution inside double quotesczarkoff2016-03-041-0/+8
| | | | | | fixes posix compatibility issue OK millert@, nicm@, otto@
* rename xxx-what-do-you-call-this-1 to qouted-brace-expansion-1czarkoff2016-03-041-1/+1
| | | | suggestion from beck@, OK millert@, otto@
* better mockup for promptlen()schwarze2016-01-162-1/+13
|
* The ksh(1) vi editing mode code is much harder to understand thanschwarze2016-01-127-1/+378
| | | | | | | | | | | the emacs editing mode code, so add a testsuite before touching it. To avoid having to deal with the horrendous low-level terminal handling and high-level command execution code, write the tests in unit test style rather than in integration test style, by providing minimal glue to run vi.c stand-alone. In case relevant internal interfaces in sh.c, edit.c, and friends are changed, the glue may need adjustment. Not testing completion and history at this time, only line editing.
* some UTF-8 testsschwarze2016-01-101-0/+0
|
* test some valid UTF-8, but in the C localeschwarze2015-12-151-0/+0
|
* test encoding of a few invalid UTF-8 sequencesschwarze2015-12-151-0/+0
|
* test vis(3)ingschwarze2015-12-151-0/+0
|
* tests for the following keywords: cwd login group rgroup ruser userschwarze2015-12-153-2/+115
|
* regression suite for the "command" keywordschwarze2015-12-153-2/+122
|
* Need native-pledge for id.doug2015-10-181-1/+2
|
* Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerguenther2015-09-132-5/+6
| | | | | | necessary ok deraadt@ jsing@
* Add regress test to exercise octal expansion (via blackslash) inmillert2015-07-301-1/+22
| | | | PS1 and PS2. OK deraadt@
* hook up chmodflorian2015-06-151-2/+2
|
* oopsflorian2015-06-151-374/+0
|
* First stab at regression test for chmod (and chflags, chgrp and chownflorian2015-06-156-0/+743
| | | | | which are the same binary). This is supposed to exercise all syscalls paths through those tools and not a comprehensive regression test.
* Add test suites for SHA-224 and SHA-384.lteo2015-01-093-3/+29
| | | | | | | | Relevant lines from testsuite.sha224 were verified against the test vectors in RFC 3874, while testsuite.384 was verified against https://www.cosic.esat.kuleuven.be/nessie/testvectors/hash/sha/Sha-2-384.unverified.test-vectors ok millert@
* don't fail, even if running as root.daniel2014-11-251-2/+2
| | | | idea from and ok ingo@
* Add sendsyslog too, and sortguenther2014-07-142-34/+37
|
* Update systrace policies for arc4random changesguenther2014-07-142-2/+6
|
* Remove sum test since sum(1) is gone; add sha512 testlteo2014-03-263-14/+14
|
* Enable ps regression testslteo2014-03-201-2/+2
|
* Basic tests for ps(1) to check for valid/invalid keywordslteo2014-03-201-0/+16
|
* Move ksh test files into regress.millert2013-12-0229-181/+5589
|
* Irony: forgetting to link in the 'ln' testsguenther2013-06-171-2/+2
|
* Add test for "true && true && false" and "set -e".millert2013-06-092-2/+14
|
* POSIX specifies that for an AND/OR list, only the last command'smillert2013-06-081-3/+3
| | | | exit status matters for "set -e". OK espie@
* stuff that currently doesn't match what posix says, naddy agreesespie2013-06-073-2/+26
|