summaryrefslogtreecommitdiffstats
path: root/tools/regression
Commit message (Collapse)AuthorAgeFilesLines
* Add a regression test for pthread_mutex_islocked_np().des2008-02-032-0/+85
| | | | MFC after: 2 weeks
* Add unix_sorflush, a regression test for the following scenario:rwatson2008-01-302-0/+106
| | | | | | | | | | | | - Process (a) is blocked in read on a socket waiting on data. - Process (b) is blocked in shutdown() on a socket waiting on (a). - Process (c) delivers a signal to (b) interrupting its wait. When the signal is delivered, the kernel panics as sblock() fails in sorflush(). Even if it didn't panic, shutdown() would block potentially indefinitely waiting for recv() to succeeded. Fixes to follow. Reported by: Jos Backus <jos at catnook dot com>
* expm1(-big) generates an inexact exception but not underflow.das2008-01-181-1/+1
|
* Add some regression tests for libm's exponential functions. Thesedas2008-01-183-1/+181
| | | | | | | mostly just test corner cases rather than accuracy. Some of the tests don't pass right now if you compile libm at -O2 due to gcc constant-folding some things that it shouldn't. I'll fix that shortly.
* Add a set of regression tests for the POSIX shm API (shm_open(2) andjhb2008-01-165-0/+828
| | | | shm_unlink(2)).
* Tests for lrintl() and llrintl(). I didn't add anything speciallydas2008-01-141-5/+22
| | | | | tailored for the long double format; instead, I just modified the existing tests to test lrintl() and llrintl() as well.
* Attach the tr(1) regression tests to the build.keramida2008-01-131-1/+1
| | | | Approved by: das, dds
* Add a new set of regression tests, for the tr(1) utility.keramida2008-01-1317-0/+97
| | | | Approved by: das, dds
* Add regression tests for UNIX domain socket garbage collection. Should berwatson2007-12-312-0/+770
| | | | | run from single-user mode, as they look at global open file and inflight descriptor counts to check for leaks.
* Update the number of reported tests to keep prove(1) happy.dds2007-12-191-1/+1
|
* Correct the "move file from directory to existing directory" test fordds2007-12-191-1/+1
| | | | cross-device moves.
* Portability improvements to investigate behavior of other OSs.dds2007-12-181-4/+4
| | | | Now works under Solaris and Linux.
* Add more tests. All rename(2)-based tests now succeed.dds2007-12-181-1/+78
| | | | The performance of the cross-device equivalents is under investigation.
* Fix an amusing typo that has prevented this from compiling since 2004.das2007-12-161-7/+7
|
* Don't try the long double tests on i386. Our reduced precisiondas2007-12-161-1/+1
| | | | can cause them to fail.
* Remove another Alpha remnant.das2007-12-161-1/+0
|
* Regression tests for nan{,f,l}().das2007-12-163-1/+133
|
* Verify that the moved source is no longer there.dds2007-12-161-0/+26
|
* Regression tests for upcoming makeup of mv.dds2007-12-163-0/+203
| | | | Case 20 corresponds to PR bin/118367.
* Make the reported number of tests match their actual number.dds2007-12-161-1/+1
| | | | This fixes the reporting under prove(1)
* cd to the correct directory so that the tests can be run from prove(1)dds2007-12-161-0/+1
|
* Regression tests for csqrt(3).das2007-12-153-1/+306
|
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)das2007-12-091-4/+0
|
* Fixes to avoid overzealous constant folding.das2007-12-091-13/+15
|
* gcc 4 does some overzealous constant folding, and since it doesn'tdas2007-12-091-1/+6
| | | | | support FENV_ACCESS, that was causing this test to fail. Use a volatile to avoid the constant folding.
* Make sure we set the locale to "C" when testing thousands' separatordas2007-12-031-2/+2
| | | | | support, rather than just "", which refers to the system default based on the environment.
* Tests for rounding, and for the leading 0's bug.das2007-12-031-1/+13
|
* Convert errx(-1, ..., strerror(errno)) to err(-1, ...).bz2007-11-281-8/+8
| | | | Discussed with: rwatson
* Add support for tcpmd5 tests.bz2007-11-282-13/+63
| | | | | | | | | | Add README.tcpmd5 to describe how to build a simple test setup and run tests. Convert compile time options to run time options [1]. Discussed with: rwatson Suggested by: rwatson [1]
* Remove empty setup and cleanup functions for the pfkey test.bz2007-11-164-6/+268
| | | | | | | | | | | Add regression tests for privileged and supposedly unprivileged IP_IPSEC_POLICY,IPV6_IPSEC_POLICY setsockopt cases. We may need to review the current 'good' results to make sure they reflect what we really want. Discussed with: rwatson Reviewed by: rwatson
* In sys/netipsec/keysock.c rev. 1.19 a missing priv check was added.bz2007-11-134-0/+93
| | | | | | | Before that non-su users were able to open pfkey sockets as well. Add a regression test so we can detect such problems in an automated way in the future.
* Hide geli warnings about sector size beeing bigger than the page size whenpjd2007-10-267-7/+7
| | | | doing regression testing.
* The exit status of a case statement where none of the patterns is matchedstefanf2007-10-041-0/+13
| | | | | | | | is supposed to be 0, not the status of the previous command. Reported by: Eygene Ryabinkin PR: 116559 Approved by: re (gnn)
* Enhance and expand kernel privilege regression tests in support ofrwatson2007-09-0942-2212/+3850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | work present in FreeBSD 7.0 to refine the kernel privilege model: - Introduce support for jail as a testing variable, in order to confirm that privileges are properly restricted in the jail environment. - Restructure overall testing approach so that privilege and jail conditions are set in the testing infrastructure before tests are invoked, and done so in a custom-created process to isolate the impact of tests from each other in a more consistent way. - Tests now provide setup and cleanup hooks that occur before and after the test runs. - New privilege tests are now present for several audit privileges, several credential management privileges, dmesg buffer reading privilege, and netinet raw socket creation. - Other existing tests are restructured and generally improved as a result of better framework structure and jail as a variable. For exampe, we now test that certain sysctls are writable only outside jail, while others are writable within jail. On a similar note, privileges relating to setting UFS file flags are now better exercised, as with the right to chmod and utimes files. Approved by: re (bmah) Obtained from: TrustedBSD Project
* Add support for Camellia encryption algorithm.pjd2007-09-017-14/+21
| | | | | | PR: kern/113790 Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp> Approved by: re (bmah)
* New regression test updates for rename, etc.delphij2007-08-103-6/+58
| | | | | Obtained from: NetBSD Approved by: re (tmpfs blanket)
* Add regression tests for flopen(3).des2007-08-033-1/+189
| | | | Approved by: re (blanket)
* Added environ-replacement detection. For programs that "clean" (i.e., su)scf2007-07-203-34/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | or replace (i.e., zdump) the environment after a call to setenv(), putenv() or unsetenv() has been made, a few changes were made. - getenv() will return the value from the new environ array. - setenv() was split into two functions: __setenv() which is most of the previous setenv() without checks on the name and setenv() which contains the checks before calling __setenv(). - setenv(), putenv() and unsetenv() will unset all previous values and call __setenv() on all entries in the new environ array which in turn adds them to the end of the envVars array. Calling __setenv() instead of setenv() is done to avoid the temporary replacement of the '=' in a string with a NUL byte. Some strings may be read-only data. Added more regression checks for clearing the environment array. Replaced gettimeofday() with getrusage() in timing regression check for better accuracy. Fixed an off-by-one bug in __remove_putenv() in the use of memmove(). This went unnoticed due to the allocation of double the number of environ entries when building envVars. Fixed a few spelling mistakes in the comments. Reviewed by: ache Approved by: wes Approved by: re (kensmith)
* Make fstest work out-of-the-box on Solaris:pjd2007-07-183-13/+34
| | | | | | | | | | - Solaris' setgroups(2) doesn't change process' effective gid, so set it explicitly. - POSIX doesn't define O_NOFOLLOW. FreeBSD returns EMLINK when target is a symbolic link, but Solaris returns ELOOP then. - Solaris doesn't define O_SHLOCK and O_EXLOCK flags. Approved by: re (rwatson)
* Add a test case for sed(1) regression - we should not ignore casedelphij2007-07-062-0/+5
| | | | | | when not being asked to do so. Approved by: re (hrs)
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.ssouhlal2007-07-043-0/+10
| | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-048-0/+702
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Fix a obsecure coredump while testing with tmpfs on amd64.delphij2007-06-261-2/+6
| | | | Approved by: re (kensmith)
* id generation is now handled by uma(9) subsystem,delphij2007-06-252-76/+0
| | | | | | | so remove the (now) irrevelent test case. Requested by: Howard Su Approved by: re (tmpfs blanket)
* - Bugs in gethostbyXXX/getipnodebyXXX regression tests fixed.bushman2007-06-242-73/+162
| | | | | | | Tests for getipnodebyXXX functions now cover most number of flags combinations. Approved by: re (kensmith), brooks (mentor)
* MFp4: Add regression tests for tmpfs.delphij2007-06-1626-0/+2521
| | | | | Obtained from: NetBSD via p4 Submitted by: Howard Su
* Make the order of tests the same for user and kernel. Use the naturalharti2007-06-141-1/+1
| | | | layer order from bottom to top.
* Add regression test for SSM code.bms2007-06-122-0/+798
|
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* Don't forget to clear out the hold space for each subsequent fileyar2007-06-121-1/+2
| | | | | | | | when in -i mode so that each file gets a clean context of its own. Add a regression test for the bug. Tested with: regression tests
OpenPOWER on IntegriCloud