From Fedora Project Wiki
No edit summary |
m (Minor wiki+wording changes) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case is to run LTP filesystem tests on a NFSv4 root. | |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 | |||
#: <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, run the following steps on the NFS '''client'''. Mount the NFS directory to {{filename|/tmp}}, since tests will manipulate files in that directory. | |||
#: <pre> | #: <pre> | ||
#: mount -t nfs4 <server IP>:/nfs /tmp</pre> | #: mount -t nfs4 <server IP>:/nfs /tmp</pre> | ||
# '' | # Next, ''install'' dependencies needed to compile LTP. | ||
#: <pre> | #: <pre> | ||
#: yum | #: yum install procmail flex bison kernel-devel</pre> | ||
# | # Next, ''download'' and prepare the LTP testsuite | ||
#: <pre> | #: <pre> | ||
#: wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download' | |||
#: tar zxvf ltp-full-20090731.tgz | #: tar zxvf ltp-full-20090731.tgz | ||
#: cd ltp-full-20090731</pre> | #: cd ltp-full-20090731</pre> | ||
# | # Before running the testsuite, be sure to comment out the following line in the file {{filename|runtest/fs}}. | ||
#: <pre> | #: <pre> | ||
#: proc01 proc01</pre> | #: proc01 proc01</pre> | ||
# | # Now, ''build'' and ''run'' the testsuite from the '''client'''. | ||
#: <pre> | #: <pre> | ||
#: ./configure | #: ./configure | ||
#: make | #: make | ||
#: 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 | tee TESTOUT.log</pre> | ||
# 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. | # 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> |
Revision as of 17:12, 4 February 2010
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
- 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
- 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
- Next, install dependencies needed to compile LTP.
- yum install procmail flex bison kernel-devel
- 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
- Before running the testsuite, be sure to comment out the following line in the file
runtest/fs
.- proc01 proc01
- 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
- 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/
- Cleanup.
umount /tmp
Expected Results
- Step #1 completes without error.
- Step #2 completes without error.
- Step #3 completes without error.
- Step #4 completes without error.
- Step #5 completes without error.
- The testsuite finishes without error.
- Step #7 completes without error.
- Step #8 completes without error.