Commit Graph

163307 Commits

Author SHA1 Message Date
pooka 3384f1f26e tyop: _time_seconf -> _time_second 2007-11-12 16:04:55 +00:00
he 5f195f5b4e Ensure that the 'pc' local variable is initialized, so that this builds again. 2007-11-12 15:50:21 +00:00
jmmv bcd96ef9e6 This should have died before; it is not of any use now that regress/bin
has been migrated to ATF.
2007-11-12 15:29:03 +00:00
jmmv 8fb9399752 Note the import of ATF, the main changes made to integrate it and the
conversion of some subtrees of 'regress' to the new framework.
2007-11-12 15:23:45 +00:00
jmmv 98380f8b63 Convert the regress/games tests to the atf
This change converts all the existing regression tests in regress/games
to the new framework provided by atf.  As a side effect, this also moves
all the tests programs in regress/games to tests/games.
2007-11-12 15:19:45 +00:00
jmmv 9b7401e7cb Convert the regress/sys/fs/tmpfs tests to the atf
This change converts all the existing regression tests in
regress/sys/fs/tmpfs to the new framework provided by atf.  As a side
effect, this also moves all the tests programs in regress/sys/fs/tmpfs to
tests/fs/tmpfs.
2007-11-12 15:18:07 +00:00
jmmv 65926be28b Convert the regress/bin tests to the atf
This change converts all the existing regression tests in regress/bin to
the new framework provided by atf.  As a side effect, this also moves all
the tests programs in regress/bin to tests/util, as they all belong to
utilities installed by the base-util-root package.
2007-11-12 15:13:58 +00:00
jmmv 3b0ca37dba Add the atf tests
This adds reachover Makefiles to build and install the atf tests.
2007-11-12 15:09:26 +00:00
jmmv 8ae40ed459 Explain how to run the tests in afterboot(8)
Modify the afterboot(8) manual page to explain how to run the tests
installed alongside the system.  This is something the user should do
after configuring it to ensure that it works and that it is stable on
his hardware.
2007-11-12 15:08:03 +00:00
jmmv aa5d737b65 Make sysinst install the new tests.tgz set
Teach sysinst about the new tests.tgz set and allow the user to install
it as part of a regular installation.
2007-11-12 15:07:33 +00:00
jmmv 4d9b8b6a50 Add the tests.tgz set
This adds a new tests.tgz set to releases which includes all the tests
for the system.  It is important to note that this set does not rely on
comp.tgz: a user of the system can run the tests without having the
development tools installed, which can be useful in a production machine.
2007-11-12 15:06:45 +00:00
jmmv dd2f8250cc Add the bsd.test.mk file
This file simplifies the build of test programs, either written in C++
or in sh.  It hides the internals of atf, e.g. by silently linking
against -latf or calling atf-compile.

It also takes care of installing an Atffile for each new test directory.
2007-11-12 15:05:15 +00:00
jmmv 12408017c4 Add the ability to build multiple programs from a single directory
This adds support for a new set of variables, PROGS and PROGS_CXX, that
allow the developer to build multiple different programs from a single
source directory.
2007-11-12 15:04:35 +00:00
jmmv dc55116c56 Add the ATF documentation
This change adds the ATF manual pages that are not tied to any specific
tool nor library.  It also adds some distribution documentation to the
system, as this is linked to by the manual pages (plus we have to install
the license text to comply with its terms).
2007-11-12 15:04:02 +00:00
jmmv ce8090f1b4 Add the atf configuration files
This change adds the directory used by atf to look for its configuration
files.
2007-11-12 15:02:57 +00:00
jmmv 78bb0388d3 Add the ATF data files
This change adds example files shipped with ATF as well as other data files
required to support some of its features.
2007-11-12 15:01:50 +00:00
jmmv 9d5a9c0d86 Add the atf tools
This adds reachover Makefiles to build and install the atf tools.
Some are public, thus installed in /usr/bin, and others are internal
and therefore installed in /usr/libexec.
2007-11-12 15:00:00 +00:00
jmmv fa5c7fcfae Add the atf shell subroutines
This adds the atf shell subroutines: i.e. the code that implements test
programs and is shared among all of them to avoid duplication.
2007-11-12 14:57:34 +00:00
jmmv 096ebe7672 Add the libatf library
This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile?  It theoretically needs
  libstdc++, but the resulting binary library is not linked against it.
2007-11-12 14:56:24 +00:00
jmmv 2965cbca98 Add the atf host tools
This adds reachover Makefiles to build the atf tools required during a
cross-build.
2007-11-12 14:54:43 +00:00
jmmv f9669addbb Change the primary docs to mention atf's import
Describe atf (in doc/3RDPARTY) as a third-party project imported into
NetBSD and mention who is responsible for it (in doc/RESPONSIBLE).
2007-11-12 14:53:32 +00:00
jmmv 866b001ea5 Import of ATF 0.3
Initial import of the Automated Testing Framework, version 0.3, a project
that provides a framework to easily implement test cases for the NetBSD
operating system and some tools to run them and generate reports with the
results.

