Commit Graph

216959 Commits

Author SHA1 Message Date
martin 3a6917eb92 Disable ICBOPT_FAST_POST for ISP 2100.
Fixes PR kern/47302. From Matthew Jacob.
2013-02-27 09:29:21 +00:00
christos 46f24da1d2 add a new rpc test 2013-02-26 17:08:20 +00:00
christos d7abae09ac Add a test for the rpc getaddr bug lib/13082.
Timeout added, but it needs rpcbind to be running to succeed.
2013-02-26 17:06:55 +00:00
christos 7ecc2916f6 PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.
2013-02-26 16:33:57 +00:00
jmmv 63c0fb4108 Cherry-pick upstream change 70aefdbe5b843d6b24b5a9b816e47f2fb026dde2:
Properly handle tabs when parsing config files

Backslashes within [] in a regexp don't have any meaning, so [ \t]
did not have the intended effect of being evaluated to a space and
a tab.  Fix this by writing an actual tab in the regexp.

Problem found by Valeriy E. Ushakov.
2013-02-26 15:23:19 +00:00
msaitoh 2fc0660020 Add some bugfixes and enhancement from FreeBSD:
- Workaround for BCM5906 silicon bug. When auto-negotiation results in
 half-duplex operation, excess collision on the ethernet link may cause
 internal chip delays that may result in subsequent valid frames being
 dropped due to insufficient receive buffer resources.
 (FreeBSD: r214219, r214251, r214292)

- Allow write DMA to request larger DMA burst size to get better
 performance on BCM5785.
 (FreeBSD r213333: OpenBSD 1.294)

- Enable TX MAC state machine lockup fix for both BCM5755 or higher
 and BCM5906. Publicly available data sheet just says it may happen
 due to corrupted TxMbuf.
 (FreeBSD r214216)

- Follow Broadcom datasheet:
 Delay 100 microseconds after enabling transmit MAC.
 Delay 10 microseconds after enabling receive MAC.
 (FreeBSD r241220)
2013-02-26 11:06:23 +00:00
msaitoh f8a310f89b Use macro. Remove extra semicolon. No functional change. 2013-02-26 11:03:17 +00:00
christos 9208117e65 PR/45042: Thomas Cort: HAVE_foo for setrlimit(2) and setpgid(2) 2013-02-26 00:45:27 +00:00
jmmv f2f2e0cf47 Cherry-pick upstream change d0daf9983f5a0e635f1127dbc827aa114daa90d8:
Fix broken variable parsing with NetBSD's /bin/sh

Quote the expansion of a $() command that was not properly surrounded
by quotes so that this runs properly with NetBSD's /bin/sh.
2013-02-25 18:49:51 +00:00
apb 6cee3c7cf5 Explain what PTHREAD__COMPAT is for. This comment in
src/libpthread/Makefile is adated from a comment in
src/doc/CHANGES.prev.
2013-02-25 17:04:46 +00:00
mhitch 421f8ba1fb Bump size of image. 2013-02-25 16:52:57 +00:00
matt f8291815d6 Bump max text/data/stack sizes to more reasonable values. 2013-02-25 16:12:13 +00:00
jmmv 82977e8c6a Provide Kyua instructions in tests(7) when MKKYUA!=no.
I was first going to do this by doing automatic replacements of special
macros within the tests.7 file, but that turned out to be too complex
and confusing.

Instead, just rename the previous tests.7 to tests.atf.7 and add a new
tests.kyua.7 file.  Choose which one to install as tests(7) depending on
the MKKYUA knob.
2013-02-25 02:02:41 +00:00
dholland 21fc2b5d09 Fix obvious typo. 2013-02-25 01:57:14 +00:00
msaitoh 1b516b1c13 Use macro. Remove duplicated macro. Remove unused variable.
No functional Change.
2013-02-25 00:36:22 +00:00
jmmv d2c8856410 Note new import of kyua-atf-compat, version 0.1. 2013-02-25 00:34:52 +00:00
jmmv b82c36bd08 Update file lists to reflect the import of kyua-atf-compat, which has the
side-effect of marking several atf-related entries as obsolete (when
MKKYUA!=no).
2013-02-25 00:34:13 +00:00
jmmv 58ac8c454c Run tests in kyua-atf-compat if MKKYUA!=no. 2013-02-25 00:33:19 +00:00
jmmv 48b2f2c970 Add new directories for kyua-atf-compat. 2013-02-25 00:31:51 +00:00
jmmv 9c3a2b4adc Do not bother installing any XML calatog when MKKYUA!=no. We won't need
these any more, and we can possibly get rid of the directory altogether
at a later point.
2013-02-25 00:23:01 +00:00
jmmv 8c23905fbe Do not install atf-config, atf-report, atf-run nor atf-version when
MKKYUA!=no.  The newly imported kyua-atf-compat module provides a
backwards-compatibility implementation of atf-report and atf-run
based on kyua(1).
2013-02-25 00:22:10 +00:00
jmmv 1a338a3807 Descend into kyua-atf-compat when MKKYUA!=no. 2013-02-25 00:21:04 +00:00
jmmv 3bca2a4367 Add reachover build files for kyua-atf-compat. 2013-02-25 00:20:08 +00:00
jmmv b92cbc7321 Initial import of kyua-atf-compat, version 0.1:
This is the last component of the import of Kyua and its build will be
guarded by the MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-atf-compat, provides tools to ease the transition from
ATF to Kyua.  In particular, this includes a tool to convert Atffile
files to Kyuafile files in an automated manner, and drop-in replacement
wrappers for both atf-run and atf-report.
2013-02-25 00:17:26 +00:00
dholland b3e2273034 typo in comment 2013-02-25 00:15:09 +00:00
christos 34b0d22580 While it is nice to have the same function do both the upper case and
lower case conversion, it ends up eating 4% of the total time we spend
in make calling tolower() while building libc.
2013-02-24 19:43:37 +00:00
matt 1c06d41d98 Initialize t_softc. 2013-02-24 06:21:36 +00:00
matt b1b902384f Add a t_softc member to struct tty in which a driver can store a pointer
to its softc.  (analogous to if_softc in struct ifnet).
2013-02-24 06:20:24 +00:00
jmmv b02153e645 Install kyua-testers' distribution documents.
(Followup to my previous commit as I forgot to include these new files.)
2013-02-24 03:12:59 +00:00
jmmv 47840f72d0 Install a kyua.conf file that sets unprivileged_user to _tests. 2013-02-24 03:06:13 +00:00
jmmv 7c357179a8 Remove duplicate (and possibly invalid) 'atf' tags from 3 tests. 2013-02-23 22:56:46 +00:00
jmmv 704facb580 Autogenerate Kyuafiles next to Atffiles when MKKYUA is set.
This is suboptimal: the current high-level definitions of test programs
in the Makefiles do not carry enough information to support all the
features of Kyuafiles.  For example, it is not possible to register test
programs that do *not* use the ATF libraries, which is something that
has been frequently requested around here; nor it is possible to attach
arbitrary metadata to test programs from the Makefile, which is handy
particularly for ATF-less test programs.

