summaryrefslogtreecommitdiffstats
path: root/tools/regression
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Updated tests for changed features.grog2007-06-0924-10/+68
| | | | Submitted by: edwin@
* Use correct comment syntax for $FreeBSD$. This file gets put throughgrog2007-06-041-1/+5
| | | | | | cpp, not a shell script. Pointy hat to: grog
* Add regression tests for calendar.grog2007-06-0319-1/+461
| | | | | | Submitted by: edwin@ PR: bin/113275 MFC after: 2 weeks
* Add sparc64 regression test files.dds2007-05-2410-0/+134
| | | | Submitted by: Carl Johan Gustavsson
* Modify file generation instructions to remove the tty field:dds2007-05-241-1/+2
| | | | | the mapping from number to name differs between systems, and will cause tests to fail.
* Fix the procedure for generating the test summary files.dds2007-05-231-5/+14
| | | | Document the procedure for obtaining an appropriately old version of sa.
* Regression tests for sparc64 record formats.dds2007-05-222-0/+0
| | | | Submitted by: Carl Johan Gustavsson
* Regression tests for amd64 file and record formats.dds2007-05-2212-0/+118
| | | | Submitted by: Larry Rosenman (who also provided access to a testing host)
* Regression tests for the new and legacy process accounting formats.dds2007-05-2221-1/+361
|
* Document the .in .out file naming conventions adopted in commit_prep.pl'sdds2007-05-221-0/+5
| | | | exclusions list for header checking.
* Test the integer-arithmetic float conversions encode_timeval and encode_longdds2007-05-223-0/+157
| | | | in kern_acct.c.
* Add regression tests for ethers(3) functions, including new _r variants.rwatson2007-05-133-1/+246
| | | | | | | | | | Four tests currently fail: test_ether_line_bad_1() and test_ether_line_bad_2() due to bugs in ether_line(3). test_ether_ntohost() and test_ether_hostton() due to not being fully implemented tests.
* Add a regression test to detect if waiting on the I/O serialization lockrwatson2007-05-062-0/+216
| | | | | | | on socket buffers is interruptible or not, which detacts the regression I introduced recently in 7-CURRENT (spotted by alfred). This test passes in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and sblock fix patches.
* Regression tests for recent changes to inet6_rth_* family of functionsmtm2007-04-214-0/+556
| | | | regarding RFC3542 compliance.
* Change the semantics of -i (in-place editing) so that it treatsyar2007-04-211-1/+35
| | | | | | | | | | | | | | | | | each file independently from other files. The new semantics are desired in the most of practical cases, e.g.: delete lines 5-9 from each file. Keep the previous semantics of -i under a new option, -I, which uses a single continuous address space covering all files to edit in-place -- they are too cool to just drop them. Add regression tests for -i and -I. Approved by: dds Compared with: GNU sed Discussed on: -hackers MFC after: 2 weeks
* Test sending 0 bytes.pjd2007-04-201-0/+6
|
* Fix length calculation.pjd2007-04-201-1/+1
|
* Valid error codes for err() and errx() are 1..255.des2007-04-192-27/+29
| | | | The correct format specifier for ssize_t is %zd.
* Add more tests to verify last sendfile(2) breakage: test sending morepjd2007-04-191-3/+38
| | | | than a page size and nbytes=0.
* Committing regression tests for all implemented nsswitch databases.bushman2007-04-1520-0/+5390
| | | | | | | Detailed description and instructions are in the README file. This work had been basically done during GSoC 2006. Approved by: brooks (mentor)
* Nuke ipblock. A more complete multicast regression test suite is on the way.bms2007-04-122-231/+0
|
* Fix a bug whereby group addresses were incorrectly computed in the test.bms2007-04-091-2/+2
| | | | | | [Since the change to strict refcounting for in_multi objects, this test began to fail; formerly the refcount was a count of the number of requests for a given address, NOT a count of pointers to the object.]
* Add a small test program for the additional socket options whichbms2007-04-062-0/+231
| | | | RFC 3678 (Source-specific Multicast API) brings to FreeBSD.
* Fix a fd leak in socketpair():jhb2007-04-021-0/+33
| | | | | | - Close the new file objects created during socketpair() if the copyout of the new file descriptors fails. - Add a test to the socketpair regression test for this edge case.
* Add another fd leak test for accept() I used to test the fix in 1.234 ofjhb2007-04-021-1/+83
| | | | sys/kern/uipc_syscall.c.
* Logically separate the complex `hanoi' and `math' tests from basic tests.yar2007-04-021-2/+3
|
* Don't forget to close the range if we branched over its endyar2007-04-022-1/+6
| | | | | | | | | | | | | and had no chance to match it by the 2nd address precisely. Otherwise the unclosed range would bogusly extend to the end of stream. Add a basic regression test for the bug fixed. (This change also fixes the more complex case 5.3 from `multitest.t'.) Compared with: SUN and GNU seds Tested by: regression tests MFC after: 1 week
* Today SUN and GNU seds fully agree on test 5.3 and behaveyar2007-04-022-13/+1
| | | | | | in a more reasonable way than BSD sed does: they properly close the range even if we branched over its end. No doubt, the range `1,5' should not match lines from 9 through 14.
* This trivial change should fix at least 3 similar bugs. All ofyar2007-04-015-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | them are related to the `c' function's need to know if we are at the actual end of the address range. (It must print the text not earlier than the whole pattern space was deleted.) It appears the only sed function with this requirement. There is `lastaddr' set by applies(), which is to notify the `c' function, but it can't always help because it's false when we are hitting the end of file early. There is also a bug in applies() due to which `lastaddr' isn't set to true on degenerate ranges such as `$,$' or `N,$' if N appears the last line number. Handling early EOF condition in applies() could look more logical, but it would effectively revert sed to the unreasonable behaviour rev. 1.26 of main.c fought against, as it would require lastline() be called for each line within each address range. So it's better to call lastline() only if needed by the `c' function. Together with this change to sed go regression tests for the bugs fixed (c1-c3). A basic test of `c' (c0) is also added as it helped me to spot my own error. Discussed with: dds Tested by: the regression tests MFC after: 1 week
* Adding tests for Camellia which will be added to the tree soon.gnn2007-03-262-2/+14
| | | | Added tests for aes-ctr which were not present before.
* Update the regression test so that there are actually two independentgnn2007-03-241-13/+12
| | | | | | networks involved, as opposed to two hosts on one network. MFC after: 1 week
* Add a test for IPv6 and IPsec which is similar to the one for IPv4.gnn2007-03-212-0/+108
| | | | | Add comments to the test for IPv4 with IPsec. MFC after: 1 week
OpenPOWER on IntegriCloud