Commit Graph

28 Commits

Author SHA1 Message Date
jmmv d5094734ca Add tests for rillig@'s recent fix to mount_tmpfs: ensure that error messages
do not mention the source path, which is unused.
2008-02-13 14:58:42 +00:00
jmmv 6d229870a6 Add more detailed checks for each of the primary modctl commands. 2008-02-10 16:02:24 +00:00
jmmv d387334f48 Descend into modules. This is unconditional; see the comment in
modules/Makefile for details about why it cannot depend on MKMODULAR.
2008-02-10 12:40:41 +00:00
jmmv 42d50c9507 Add preliminary tests (basically a placeholder for now) for the new modules
framework.  At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call.  The tools are not tested yet.
2008-02-10 12:40:10 +00:00
jmmv 2418db1a1e Remove a warning that said that the test could loop forever because ATF
will now automatically terminate it after 5 minutes of run time.
2008-02-05 08:33:50 +00:00
jmmv 555b9649d4 Sync with the tests tree from atf 0.4. 2008-02-04 20:30:15 +00:00
jmmv 91374a77e7 Fix headers: add NetBSD CVS id tag and drop ATF title. 2008-01-04 18:37:15 +00:00
ad 2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
jmmv 5166760e85 Re-add the NetBSD CVS Id tag to the header. It just had to be quoted to
be accepted by the parser; i.e. no bug in the code :-)

Note to self: do not try to "fix" stuff the last minute before going to
sleep.
2007-12-30 09:13:32 +00:00
jmmv ef8f5fcf1e Copy the host key into the work directory and tell the server to use this
instead of the source file, because we need to set strict permissions on it.
Otherwise sshd refuses to start.

Note that we cannot set the permissions of the installed ssh_config_key file
to 400 because unprivileged users could then be unable to run the tests.
2007-12-29 23:07:17 +00:00
jmmv 9644efc887 Use proper specification for a glob pattern. 2007-12-29 23:03:10 +00:00
jmmv 24b05c38e9 Back out the change to introduce the X-NetBSD-Id header entry. For some
reason the parser does not accept its contents...  You know, one should
always test even trivial changes!

Will review this in more depth tomorrow to find the real root cause of the
problem and rule out a fix for ATF.
2007-12-29 23:02:51 +00:00
jmmv 92f6ea962c Properly capture the output of the SSH server. Its -e flag is supposed to
be used alongside -D, but as this was not documented I thought it was a bug
and "fixed" -e's behavior locally (so I got the correct output before, but
nobody else).

Also, fix a race condition that could cause the SSH server to not be killed
if the pid file was not written before the kill, which might happen on very
fast machines.  There still may be a problem when trying to do the connection
if the server has not yet finished initialization...
2007-12-28 08:57:42 +00:00
jmmv c14077091f Install the data files. 2007-12-26 22:33:54 +00:00
jmmv 4178bab5b6 Add the NetBSD Id tag to the Atffiles. Issue raised by pooka@ a while ago. 2007-12-26 21:04:47 +00:00
jmmv c3572c6033 Enable the puffs tests. 2007-12-26 20:50:31 +00:00
jmmv 255c0c3501 Beleatedly add some regression tests for a couple of problems I found in
psshfs and that pooka@ already fixed a while ago.  These were rather tricky
to get working.
2007-12-26 20:50:06 +00:00
jmmv e44ee884d0 Add regression tests for low-port allocation in connect and listen, which
was broken and fixed recently in:
http://mail-index.netbsd.org/source-changes/2007/12/16/0011.html

Test-case code provided by elad@.
2007-12-23 13:50:22 +00:00
riz 3f811928da Cast sf->f_bsize to int to force signed division. Fixes this test
on amd64, and probably other 64-bit platforms.
2007-12-03 18:49:24 +00:00
jmmv 80c834ed18 Explicitly define TESTSDIR, because the automatic deduction of its value
breaks the build if some component of NETBSDSRCDIR is a symlink.  Reported
by drochner@.
2007-11-21 15:39:33 +00:00
jmmv ed68a80f58 Remove the libfake hack, as it breaks the build in sun2 (which does not
support shared libraries).  Reported by he@.

This was an attempt to test the exact same id binary in the system but
using fake library calls to provide fictitious but stable user/group
entries.  Instead, build a helper id binary linked against our fake
functions.  This is what we already do in, e.g. the tests for util/df.
2007-11-19 14:17:45 +00:00
jmmv da0793de49 Recurse into 'id'. 2007-11-16 19:27:47 +00:00
jmmv 42112a274c Add tests for id(1), groups(1) and whoami(1). I'm basically doing this to
check for the command's syntax, but while doing so, I'm adding tests for
all (or almost) possible executions of these commands.

I'm not too happy with the "libfake" directory because there must be some
simpler way to do this, but it will do the trick for now hopefully.
2007-11-16 18:06:46 +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 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