aboutsummaryrefslogtreecommitdiff
path: root/tools/test
Commit message (Collapse)AuthorAgeFilesLines
* MFC r246119:Konstantin Belousov2013-02-061-7/+25
| | | | | | | | | | | Rework the handling of the children for the pthread_vfork_test. The trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to not abandon our zombies to init(8). This way, the zombies are around slightly longer, allowing to actually exercise the logic for p_pwait use by the test. Notes: svn path=/stable/9/; revision=246405
* MFC r238374:Konstantin Belousov2012-08-292-0/+181
| | | | | | | | Add a test program, written by Stephan Uphoff, which demonstrates the deadlock due to i/o performed over the buffers backed by file mappings. Notes: svn path=/stable/9/; revision=239853
* MFC r237661:Konstantin Belousov2012-07-051-0/+8
| | | | | | | | | Add a test for number of CPUs configured/online. Approved by: re (kensmith) Notes: svn path=/stable/9/; revision=238139
* MFC r232609:Bjoern A. Zeeb2012-03-121-1/+1
| | | | | | | | | | | | | Use = rather than == for expressions to test(1) builtin(1) in sh(1) to comply with standards. On modern branches there is an undocumented alias (see r219084) but on stable/7 this is still an error. Sponsored by: Cisco Systems, Inc. Notes: svn path=/stable/9/; revision=232903
* MFC r231858:Bjoern A. Zeeb2012-03-057-0/+4708
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add regression tests scripts for multi-IP FIBs exercising the send, receive and forward path tagging packets with both the ifconfig fib option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and testing both setfib(2) as well as the SO_SETFIB socket option. At 16 FIBs a total of over 64k return codes/replies/stati are checked, sometimes multiple times (in different ways, e.g. the reflected request as well as ipfw counter values). The scripts need two or three machines to run and are thus not added to the tools/regression framework but only to tools/test. MFC r232114: Update scripts to work around two sh(1) bugs found in stable/8: 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does. 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted. Correct typos and improve some details forwarding.sh already had in initiator, esp. related to ipfw accepting if the default is deny. Add an extra stat call to the "delay" function in addition to the touch which together is still a lot faster than sleep 1 but seems to help a lot more to mitigate the unrelated kernel race seen. Sponsored by: Cisco Systems, Inc. Notes: svn path=/stable/9/; revision=232566
* MFC r231443:Konstantin Belousov2012-02-172-0/+413
| | | | | | | Add a test program for recently added ptrace(2) interfaces. Notes: svn path=/stable/9/; revision=231867
* Fix warnings and style(9) issues.Rebecca Cran2011-03-112-14/+16
| | | | | | | | | Set WARNS to 6. MFC after: 1 week Notes: svn path=/head/; revision=219511
* - Add two more iconv-related files, which were left out from previous commitGabor Kovesdan2011-02-251-0/+70
| | | | | | | Approved by: delphij (mentor) Notes: svn path=/head/; revision=219020
* Add the BSD-licensed Citrus iconv to the base system with default offGabor Kovesdan2011-02-25257-0/+1417385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009 Notes: svn path=/head/; revision=219019
* Update for the new tests.Rui Paulo2010-08-211-263/+199
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211567
* Add simple test to check the functioning of retrieval ofKonstantin Belousov2010-08-172-0/+65
| | | | | | | | | | | pagesize()/pagesizes() after change to use aux vector. Note that public function getosreldate() is different from libc-internal __getosreldate() and does not use aux to fetch osreldate value. MFC after: 1 month Notes: svn path=/head/; revision=211418
* Add a TestFloat based test suite for floating-point implementationsMarius Strobl2010-04-2441-0/+18426
| | | | | | | | | | | | | | | currently supporting sparc64. After a `make depend all` there are three programs; testsoftfloat for testing against the SoftFloat in src/lib/libc/softfloat for reference purposes, testemufloat for testing the emulator source in src/lib/libc/sparc64/fpu and testfloat for testing with the installed libc. Support for other architectures can be added as needed. PR: 144900 Submitted by: Peter Jeremy Notes: svn path=/head/; revision=207151
* This is simple testing program for revision 185647.Ganbold Tsagaankhuu2008-12-061-0/+81
| | | | | | | | | | It invokes multiple parallel threads and each thread calls vfork() system call. Approved by: kib Notes: svn path=/head/; revision=185695
* Add the DTrace test makefile for the test suite distributed in OpenSolaris.John Birrell2008-05-172-0/+456
| | | | Notes: svn path=/head/; revision=179062
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-212-2/+2
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].David E. O'Brien2004-11-192-3/+3
| | | | Notes: svn path=/head/; revision=137892
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-242-2/+2
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Add an option to write collected data to file in binary format. ThisPoul-Henning Kamp2004-03-101-1/+18
| | | | | | | is very useful for collecting test-data for trial runs. Notes: svn path=/head/; revision=126820
* Add a small program to test/measure with the RFC 2783 API for timingPoul-Henning Kamp2003-12-083-0/+231
| | | | | | | external signals. Notes: svn path=/head/; revision=123303
* Remove broken attempt to compile libc's malloc source directly; thisKelly Yancey2002-01-022-3/+12
| | | | | | | | | | | | | | | allows this tool to compile again. Albeit, now to test a new malloc implementation one has to install the new libc which may have bad consequences (i.e. if the new malloc implementation were buggy). Add logic to workaround malloc's current behaviour of returning an invalid non-NULL pointer for 0 byte allocation requests; this prevents the tool from coring during the NOPS loop. Add $FreeBSD$ tags. Notes: svn path=/head/; revision=88800
* Add $FreeBSD$.Jeroen Ruigrok van der Werven2001-10-081-0/+4
| | | | | | | Describe the other two directories in here. Notes: svn path=/head/; revision=84667
* Add a little test program to demonstrate POSIX Shared Memory Objects.Garrett Wollman2000-04-222-0/+148
| | | | Notes: svn path=/head/; revision=59498
* $Id$ -> $FreeBSD$Peter Wemm1999-08-284-4/+4
| | | | Notes: svn path=/head/; revision=50477
* Fix a couple of typos.Mike Pritchard1997-03-071-1/+1
| | | | Notes: svn path=/head/; revision=23458
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-224-4/+4
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-144-4/+4
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Update this to match my version.Poul-Henning Kamp1996-10-262-24/+21
| | | | Notes: svn path=/head/; revision=19192
* Add the test programs that I tested the /dev/random driver with.Mark Murray1995-11-044-0/+108
| | | | Notes: svn path=/head/; revision=12059
* malloc.c A program to benchmark and test malloc.Poul-Henning Kamp1995-10-153-0/+68
| | | | Notes: svn path=/head/; revision=11498
* README reads:Poul-Henning Kamp1995-10-151-0/+6
This directory is for test programs. A test program is one that will excercise a particular bit of the system and try to break it and/or measuring performance on it. Please make a subdir per program, and add a brief description to this file. Notes: svn path=/head/; revision=11495