From Fedora Project Wiki

m (Add cmdline sample)
No edit summary
Line 30: Line 30:
#: make install
#: make install
#: ./runltp  -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs</pre>
#: ./runltp  -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs</pre>
# Save the output to a file, copy {{filename|/var/log/messages}} from both the server and client, and then tar and compress them together with {{filename|/tmp/ltp.log}} and {{filename|/tmp.ltp.run.log}} to [[Special:Upload|upload it]] to the wiki.  Please include a link to the uploaded file in your test day results.
# Save the output from the tests to TESTOUT.log, copy {{filename|/var/log/messages}} from both the server and client, and then tar and compress them together with {{filename|/tmp/ltp.log}} and {{filename|/tmp.ltp.run.log}} to [[Special:Upload|upload it]] to the wiki.  Please include a link to the uploaded file in your test day results.
#: <pre>
#: <pre>
#: tar -c /var/log/messages /tmp/ltp*.log | gzip -c > /tmp/nfs_generic-results.tgz</pre>
#: tar -c TESTOUT.log /var/log/messages /tmp/ltp*.log | gzip -c > /tmp/nfs_generic-results.tgz</pre>
# Cleanup.
# Cleanup.
#: <pre>umount /tmp</pre>
#: <pre>umount /tmp</pre>

Revision as of 17:26, 3 February 2010

Description

This test case is to run LTP filesystem tests on a NFSv4 root


How to test

You can run both NFS server and client on the same system or use different systems. First, configure the NFS server.

  1. Export a NFS mount.
    cp /etc/exports /etc/exports.orig
    echo '/nfs *(rw,insecure,no_root_squash)' >/etc/exports
    mkdir /nfs
    service nfs restart

From a client,

  1. Mount the NFS directory to /tmp on the client, since tests will manipulate files in that directory.
    mount -t nfs4 <server IP>:/nfs /tmp
  2. Download LTP testsuite from the client.
    wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download'
  3. Install dependencies to compile LTP.
    yum -y install procmail flex bison kernel-devel
  4. From the client system, run LTP filesystems tests.
    tar zxvf ltp-full-20090731.tgz
    cd ltp-full-20090731
    ./configure
    make
    make install
    ./runltp -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs
  5. Save the output from the tests to TESTOUT.log, copy /var/log/messages from both the server and client, and then tar and compress them together with /tmp/ltp.log and /tmp.ltp.run.log to upload it to the wiki. Please include a link to the uploaded file in your test day results.
    tar -c TESTOUT.log /var/log/messages /tmp/ltp*.log | gzip -c > /tmp/nfs_generic-results.tgz
  6. Cleanup.
    umount /tmp

Expected Results

  1. Step #1 completes without error.
  2. Step #2 completes without error.
  3. Step #3 completes without error.
  4. The testsuite finishes without error.
  5. Step #5 completes without error.