From Fedora Project Wiki

No edit summary
m (Minor wiki reformatting)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case is to run pynfs test suite on a NFSv4 root
|description=This test case is to run pynfs test suite on a NFSv4 root.  It requires both an NFS server and client.  However, the client and server can exist on the same system.


|actions=
|actions=
You can run both NFS server and client on the same system or use different systems.  First, configure the NFS server.
# First, configure the NFS '''server''' by creating an NFS mount export
# Export a NFS mount.
#: <pre>
#: <pre>
#: cp /etc/exports /etc/exports.orig
#: cp /etc/exports /etc/exports.orig
Line 10: Line 9:
#: mkdir /nfs
#: mkdir /nfs
#: service nfs restart</pre>
#: service nfs restart</pre>
 
# Next, on the '''client''' system, ''download'' pynfs testsuite from the client.
From a client,
# ''Download'' pynfs testsuite from the client.
#: <pre>
#: <pre>
#: git clone git://linux-nfs.org/~iisaman/pynfs.git </pre>
#: git clone git://linux-nfs.org/~iisaman/pynfs.git </pre>
# Run the pynfs testsuite.
# Now, run the pynfs testsuite.
#: <pre>
#: <pre>
#: cd pynfs
#: cd pynfs

Revision as of 13:14, 3 February 2010

Description

This test case is to run pynfs test suite on a NFSv4 root. It requires both an NFS server and client. However, the client and server can exist on the same system.


How to test

  1. First, configure the NFS server by creating an NFS mount export
    cp /etc/exports /etc/exports.orig
    echo '/nfs *(rw,insecure,no_root_squash)' >/etc/exports
    mkdir /nfs
    service nfs restart
  2. Next, on the client system, download pynfs testsuite from the client.
    git clone git://linux-nfs.org/~iisaman/pynfs.git
  3. Now, run the pynfs testsuite.
    cd pynfs
    ./setup.py build_ext --inplace
    ./testserver.py --maketree <server IP>:/nfs all

Expected Results

  1. Step #1 completes without error.
  2. The testsuite finishes without error; no nfs*.error files in /tmp.