summaryrefslogtreecommitdiff
path: root/regress/bin
AgeCommit message (Collapse)Author
2016-04-25remove systraceTed Unangst
2016-03-21More ksh POSIX compliance fixes by Martijn Dekker:tb
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@
2016-03-05POSIX-compliant behavior of "set -u" regarding "$*" and "$@" specialsDmitrij Czarkoff
All work done by Martijn Dekker OK millert@
2016-03-04don't parse (...|...) patterns in variable substitution inside double quotesDmitrij Czarkoff
fixes posix compatibility issue OK millert@, nicm@, otto@
2016-03-04rename xxx-what-do-you-call-this-1 to qouted-brace-expansion-1Dmitrij Czarkoff
suggestion from beck@, OK millert@, otto@
2016-01-16better mockup for promptlen()Ingo Schwarze
2016-01-12The ksh(1) vi editing mode code is much harder to understand thanIngo Schwarze
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.
2016-01-10some UTF-8 testsIngo Schwarze
2015-12-15test some valid UTF-8, but in the C localeIngo Schwarze
2015-12-15test encoding of a few invalid UTF-8 sequencesIngo Schwarze
2015-12-15test vis(3)ingIngo Schwarze
2015-12-15tests for the following keywords: cwd login group rgroup ruser userIngo Schwarze
2015-12-15regression suite for the "command" keywordIngo Schwarze
2015-10-18Need native-pledge for id.Doug Hogan
2015-09-13Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerPhilip Guenther
necessary ok deraadt@ jsing@
2015-07-30Add regress test to exercise octal expansion (via blackslash) inTodd C. Miller
PS1 and PS2. OK deraadt@
2015-06-15hook up chmodFlorian Obser
2015-06-15oopsFlorian Obser
2015-06-15First stab at regression test for chmod (and chflags, chgrp and chownFlorian Obser
which are the same binary). This is supposed to exercise all syscalls paths through those tools and not a comprehensive regression test.
2015-01-09Add test suites for SHA-224 and SHA-384.Lawrence Teo
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@
2014-11-25don't fail, even if running as root.Daniel Dickman
idea from and ok ingo@
2014-07-14Add sendsyslog too, and sortPhilip Guenther
2014-07-14Update systrace policies for arc4random changesPhilip Guenther
2014-03-26Remove sum test since sum(1) is gone; add sha512 testLawrence Teo
2014-03-20Enable ps regression testsLawrence Teo
2014-03-20Basic tests for ps(1) to check for valid/invalid keywordsLawrence Teo
2013-12-02Move ksh test files into regress.Todd C. Miller
2013-06-17Irony: forgetting to link in the 'ln' testsPhilip Guenther
2013-06-09Add test for "true && true && false" and "set -e".Todd C. Miller
2013-06-08POSIX specifies that for an AND/OR list, only the last command'sTodd C. Miller
exit status matters for "set -e". OK espie@
2013-06-07stuff that currently doesn't match what posix says, naddy agreesMarc Espie
2013-03-12Add support for the -L and -P options.Philip Guenther
Based on a patch from Kent R. Spillner (kspillner (at) acm.org) ok jmc@ millert@
2012-08-21Use $(.CURDIR) to locate source files so tests still work with 'makeMatthew Dempsky
obj'. ok nicm
2011-07-09Move test(1) test into regress.Nicholas Marriott
ok deraadt
2010-08-08remove rmd160 and add cksum, sha256, and sum while hereDavid Krause
phessler@ deraadt@
2010-03-24tests for ${name#pat} and ${name%pat} issue.Federico G. Schwindt
millert@ ok'd a previous version.
2009-01-29pass "xerrok" status across the execution call stack to more closelyJared Yanovich
match what both POSIX and ksh.1 already describe in regards to set -e/errexit's behavior in determining when to exit from nonzero return values. specifically, the truth values tested as operands to `&&' and `||', as well as the resulting compound expression itself, along with the truth value resulting from a negated command (i.e. a pipeline prefixed `!'), should not make the shell exit when -e is in effect. issue reported by matthieu. testing matthieu, naddy. ok miod (earlier version), otto. man page ok jmc.
2006-08-10failing qt4 test case.Marc Espie
2006-07-21Test that "cpio -o" does not segfault when called with no input.Ray Lai
2006-01-25append without a file list should not corrupt a tar file;Markus Friedl
report Rainer Giedat; ok millert@
2005-06-13Add regression test for writing old-style tar headers containing namesOtto Moerbeek
that completely fill the header field. WIth help from jaredy@
2005-04-30Test various edge cases reading ustar archives.Otto Moerbeek
2005-04-15t1: only do a short listing, t2: test for tar.c, rev 1.36Markus Friedl
2005-04-14Initial pax regression tests. OK ottoChad Loder
2004-08-07update policy for libc changes (getrlimit)marius eriksen
found by and ok david@
2004-01-15add simple systrace regresssion testNikolay Sturm
from provos@/NetBSD ok henning@
2003-12-15Regression test for PR 2450.Otto Moerbeek
2003-02-09a common construct that ksh fails.Marc Espie
2002-09-02Rename a bunch of the old bsd.regress.mk variables into the new ones.Anil Madhavapeddy
ok art@
2002-02-27Add regress test for ksh bug, crash trigger provided by nino@. ok espie@Daniel Hartmeier