FNFS Test Suite
Introduction
The FNFS test suite (fnfs) is an automounter test suite to functionally test the autofs kernel module and automounter daemon. The test suite uses the STF test Framework to build and execute the tests. Both source codes and test executable (in Solaris packages format) can be downloaded from the Download center.
This test suite is divided into subdirs based on test areas, which includes:
- |
Subdir Names
The automount Areas covered |
basic |
Basic automounter maps, including autofs, direct/indirect, execmap, replicate, variables and wildcard, etc. |
mt |
Multiple access to the automount map entries |
mntnet |
Automount through /net |
offset |
Automount with offset |
readdir |
Automount with readdir to mount |
Others |
Misc tests for cachefs and loopback mounts |
misc |
Tests for automounting home directories from NIS map |
The How-to's for building, configuration and running the test suite are documented in the README file from either the source tarball, or the test suite package.
Users can configure and run one subdir at a time, if you are only interested in testing certain areas. The following example will configure and run only the basic tests:
# cd /opt/SUNWstc-nfs-sharemnt/tests/basic
# export SERVER=”my_server_hostname”
# stf_configure
# stf_execute -m i386
# stf_unconfigure
All test results will be stored at /var/tmp/SUNWstc-nfs-sharemnt/results directory of the “local host” that started the tests
This test suite is fully automated with STF test harness. Both the client and server systems will be cleaned up once the "stf_unconfigure" command is run.
Currently the tests are only running well with OpenSolaris systems, e.g. clients and servers. This is due to the limitations on the remote server configuration (where tests use "rsh"s, and how server exports NFS filesystems).
All tests can also run in the OpenSolaris non-global zones, with a regular server running Solaris 10 and above.
It should take less than an hour to run all the tests in this test suite.
Test results 1
- |
Subdir Names
Test results |
basic |
PASS: 22 |
mt |
PASS: 11 |
mntnet |
PASS: 8 |
offset |
PASS: 8 |
readdir |
PASS: 5 |
Others |
PASS: 3 FAIL: 2 |
misc |
PASS: 2 UNTESTED: 1 |
- the above results obtained from client and servers running OpenSolaris 2008.11 release
- The details of the known failures listed above can be found from the bug database (http://bugs.opensolaris.org/ , select category “stc/stc” and subcategory “fnfs”)
The test results baselines can be downloaded at : http://dlc.sun.com/osol/test/downloads/current