Nfs-utils unit tests

From Linux NFS

(Difference between revisions)
Jump to: navigation, search
(Add details about the nfs-utils unit test project)
Line 4: Line 4:
* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.
* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.
* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.
* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.
 +
* Unit tests can also act as regression tests for distributors.
 +
* These tests document how the NFS utilities need to behave in the presence of varying network conditions.  As we modify existing tools and provide new ones, we will need to understand the operational requirements and history before implementing any changes.

Revision as of 21:40, 7 August 2007

Add unit test infrastructure to nfs-utils

  • For an example, see the t/ directory in the git source repository. I don't think these scripts are original to git.
  • Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.
  • By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.
  • Unit tests can also act as regression tests for distributors.
  • These tests document how the NFS utilities need to behave in the presence of varying network conditions. As we modify existing tools and provide new ones, we will need to understand the operational requirements and history before implementing any changes.
Personal tools