From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|actions= | |actions= | ||
You can run both NFS server and client on the same system or use different systems. First, configure the NFS server. | |||
# Export a NFS mount. | |||
#: <pre> | #: <pre> | ||
#: cp /etc/exports /etc/exports.orig | #: cp /etc/exports /etc/exports.orig | ||
Line 9: | Line 10: | ||
#: mkdir /nfs | #: mkdir /nfs | ||
#: service nfs restart</pre> | #: service nfs restart</pre> | ||
From a client, | |||
# Mount the NFS directory to /tmp on the client, since tests will manipulate files in that directory. | # Mount the NFS directory to /tmp on the client, since tests will manipulate files in that directory. | ||
#: <pre> | #: <pre> | ||
Line 30: | Line 34: | ||
|results= | |results= | ||
# Step #1 completes without error. | # Step #1 completes without error. | ||
# The testsuite finishes without error | # Step #2 completes without error. | ||
# Step #3 completes without error. | |||
# The testsuite finishes without error. | |||
}} | }} | ||
[[Category:NFS_Test_Cases]] | [[Category:NFS_Test_Cases]] |
Revision as of 14:04, 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.
- 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,
- Mount the NFS directory to /tmp on the client, since tests will manipulate files in that directory.
- mount <server IP>:/nfs /tmp
- Download LTP testsuite from the client.
- wget -c 'http://sourceforge.net/projects/ltp/files/LTP%20Source/OLD-ltp-20090731/ltp-full-20090731.tgz/download'
- Install dependencies to compile LTP.
- yum -y install procmail flex bison kernel-devel
- From the client system, run LTP filesystems tests.
- tar zxvf ltp-full-20090731.tgz
- cd ltp-full-20090731
- make
- make install
- ./runltp -p -d /tmp -l /tmp/ltp.log -o /tmp/ltp.run.log -f fs
- After inspected and saved the reulsts, cleanup.
umount /tmp
Expected Results
- Step #1 completes without error.
- Step #2 completes without error.
- Step #3 completes without error.
- The testsuite finishes without error.