NetBSD/tests
pooka 82233993ff Add NFS to the list of file systems exercised by the "vfs" tests.
How it works:
NFS tests fork and exec the nfs service from fs/nfs/nfsservice.
The child then:
  a) creates a FFS file system
  b) mounts it
  c) starts rpcbind
  d) starts mountd
  e) starts nfsd
  f) handles requests

The client, as expected, does the standard RPC regotiation and
calls mount(MOUNT_NFS).  It then proceeds to execute the test.

An individual test which executes everything described above and
does a few file operations on the NFS mount takes 0.16s wall time
on my laptop from start to finish.  This means it is feasible to
run hundreds of tests while still getting results in a timely
fashion.

Like in other networked tests, the two processes are connected via
the rump shmif which uses mmapped files as ethernet busses.  The
entire test suite can be executed by an unprivileged account.

As a side effect, these tests exercise also the kernel NFS server
in addition to the kernel NFS client.

While everything is currently targetted at executing the vfs tests,
there is no reason this could not be extended to exercise features
specific to NFS.  For example, the server can run through all
exportable file system types, permissions can be tested, etc.
2010-07-26 16:15:49 +00:00
..
crypto Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
fs Add NFS to the list of file systems exercised by the "vfs" tests. 2010-07-26 16:15:49 +00:00
games Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
include Remove the ATF_CHECK calls I added during the conversion of this test to 2010-07-18 12:16:19 +00:00
ipf Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
kernel Add a couple of simple tests for sigaction(2): one for the case where flags 2010-07-14 21:47:06 +00:00
lib before_start_one_thread is not racy only in amd64; my confusion. Mark it 2010-07-21 17:23:08 +00:00
libexec Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
modules Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
net Remove stuff handled by common code now. 2010-07-26 14:10:31 +00:00
rump Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
sys Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
syscall Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
util Refactor this test program: make test cases more granular, use atf_check 2010-07-18 22:58:14 +00:00
Atffile Re-add the NetBSD CVS Id tag to the header. It just had to be quoted to 2007-12-30 09:13:32 +00:00
h_macros.h use normal include-protection 2010-07-25 22:29:15 +00:00
Makefile Convert the include tests to atf. 2010-07-17 19:26:27 +00:00