summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.]
* correct copyright attribution; there was no copyright in the patchessam2007-04-092-2/+4
| | | | | | from Andrea so I assigned him ownership; this corrects that Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
* Due to the recent "aircrack-ptw" WEP cracking discovery, I thoughtsam2007-04-084-163/+909
| | | | | | | | | | | | | | that it might be worth fixing a couple of bugs in wesside and making it use the new cracking technique. I think this enhancement makes the tool quite usable. It is possible to recover keys in only a couple of minutes. * Fix ACKs. Firmware will ACK data [just set the MAC addr correctly]. * Fix RX routines. Process all packets read(). * Use aircrack-ptw [built-in] rather than external aircrack. * Log data in pcap format so that it may be used by others [e.g. aircrack-ng]. Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
* Add a small test program for the additional socket options whichbms2007-04-062-0/+231
| | | | RFC 3678 (Source-specific Multicast API) brings to FreeBSD.
* Connect ZFS to the build.pjd2007-04-062-0/+33
|
* 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
* Overhaul driver/subsystem api's:sam2007-03-212-20/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o make all crypto drivers have a device_t; pseudo drivers like the s/w crypto driver synthesize one o change the api between the crypto subsystem and drivers to use kobj; cryptodev_if.m defines this api o use the fact that all crypto drivers now have a device_t to add support for specifying which of several potential devices to use when doing crypto operations o add new ioctls that allow user apps to select a specific crypto device to use (previous ioctls maintained for compatibility) o overhaul crypto subsystem code to eliminate lots of cruft and hide implementation details from drivers o bring in numerous fixes from Michale Richardson/hifn; mostly for 795x parts o add an optional mechanism for mmap'ing the hifn 795x public key h/w to user space for use by openssl (not enabled by default) o update crypto test tools to use new ioctl's and add cmd line options to specify a device to use for tests These changes will also enable much future work on improving the core crypto subsystem; including proper load balancing and interposing code between the core and drivers to dispatch small operations to the s/w driver as appropriate. These changes were instigated by the work of Michael Richardson. Reviewed by: pjd Approved by: re
* Rename sed.test to multitest.t to comply with the naming scheme ofdds2007-03-142-473/+1
| | | | the regression suite.
* Reinstate error-testing regression tests.dds2007-03-1433-78/+107
|
* Integrate the tests I wrote in 1992 with our current regressiondds2007-03-143-130/+111
| | | | testing framework and protocol.
* Reference results for sed.test (to be renamed into multitest.t).dds2007-03-1490-0/+4210
| | | | | | | | | I have verified these with GNU sed 4.1.5 (and in some cases with Solaris sed) and they are identical, with the following exceptions: 5.3: The result is unspecified and BSD sed behaves differently. 6.3: GNU sed gets it wrong 7.1: GNU sed gets it wrong 7.8: BSD sed gets it wrong
* - Uncomment tests that were commented outdds2007-03-142-172/+84
| | | | | - Update platform-conditional tests to reflect current reality - Fix conditional for test 7.8: it is the fault of BSD sed
* - It looks like BSD and GNU sed can nowadays pass two more tests.dds2007-03-142-14/+8
| | | | - Test 7.8 fails for GNU sed not BSD.
* Use another non-printing test; address 0 now has a special meaning in GNU sed.dds2007-03-142-4/+4
|
* Document a procedure for testing individual binaries under development.dds2007-03-141-0/+6
|
* Update tests to reflect the state of the art of sed in HEAD anddds2007-03-142-90/+38
| | | | | | GNU sed 4.1.5. Almost all of the tests that were skipped for BSD or GNU sed now appear to work.
* Add sed math regression test.dds2007-03-142-1/+3
|
* Add Towers of Hanoi regression test.dds2007-03-142-1/+19
|
* Add missing newline to correct failure of the regression test.dds2007-03-141-1/+1
| | | | | | | | | According to IEEE Std 1003.1, 2004 "Whenever the pattern space is written to standard output or a named file, sed shall immediately follow it with a <newline>." An attempt at the same correction might have been made with r1.3, which is however identical with r1.2.
* Add raw IP support (protocol 114) to ipbroadcast regression test.bms2007-03-131-3/+19
|
* Add ncursesw, libelf, and libalias profiling librariesrafan2007-03-111-0/+21
| | | | Approved by: delphij (mentor)
* Add -A to specify local address for bind().bms2007-03-081-14/+24
|
* Support IP_SENDIF in -CURRENT.bms2007-03-081-10/+68
|
* Put this old tool for dumping PCI expansion ROM images somewhere useful.bms2007-03-023-0/+422
| | | | | WARNING: THIS IS NOT STABLE ON NON-I386 ARCHITECTURES, AND NEEDS SPECIFIC KNOWLEDGE OF THE ADDRESS SPACE ON YOUR SYSTEM TO WORK.
* Add -t to set IP TTL.bms2007-03-011-3/+19
|
* Introduce a test program for IPv4 broadcast datagram send.bms2007-03-012-0/+276
|
* Add a regression test for ethernet link-layer multicast memberships.bms2007-02-252-0/+263
|
* Add 's' after printing the send interval to make it clear it's a sendrwatson2007-02-081-1/+1
| | | | interval.
* Allow to use umastat on coredumps.pjd2007-02-061-3/+24
| | | | Reviewed by: rwatson
* For the IPv4 multicast membership socket regression test:bms2007-02-021-12/+58
| | | | | | Add command line flags to increase the number of test iterations. Be deterministic by default, for automated operation. Better document assumptions.
* create empty opt_ah.h for compiling athstats.o; it just needssam2007-02-021-0/+8
| | | | | the PHY definitions and not the descriptor so it doesn't matter if it's correct relative to the hal.o
* Remove old libmytinfo link.rafan2007-02-011-0/+1
| | | | | Approved by: delphij (mentor) Requested by: ache
* Simple README file which shows how to use fstest.pjd2007-01-281-0/+22
|
* Replace the GNU gzip with a slightly modified NetBSD gzip. Thedelphij2007-01-262-0/+5
| | | | | | | | | | | | | | | | | | | | | NetBSD version is a feature-to-feature re-implementation of GNU gzip using the freely-redistributable zlib and this version is expected to be mostly bug-to-bug compatible with the GNU implementation. - Because this is a piece of mature code and we want to make changes so it is added directly rather than importing to src/contrib. - Connect newly added code to src/usr.bin/ and rescue/rescue build. - Disconnect the GNU gzip code from build for now, they will be eventually removed completely. - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and WITHOUT_BZIP2. Tested by: kris (full exp-7 pointyhat build) Approved by: core (importing a 4-clause BSD licensed file) Approved by: re (adding new utility during -HEAD code slush)
* MFp4: - When new object is created, it's group ID can be set to process'pjd2007-01-253-7/+39
| | | | | | effective group ID or to group ID of its parent directory. - Add some comments from POSIX. - Verify that after successful O_TRUNC open, size is equal to 0.
* MFp4: When user is not a member of the group which owns a file, even ifpjd2007-01-251-2/+2
| | | | | | he is the file's owner, he can't set set-gid bit. POSIX requires to return 0 and clear the bit, but FreeBSD returns EPERM for UFS in such case. For now do the same in ZFS.
* - Add a horrible bit of code to detect tsc differences between processors.jeff2007-01-241-28/+112
| | | | | | | | | | | | | | | | | | | This only works if there is no significant drift and all processors are running at the same frequency. Fortunately, schedgraph traces on MP machines tend to cover less than a second so drift shouldn't be an issue. - KTRFile::synchstamp() iterates once over the whole list to determine the lowest tsc value and syncs adjusts all other values to match. We assume that the first tick recorded on all cpus happened at the same instant to start with. - KTRFile::monostamp() iterates again over the whole file and checks for a cpu agnostic monotonically increasing clock. If the time ever goes backwards the cpu responsible is adjusted further to fit. This will make the possible incorrect delta between cpus as small as the shortest time between two events. This time can be fairly large due to sched_lock essentially protecting all events. - KTRFile::checkstamp() now returns an adjusted timestamp. - StateEvent::draw() detects states that occur out of order in time and draws them as 0 pixels after printing a warning.
* - Print clock information so we know if something is not reported correctlyjeff2007-01-231-7/+7
| | | | | | | | | | from the tsc. - Set skipnext = 1 for yielding and preempted events so we don't show the event that adds us back to the run queue. It used to be 2 so we would skip the ksegrp run queue addition and the system run queue addition but the ksegrp run queue has gone away. - Don't display down to nanosecond resolution for scheduling events right now. This can sometimes cause a division by zero.
* Add 3436 file system regression tests in 184 files.pjd2007-01-17189-0/+7978
| | | | | | | | | | | | | | | | | Almost all regression tests are based on very flexible fstest tool. They verify correctness (POSIX conformance) of almost all file system-related system calls. The motivation behind this work is my ZFS port and POSIX, who doesn't provide free test suites. Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS To try it out: # cd fstest # make # find tests/* -type d | xargs prove
* Ignore EINPROGRESS error on TCP connect(), and pick up the result of therwatson2007-01-121-4/+23
| | | | | | | non-blocking connect later using select(). This case didn't trigger on my UP test box, but did on Peter's SMP test box. Spotted by: peter
* Add a regression test for sending and writing zero bytes to sockets ofrwatson2007-01-122-0/+278
| | | | | | | | | | | various types, as well as pipes and fifos for good measure. RELENG_6 currently passes all of these tests, but 7-CURRENT fails 0-byte writes and sends on all stream socket types (and fifos, as they are based on stream sockets). Bumped into by: peter Diagnosed by: jhb Problem of: andre
* Fix typos.joel2007-01-121-3/+3
|
OpenPOWER on IntegriCloud