For these reasons, consider this a transitional step.

Note that, with this change, you should now be able to use the 'kyua'
tool to run the tests in /usr/tests.
2013-02-23 22:01:51 +00:00
jmmv 5b7eb38d00 Stop assuming that test programs and directories are the same thing during
Atffile generation.

This is needed to be able to generate Kyuafiles (coming later), as these
clearly differentiate between the definition of test programs and the
recursion into other subdirectories (or files).

In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and
change the logic in bsd.test.mk to keep track of subdirectories aside from
_TESTS when creating the Atffile.
2013-02-23 21:20:14 +00:00
jmmv 8faee98977 Cherry-pick upstream commit 9f81e6f6fece7f7e26643022a5efb93c3595e9bc:
Escape backslashes in test metadata

The previous code in kyua-atf-tester escaped single quotes in the
metadata of test cases so that those single quotes did not yield
invalid Lua strings in the output of the tester.

It turns out we also need to escape backslashes for things to work
properly.  Backslashes also have special meaning within Lua strings.

Found while running the NetBSD test suite.  In particular, the
lib/libc/gen/t_fnmatch test program had the '\'' sequence in the
description of a test and this made the test program be reported
as bogus.
2013-02-23 21:04:28 +00:00
jkunz bf9547b278 Contribution from Petri Laakso:
- Support for passing kernel arguments.
- entropy_init() removed as OLINUXINO doesn't generate entropy bits without
  user interaction.
- FIFO contents are flushed when DEBUG is enabled.
2013-02-23 16:22:38 +00:00
jmmv edcb14a44e Install kyua-testers' distribution documents. 2013-02-23 14:58:11 +00:00
jmmv 896042bdc6 Reword entry about the import of kyua-testers-0.1 to use kyua(1) as the
affected component name.
2013-02-23 14:24:56 +00:00
jmmv 649684dbb8 Note new import of kyua-cli, version 0.6. 2013-02-23 14:24:12 +00:00
jmmv 9f60280349 Register kyua-cli into the Atffile when MKKYUA!=no. 2013-02-23 14:22:24 +00:00
jmmv 0d18479af7 Descend into kyua-cli when MKKYUA!=no. 2013-02-23 14:18:52 +00:00
jmmv 89e4f17129 Register directories and files provided by kyua-cli. 2013-02-23 14:18:36 +00:00
jmmv ba65fde2d7 Add reachover build files for kyua-cli. 2013-02-23 14:16:49 +00:00
christos 964e4f5784 fix restart from anon ymous 2013-02-23 13:47:36 +00:00
jmmv 6b3a42af15 Initial import of Kyua CLI, version 0.6:
This is the main component of Kyua and its build will be guarded by the
MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-cli, provides the command-line interface to the Kyua
runtime system.  The major purpose of this tool is to run test cases and
generate unified reports for their results.
2013-02-23 12:34:03 +00:00
skrll f6d9352985 aprintf -> aprint_normal 2013-02-23 08:23:03 +00:00
skrll e8bfd11bc4 Consistently use the macros to get softc, dxfer, etc. 2013-02-23 08:22:05 +00:00
christos 5c9f984d44 inet & inet6 == wrong
(inet | inet6) == right
2013-02-22 15:59:14 +00:00
jmmv 9c6c1d3b56 Install lutok's missing test_utils.hpp header file. 2013-02-22 15:14:29 +00:00
plunky 70aa4411eb since /etc/rc.d/network now prints messages about DAD
to the console during boot, lets provide a hint what it
is:

    duplicate address detection
2013-02-22 08:19:50 +00:00
msaitoh d0be26799f Style change. It's mainly intended to reduce the diff between Fx and Nx. 2013-02-22 06:11:17 +00:00