summaryrefslogtreecommitdiffstats
path: root/tools/regression
Commit message (Collapse)AuthorAgeFilesLines
* libc: Add a missing header to a test program.jilles2012-12-081-0/+1
| | | | Usage of dup(), mkstemp() and unlink() needs <unistd.h>.
* Non-void function should return a value.emaste2012-11-201-1/+1
| | | | Found by: clang
* Remove unused variable.emaste2012-11-201-1/+0
|
* Use '%zu' and '%zd' as appropriate for size_t / ssize_t.emaste2012-11-193-5/+5
|
* Zero the whole struct not just the size of a pointer.emaste2012-11-191-1/+1
| | | | Found by: clang
* Use '%zd' format specifier for ssize_temaste2012-11-193-13/+13
| | | | Found by: clang
* Use '%zd' printf format for ssize_t.emaste2012-11-191-2/+2
|
* sh: Apply rlimits to parser/alias10.0 so it fails fast.jilles2012-11-181-0/+4
| | | | Requested by: uqs
* sh: Add tests for modifying an alias (r242766).jilles2012-11-083-0/+21
| | | | | Note: parser/alias10.0 will eat a lot of memory/cpu time when it fails (with the old sh).
* sh: Test that a redefined alias works.jilles2012-11-071-0/+6
|
* Test both active and non-active cases.obrien2012-10-261-0/+8
|
* Iterate rather than use recursion. We can blow out the kernel stack if thereobrien2012-10-262-3/+198
| | | | is a long chain of fork(2)s.
* remove duplicate semicolons where possible.eadler2012-10-222-2/+2
| | | | | Approved by: cperciva MFC after: 1 week
* Covert regression test to python 3eadler2012-10-221-7/+7
| | | | | Approved by: cperciva MFC after: 3 days
* Revert previous commit...kevlo2012-10-104-7/+8
| | | | Pointyhat to: kevlo (myself)
* Prefer NULL over 0 for pointerskevlo2012-10-094-8/+7
|
* Add regression test for kern/172075.emaste2012-09-261-0/+59
| | | | | Sponsored by: ADARA Networks PR: kern/172075
* sh: Add some tests for aliasing a utility to itself.jilles2012-09-222-0/+8
|
* nftw(): POSIX says directories causing loops should be silently skipped.jilles2012-08-092-1/+142
| | | | Formerly, loops caused nftw() to abort the traversal with ELOOP.
* sh: Add a simple test for the "local" builtin.jilles2012-07-151-0/+13
|
* sh: Expand assignment-like words specially for export/readonly/local.jilles2012-07-155-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | Examples: export x=~ now expands the tilde local y=$1 is now safe, even if $1 contains IFS characters or metacharacters. For a word to "look like an assignment", it must start with a name followed by an equals sign, none of which may be quoted. The special treatment applies when the first word (potentially after "command") is "export", "readonly" or "local". There may be quoting characters but no expansions. If "local" is overridden with a function there is no special treatment ("export" and "readonly" cannot be overridden with a function). If things like local arr=(1 2 3) are ever allowed in the future, they cannot call a "local" function. This would either be a run-time error or it would call the builtin. This matches Austin Group bug #351, planned for the next issue of POSIX.1. PR: bin/166771
* sh: Add tests where "export" does not parse differently.jilles2012-07-131-0/+13
| | | | | | | | It is planned to expand variable assignments as assignments (no word splitting, different tilde expansion) when they follow a "declaration utility" (export, readonly or local). However, a quoted character cannot be part of a "name" so things like \v=~ are not assignments, and the existing behaviour applies.
* The etcupdate utility is a tool for managing updates to files that arejhb2012-07-135-0/+2443
| | | | | | | | | | | | | | | not updated as part of `make installworld' such as files in /etc. It manages updates by doing a three-way merge of changes made to these files against the local versions. It is also designed to minimize the amount of user intervention with the goal of simplifying upgrades for clusters of machines. The primary difference from mergemaster is that etcupdate requires less manual work. The primary difference from etcmerge is that etcupdate updates files in-place similar to mergemaster rather than building a separate /etc tree. Requested by: obrien, kib, theraven, joeld (among others)
* Remove the "funny targets" make check. We no longer need embedded :: targetsobrien2012-07-058-0/+32
| | | | | | | | | to build FreeBSD (they are used in Perl man pages). We never needed embedded "!" in targets that I can find. We got this from OpenBSD and I cannot find any other make that supports such things -- contrary to their commit message claim: "This behaviour is also consistent with other versions of make.".
* Recognize 'none' or '0' as no flags.pjd2012-07-041-4/+4
|
* Support also running a 32-bit test on 64-bit platforms.obrien2012-06-291-1/+3
|
* Provide a mechanism to not clear out the work and output dirs whenobrien2012-06-201-2/+4
| | | | developing tests.
* Add a test for the :tl & :tu modifiers.obrien2012-06-1211-0/+35
|
* sh: Do not assume that SIGPIPE will only kill a subshell in builtins/wait3.0jilles2012-06-081-1/+1
| | | | | | | | | | | | | | test. POSIX says that SIGPIPE affects a process and therefore a SIGPIPE caused and received by a subshell environment may or may not affect the parent shell environment. The change assumes that ${SH} is executed in a new process. This must be the case if it contains a slash and everyone appears to do so anyway even though POSIX might permit otherwise. This change makes builtins/wait3.0 work in ksh93.
* Correct examples to the latest version I had.obrien2012-06-051-6/+11
|
* Add a regression test for filemon(4) [r236592].obrien2012-06-043-0/+144
|
* Add regression test for '-V' command line option (requires r236346).obrien2012-05-318-0/+35
|
* make it easier to test newly-built make.obrien2012-05-302-0/+9
|
* Import byacc from invisible island, it brings us lots of compatibilities withbapt2012-05-2134-0/+15099
| | | | | | | | | | | | | bison, keeping full compatibility with our previous yacc implementation. Also bring the ability to create reentrant parser This fix bin/140309 [1] PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
* According to shared memory man pages, advice including <sys/types.h>kevlo2012-05-213-3/+3
| | | | instead of <sys/param.h>
* Import m4 regression tests from OpenBSDbapt2012-04-3047-43/+1076
| | | | | Obtained from: OpenBSD Approved by: des (mentor)
* Add some tests from PR 166463. Also make sure that all of the tests,das2012-04-071-7/+33
| | | | | old and new, check the sign bits of both the remainder and the quotient.
* sh: Add a test for variables with underscores in arithmetic.jilles2012-03-111-0/+4
| | | | | Things like $((_x+1)) are broken in stable/8 sh but work in stable/9 and head.
* Add regression test for USB enumeration.hselasky2012-03-011-0/+30
| | | | MFC after: 1 week
* Fix order of arguments to lseek().brueffer2012-02-291-1/+1
| | | | | | PR: 160867 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week
* Check fchmod()/fchown() in fifo_misc test.jilles2012-02-261-0/+93
|
* libc: Add some tests for fmtmsg().jilles2012-02-212-1/+252
|
* Add regression tests for the setsockopt(2) SO_SETFIB socket option.bz2012-02-173-0/+262
| | | | | | | | Check that the expected domain(9) families all handle the socket option correctly and do proper bounds checks. This would catch bugs as fixed in (r230938,)r230981. Sponsored by: Cisco Systems, Inc.
* Include target names in diagnostic output.fjoe2012-02-121-60/+60
| | | | Submitted by: Garrett Cooper
* sh: Make 'hash' return 1 if at least one utility is not found.jilles2012-02-111-0/+6
| | | | Reported by: lme
* More mdconfig(8) tests.trasz2012-01-261-0/+39
|
* Move mdconfig(8) tests under regression/sbin/, where they belong.trasz2012-01-253-0/+0
| | | | Submitted by: jh@
* Add some basic regression tests for mdconfig(8).trasz2012-01-243-0/+568
|
* sh: Fix $? in the first command of a 'for'.jilles2012-01-222-0/+17
| | | | | | In the first command of a 'for', $? should be the exit status of the last pipeline (command substitution in the word list or command before 'for'), not always 0.
* These tests check whether the compiler evaluates floating-pointdas2012-01-203-0/+293
| | | | | | | | | | | | | | expressions properly. Some of the tests depend on the compiler implementing C99's FENV_ACCESS pragma, and only commercial compilers do; those tests are currently skipped. If any of the enabled tests fail, then odds are the libm regression tests will fail also. This should make it easier to diagnose reported problems on platforms I don't have. Currently, gcc passes all the tests that don't depend on FENV_ACCESS on amd64 and sparc64. Clang fails a few on amd64 (see clang bug 11406). Both gcc and clang fare poorly on i386, which has well-known issues.
OpenPOWER on IntegriCloud