summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Use portable string comparisonemaste2013-06-131-1/+1
| | | | | We support == in /bin/sh now, but it ought to be avoided, and my use of it was accidental.
* Handle options that override other optionsemaste2013-06-101-5/+18
| | | | | | This is a workaround for WITH_LDNS_UTILS forcing BIND_UTILS off. It can be reverted when we no longer have these conflicting options, or made more general if we grow more cases like this.
* Fix some bugs in the complex trig tests so that they test both doubledas2013-06-101-33/+68
| | | | and float precision properly.
* Add freebsd-update.conf(5) to OptionalObsoleteFiles.incgjb2013-06-091-0/+1
| | | | | | PR: 179437 Approved by: kib (mentor) MFC after: 1 week
* Add testing utility for behavior of atomic ops.ed2013-06-082-0/+135
| | | | | | | This small utility performs a sequence of atomic operations with random parameters on an atomic variable. For every type, we also create 16 variables, to ensure that we test the correctness at different alignments.
* Add a new knob WITH_DEBUG_FILES to control the building of standaloneemaste2013-06-071-0/+7
| | | | | | | | | | | | | | | | debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are now named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Thanks to everyone who contributed changes, review, and testing during development.
* Switch to 2-clause license and standard textemaste2013-06-061-18/+11
| | | | Approved by: bms@
* sh: Return status 127 for unknown jobs in wait builtin.jilles2013-06-052-0/+8
| | | | | | | | | | This is required by POSIX, at least for pids that are not known child processes. Other problems with job specifications still cause wait to abort with exit status 2. PR: 176916
* sh: Allow multiple operands in wait builtin.jilles2013-06-051-0/+7
| | | | | | | | This is only part of the PR; the behaviour for unknown/invalid pids/jobs remains unchanged (aborts the builtin with status 2). PR: 176916 Submitted by: Vadim Goncharov
* new features (mostly for testing netmap capabilities)luigi2013-06-051-38/+63
| | | | | | | | | | | | | + pkt-gen -f rx now remains active even when traffic stops Previous behaviour (exit after 1 second of silence) can be restored with the -W option + the -X option does a hexdump of the content of a packet (both tx and rx). This can be useful to check what goes in and out. + the -I option instructs the sender to use indirect buffers (not really useful other than to test the kernel module in the VALE switch)
* Add RX STBC statistics.adrian2013-06-041-2/+5
|
* Match the options of the kernel.obrien2013-06-043-17/+54
|
* Add libiconv based versions of *c16*() and *c32*().ed2013-06-032-0/+75
| | | | | | | | | | | | | I initially thought wchar_t was locale independent, but this seems to be only the case on Linux. This means that we cannot depend on the *wc*() routines to implement *c16*() and *c32*(). Instead, use the Citrus libiconv that is part of libc. I'll see if there is anything I can do to make the existing functions somewhat useful in case the system is built without libiconv in the nearby future. If not, I'll simply remove the broken implementations. Reviewed by: jilles, gabor
* Add more tests for log functions. A few are commented out because thedas2013-06-031-1/+114
| | | | | | long double versions don't pass yet. (They are rather nit-picky cases, so there's ongoing discussion with Bruce about whether it is worth the performance cost.)
* Factor out some common code from the libm tests. This is a bit messydas2013-06-0215-628/+412
| | | | | | | | because different tests have different ideas about what it means to be "close enough" to the right answer, depending on the properties of the function being tested. In the process, I fixed some warnings and added a few more 'volatile' hacks, which are sufficient to make all the tests pass at -O2 with clang.
* This test is working now, so remove it from NOTWORK.markj2013-06-021-1/+0
|
* test: Remove -ntXY and -otXY primaries.jilles2013-05-311-64/+1
| | | | | | | | | | | | | | | This reverts commit r247274. As maintainer of sh, I disapprove of this feature addition. It is too specific and can be done without easily using find(1) or stat(1). I will add some hints to the test(1) man page shortly. In general, FreeBSD sh is not the place to invent new shell language features. This is how it has been maintained and adding features randomly does not work with that. The new syntax (e.g. [ FILE1 -ntca FILE2 ]) looks cryptic to me.
* sh: Add test cases for break outside a loop.jilles2013-05-312-0/+19
| | | | | | In most shells (including our sh), break outside a loop does nothing with status 0, or at least does not abort. Therefore, scripts sometimes (buggily) depend on this.
* Different approach to making all compilers happy.obrien2013-05-311-2/+1
|
* Allow building with clang (which is being really stupid here...).obrien2013-05-311-0/+1
|
* Bring in a number of new features, mostly implemented by Michio Honda:luigi2013-05-302-1/+164
| | | | | | | | | | | | | | | | | | | | | | | | | - the VALE switch now support up to 254 destinations per switch, unicast or broadcast (multicast goes to all ports). - we can attach hw interfaces and the host stack to a VALE switch, which means we will be able to use it more or less as a native bridge (minor tweaks still necessary). A 'vale-ctl' program is supplied in tools/tools/netmap to attach/detach ports the switch, and list current configuration. - the lookup function in the VALE switch can be reassigned to something else, similar to the pf hooks. This will enable attaching the firewall, or other processing functions (e.g. in-kernel openvswitch) directly on the netmap port. The internal API used by device drivers does not change. Userspace applications should be recompiled because we bump NETMAP_API as we now use some fields in the struct nmreq that were previously ignored -- otherwise, data structures are the same. Manpages will be committed separately.
* add support for rate-limiting in the sender (-R ...)luigi2013-05-301-17/+139
| | | | Obtained from: Giuseppe Lettieri
* add a compile-time option to copy packets instead of doingluigi2013-05-301-3/+12
| | | | the buffer swapping.
* remove use of deprecated ioctl()luigi2013-05-302-3/+1
|
* Fix some harmless bugs in a test.das2013-05-301-2/+2
|
* Basic tests for complex inverse trig and hyperbolic functions.das2013-05-302-1/+444
|
* mdoc: silence a few mandoc lint warnings.joel2013-05-281-2/+2
|
* Fix cexp regression tests that have an infinite real part. The signs of thetijl2013-05-281-12/+26
| | | | | | | | result depend on the cosine and sine of the imaginary part. Small values are used in the new tests such that cosine and sine are well defined. Reviewed by: das
* Fix some regressions caused by the switch from gcc to clang. The fixesdas2013-05-271-19/+25
| | | | | | | | | | are workarounds for various symptoms of the problem described in clang bugs 3929, 8100, 8241, 10409, and 12958. The regression tests did their job: they failed, someone brought it up on the mailing lists, and then the issue got ignored for 6 months. Oops. There may still be some regressions for functions we don't have test coverage for yet.
* Add missing #includes, to keep Clang silent.ed2013-05-253-0/+3
|
* Implement beacon event debugging in athalq.adrian2013-05-221-0/+39
|
* Add <uchar.h>.ed2013-05-213-1/+268
| | | | | | | | | | | | The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
* BMAKE is now being built by default.delphij2013-05-211-1/+1
|
* Cleanups and markup improvements suggested by trociny and joel.brooks2013-05-201-5/+12
|
* popen(): Add 'e' mode character to set close-on-exec on the new fd.jilles2013-05-201-4/+4
| | | | | | | | | | | | | | If 'e' is used, the kernel must support the recently added pipe2() system call. The use of pipe2() with O_CLOEXEC also fixes race conditions between concurrent popen() calls from different threads, even if the close-on-exec flag on the fd of the returned FILE is later cleared (because popen() closes all file descriptors from earlier popen() calls in the child process). Therefore, this approach should be used in all cases when pipe2() can be assumed present. The old version of popen() rejects "re" and "we" but treats "r+e" like "r+".
* Add a test program for popen().jilles2013-05-202-1/+228
|
* Minor mdoc improvements.joel2013-05-161-3/+3
|
* Add a sample script to create filesystem images from an installed treebrooks2013-05-163-0/+368
| | | | created by installworld+distribution with the -DNO_ROOT option.
* Add support for an external cross compiler. The cross compiler isbrooks2013-05-151-0/+3
| | | | | | | | | | | | | | | | | | | | specified by passing the XCC, XCXX, and XCPP variables (corresponding to CC, CXX, and CPP) to buildworld/buildkernel. The compiler must be clang or be configured to target the appropriate architecture. To speed build times, if XCC is an absolute path or WITHOUT_CROSS_COMPILER is defined then no cross compiler will be built during the cross-tools stage. Limited documentation of this feature can currently be found at: https://wiki.freebsd.org/ExternalToolchain This functionality should be considered experimental and is subject to change without notice. Sponsored by: DARPA, AFRL Discussed with: imp, sjg
* Add a new option WITHOUT_FORMAT_EXTENSIONS to disable flags related tobrooks2013-05-151-0/+5
| | | | | | | checking our kernel printf extensions. This is useful to allow compilers without these extensions to build kernels. Sponsored by: DARPA, AFRL
* As python3 does not have raw_input(), convert it to input() when wehiren2013-05-131-1/+5
| | | | | | | | are using python3. PR: 177214 Reviewed by: gnn Approved by: sbruno (mentor)
* Tidy up some CVS workarounds.peter2013-05-121-2/+0
|
* Unconditionally install 210.backup-aliases as many MTAs other thaneadler2013-05-111-1/+0
| | | | | | | | sendmail support the use of /etc/aliases. PR: conf/176098 Submitted by: ak MFC after: 2 weeks
* Add simple testcases for fcntl(F_DUP2FD_CLOEXEC).jilles2013-05-111-1/+47
|
* Add simple testcases for fcntl(F_DUPFD_CLOEXEC).jilles2013-05-111-1/+23
|
* Add missing argument to fcntl(F_DUPFD) in regression test.jilles2013-05-111-2/+6
|
* Add the AR9300 descriptor decoding code.adrian2013-05-053-4/+6
|
* This is a simple script to output the delta between each TX and TXSTATUS.adrian2013-05-051-0/+34
| | | | Useful for debugging TDMA.
* Add a few xargs tests related to -0, -n and quoting.stefanf2013-05-0411-1/+71
|
* sh: Remove racy test case for read builtin.jilles2013-05-031-13/+0
| | | | | | | This test case sometimes fails because of an EINTR-related race condition. Fixing this race condition likely requires an extra system call per byte, which would make the read builtin even slower than it already is, or very complicated trickery. Therefore, remove the test case for now.
OpenPOWER on IntegriCloud