From Fedora Project Wiki

m (Adjust proc01 command)
m (Correct <pre> tags)
 
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case is to run LTP filesystem tests on a NFSv4 root.  You can run both NFS server and client on the same system or use different systems.  Please note, this test can take a while.
|description=This test case is to run LTP filesystem tests on a NFSv4 root.  You can run both NFS server and client on the same system or use different systems.  Please note, this test can take a while.
|actions=
|actions=
# First, configure the NFS '''server''' by creating an NFS mount export
<ol>
#: <pre>
<li>First, configure the NFS '''server''' by creating an NFS mount export
#: cp /etc/exports /etc/exports.orig
<pre>
#: echo '/nfs *(rw,insecure,no_root_squash)' >/etc/exports
cp /etc/exports /etc/exports.orig
#: mkdir /nfs
echo '/nfs *(rw,insecure,no_root_squash)' >/etc/exports
#: service nfs restart</pre>
mkdir /nfs
# Next, run the following steps on the NFS '''client'''.  Mount the NFS directory to {{filename|/tmp}}, since tests will manipulate files in that directory.
service nfs restart</pre>
#: <pre>
<li>Next, run the following steps on the NFS '''client'''.  Mount the NFS directory to {{filename|/tmp}}, since tests will manipulate files in that directory.
#: mount -t nfs4 <server IP>:/nfs /tmp</pre>
<pre>
# Next, ''install'' dependencies needed to compile LTP.
mount -t nfs4 <server IP>:/nfs /tmp</pre>
#: <pre>
<li>Next, ''install'' dependencies needed to compile LTP.
#: yum install procmail flex bison kernel-devel</pre>
<pre>
# Next, ''download'' and prepare the LTP testsuite
yum install procmail flex bison kernel-devel</pre>
#: <pre>
<li>Next, ''download'' and prepare the LTP testsuite
#: wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download'
<pre>
#: tar zxvf ltp-full-20090731.tgz
wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download'
#: cd ltp-full-20090731</pre>
tar zxvf ltp-full-20090731.tgz
# Before running the testsuite, disable the ''proc01'' test by commenting out the appropriate line in the file {{filename|runtest/fs}}.  The following command will disable the ''proc01'' test.
cd ltp-full-20090731</pre>
#: <pre>
<li>Before running the testsuite, disable the ''proc01'' test by commenting out the appropriate line in the file {{filename|runtest/fs}}.  The following command will disable the ''proc01'' test.
#: sed -i 's|^\(proc01 proc01\)$|#\1|' runtest/fs</pre>
<pre>
# Now, ''build'' and ''run'' the testsuite from the '''client'''.
sed -i 's|^\(proc01 proc01\)$|#\1|' runtest/fs</pre>
#: <pre>
<li>Now, ''build'' and ''run'' the testsuite from the '''client'''.
#: ./configure
<pre>
#: make
./configure
#: make install
make
#: ./runltp  -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs | tee TESTOUT.log</pre>
make install
# 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.
./runltp  -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs | tee TESTOUT.log</pre>
#: <pre>
<li>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.
#: mkdir log
<pre>
#: scp root@<server hostname>:/var/log/messages messages.server
mkdir log
#: cp TESTOUT.log messages.server /var/log/messages /tmp/ltp*.log log/
scp root@<server hostname>:/var/log/messages messages.server
#: tar czvf /tmp/nfs_generic-results-<fedora user name>.tgz log/</pre>
cp TESTOUT.log messages.server /var/log/messages /tmp/ltp*.log log/
# Cleanup.
tar czvf /tmp/nfs_generic-results-<fedora user name>.tgz log/</pre>
#: <pre>umount /tmp</pre>
<li>Cleanup.
 
<pre>umount /tmp</pre>
</ol>
|results=
|results=
# Step #1 completes without error.
# Step #1 completes without error.

Latest revision as of 13:49, 1 June 2011

Description

This test case is to run LTP filesystem tests on a NFSv4 root. You can run both NFS server and client on the same system or use different systems. Please note, this test can take a while.


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, run the following steps on the NFS client. Mount the NFS directory to /tmp, since tests will manipulate files in that directory.
    mount -t nfs4 <server IP>:/nfs /tmp
  3. Next, install dependencies needed to compile LTP.
    yum install procmail flex bison kernel-devel
  4. Next, download and prepare the LTP testsuite
    wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download'
    tar zxvf ltp-full-20090731.tgz
    cd ltp-full-20090731
  5. Before running the testsuite, disable the proc01 test by commenting out the appropriate line in the file runtest/fs. The following command will disable the proc01 test.
    sed -i 's|^\(proc01 proc01\)$|#\1|' runtest/fs
  6. Now, build and run the testsuite from the client.
    ./configure
    make
    make install
    ./runltp  -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs | tee TESTOUT.log
  7. 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.
    mkdir log
    scp root@<server hostname>:/var/log/messages messages.server
    cp TESTOUT.log messages.server /var/log/messages /tmp/ltp*.log log/
    tar czvf /tmp/nfs_generic-results-<fedora user name>.tgz log/
  8. Cleanup.
    umount /tmp

Expected Results

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