Commit Graph

216951 Commits

Author SHA1 Message Date
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
christos
bf895aa166 mention new services/protocols 2013-02-22 03:43:55 +00:00
christos
af236c8c4f refresh from IANA 2013-02-22 03:42:06 +00:00
christos
b1baeb1ce1 remove code that did special handling for . and .. at the end of the path.
From mouse@
2013-02-21 18:17:43 +00:00
joerg
2ef880c45c No ctassert in tool build 2013-02-21 16:21:20 +00:00
hans
f49c4a3f9c Make this build on SunOS. 2013-02-21 15:56:07 +00:00
skrll
1bb892c6a4 Fixup the cpu_{match,attach} functions to not allow more that HPPA_MAXCPUs
to be used.

Fixes problem booting on a dual-cpu j6700 with GENERIC (which doesn't
define MULTIPROCESSOR) reported by KIYOHARA Takashi on port-hp700.
2013-02-21 15:16:02 +00:00
hans
93170f635e Use HOST_SH to run scripts. Makes mkimage work on SunOS. 2013-02-21 15:13:10 +00:00
christos
6b28c645f3 remove empty #if 2013-02-21 14:13:01 +00:00