Note that this is just the framework (libraries and tools), which is and
will be maintained externally.  The tests themselves will come later, will
be put under the 'tests' hierarchy and will be managed exclusively under
the NetBSD CVS tree given that they are tied to the operating system.

The work done until version 0.1 was sponsored by the Google Summer of Code
2007 program and mentored by martin@.
2007-11-12 14:50:50 +00:00
xtraeme 4ffff27911 Implement DIOCGSTRATEGY and DIOCSSTRATEGY for dkctl <foo0> strategy. 2007-11-12 14:45:23 +00:00
pooka 70981e62b1 Move putter code from directly under dev/ to dev/putter/
no functional change
2007-11-12 14:30:55 +00:00
ad 9bf7522dd1 Call ttwakeup() with tty_lock held. 2007-11-12 14:20:40 +00:00
ad ad89ae5a21 Revision 1.42 was lost. Pointed out by Nicolas Joly:
This was using mutex_exit where mutex_enter was required.
2007-11-12 14:11:47 +00:00
nisimura 2820af119e - fix initblk tlen/rlen field values.
- fix pcn_send() txd xd1 member.
2007-11-12 14:03:35 +00:00
skrll c1e4ee94be Fix kernel profiling on HPPA.
- stop gcc emitting stuff that HPUX requires
- don't use splhigh() in MCOUNT_ENTER as a call to _mcount will be
  generated at the moment. Disable interrupts in hardware instead.
- Fix _PROF_PROLOGUE to save/restore all the register args when calling
  _mcount.
- Fixup LEAF_ENTRY to dtrt (I think) in the GPROF case.
- Provide LEAF_ENTRY_NOPROFILE and sprinkle its use where i) profiling
  causes problems, e.g. trap handlers, and ii) where it just doesn't
  make sense, e.g. start.
2007-11-12 12:58:10 +00:00
pooka 78a22b918c No more puffs_transport.c, as noted by Kurt Schreiner on current-users.
(this lkm doesn't work for now, but at least MKPUFFS=yes builds
won't fail)
2007-11-12 12:31:15 +00:00
njoly 2ef45bfade Add missing hpet@acpi. 2007-11-12 08:42:40 +00:00
matt 2cab8950e4 Don't static init simplelock (back out those changes). 2007-11-12 06:14:57 +00:00
matt 90ef495f4d use __SIMPLELOCK_UNLOCKED, not SIMPLELOCK_INITIALIZER 2007-11-12 06:07:43 +00:00
nisimura aca73b663f - cache insns accept unaligned addresses to go.
- correct dcache_line_size range detect errors in inv()/wbinv().
- make inv() unaligned case friendly.
2007-11-12 05:29:22 +00:00
jmcneill 1869ce861e Add pad(4) 2007-11-12 02:22:11 +00:00
matt 11910619f7 Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER).  Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto.  Init some static/global
cpu_simple_locks at compile time.
2007-11-11 23:22:23 +00:00
christos f4f95f573f simplify and fix the combination code. Hi pooka. 2007-11-11 22:44:12 +00:00
macallan 6a8b9d03fb mention r128fb 2007-11-11 22:11:28 +00:00
jmcneill b6ed7a1236 Implement volume controls for pseudo audio device. 2007-11-11 19:53:38 +00:00
pooka 96689562e7 * include puffs msgif instead of internal sys header (yea, still not
correct, but at least better)
* minor cleanup
2007-11-11 19:49:11 +00:00
christos dfdca25ef7 report the proper stack size on 32 bit emulations. 2007-11-11 18:29:03 +00:00
christos 2e3ee66dc7 regen 2007-11-11 18:28:18 +00:00
pooka b0106b7eaf Don't overload "attributes last read" for the symlink cache,
use a separate variable.
2007-11-11 18:06:35 +00:00
jmcneill 0994f0a98c Enable pad(4) 2007-11-11 18:06:24 +00:00
bouyer d64cd0dda9 Move a delay() inside a loop, so that the 1s delay is really 1s. 2007-11-11 18:03:46 +00:00
jmcneill 7d666065e7 Enable pad(4) 2007-11-11 17:56:10 +00:00
jmcneill a5bfefb1b0 Add support for /dev/padN devices 2007-11-11 17:54:47 +00:00
jmcneill 8a1105f670 Note addition of pad(4) 2007-11-11 17:50:23 +00:00
dsl ab78fc54c0 Don't include opt_xxx when _LKM is defined.
Should fix build of netbsd32 as a lkm
2007-11-11 17:48:51 +00:00
jmcneill 77deea4733 Add man page for pseudo-audio device driver. 2007-11-11 17:45:18 +00:00
jmcneill 23526fe3a9 Add pseudo audio device driver. With this pseudo-device, audio played back
via the standard audio interfaces is redirected back to userland as raw
PCM data on /dev/padN.

One example usage is to stream audio to an AirTunes compatible device using
rtunes (http://www.nazgul.ch/dev_rtunes.html), ie:

	$ rtunes - < /dev/pad0
	$ mpg123 -a /dev/sound1 blah.mp3

Another option is to capture audio output from eg. Real Player, by simply
instructing Real Player to output to /dev/sound1, and running:

	$ cat /dev/pad0 > blah.pcm
2007-11-11 17:37:45 +00:00