blob: 02ede8c7d66b6d3cca4b90f626e41f32152f2235 [file] [log] [blame]
robbiew59288922001-10-12 20:51:55 +00001$Id: INSTALL,v 1.13 2001/10/12 20:51:55 robbiew Exp $
alaffine15dd682000-05-08 20:31:30 +00002
nstraz0312c252000-09-26 20:59:21 +00003Quick Start
4-----------
whrb973f2b2000-05-05 19:34:50 +00005
robbiew57404482001-09-19 16:11:23 +000061> tar xzf ltp-XXXXXXXX.tar.gz
nstraz0312c252000-09-26 20:59:21 +000072> cd ltp
83> make
94> ./runalltests.sh
whrb973f2b2000-05-05 19:34:50 +000010
robbiew59288922001-10-12 20:51:55 +000011*NOTE: The LTP assumes the existence of the nobody, bin, and daemon users and their groups.
12If these ids do not exist, certain tests will fail. The users and groups IDs should be the
13same, i.e. if user "nobody" is 99, then it's group should also be "99". The names of the
14groups are irrelevant.
robbiew5be3ca52001-10-12 20:21:49 +000015
whrb973f2b2000-05-05 19:34:50 +000016
nstraz0312c252000-09-26 20:59:21 +000017Detailed Installation
18---------------------
19
20Beyond the "Quick Start" instructions, there are only a few other things
21that should be done. The Linux Test Project build process uses a
22minimalist approach. There is a lot of room for improvement and
23contributions are welcome.
24
robbiewb6c5fe72001-09-18 20:44:30 +0000251. Log in as root.
26
272. Untar the ltp tarball into a spare directory. There is not a
nstraz0312c252000-09-26 20:59:21 +000028 standard location for it yet. We put it in out home directory
29 while we're working on it.
30
robbiewb6c5fe72001-09-18 20:44:30 +0000313. Run "make" to build everything.
nstraz0312c252000-09-26 20:59:21 +000032
nstraz0312c252000-09-26 20:59:21 +0000334. You can run all of the tests sequentially by using the example test
34 script runalltests.sh. The script is there just to get you started.
35 See pan(1) for more information on the test driver we have provided.
robbiewb6c5fe72001-09-18 20:44:30 +000036 It is simple, but it can do a lot of stuff.
37
robbiewba422042001-09-19 15:25:43 +000038 NOTE: The diskio and network tests will NOT be run by the runalltests.sh
39 script. We chose to seperate these tests because of there required setup
40 overhead.
nstraz0312c252000-09-26 20:59:21 +000041
robbiewba422042001-09-19 15:25:43 +0000425. The disk i/o tests can be ran by executing the diskio.sh script. Inorder
43 for these tests to successfully operate a writable high-density 3.5" floppy
44 must be in the disk drive and a CD-ROM with more than 100Mb of data must be
45 in the CD-ROM drive. The corresponding tests will fail if either disk is
46 missing.
nstraz0312c252000-09-26 20:59:21 +000047
robbiewba422042001-09-19 15:25:43 +0000486. The network tests are executed by running the networktests.sh script. The
49 network tests require some configuration for them to work correctly:
50
51 i) First, there MUST be another test machine setup to act as the server
52 to these client side tests. This machine MUST have the LTP installed
53 in the same exact location, i.e. if the client has /root/ltp, then the
54 server must have /root/ltp. This is required because certain tests
55 expect to find server files in certain locations. Make sure to compile
56 the LTP on this server machine also.
57
58 ii) Second, the server must be setup to allow the client to connect using the
59 "r" commands, such as rsh. This is done by simply creating/editing the
60 ".rhosts" file under /root. Place the hostname of the client machine
61 in this file to allow root to remotely connect without the use of a
62 password.
63
64 iii) Next, certain services must be activated in order for certain tests to
65 execute. The following services are activated via inetd/xinetd:
66 rlogind
67 ftpd
68 telnetd
69 echo (stream)
70 fingerd
71 rshd
72 Also, because certain RPC programs are tested, the "portmapper" daemon MUST
73 be started, as well as NFS server AND lock services.
74
75 iv) Finally, before running the networktests.sh script, two variables must be set
76 within the script file. The "RHOST" variable should be set to the hostname
77 of the server. The "PASSWD" variable should be set to root's password on the
78 server machine. This is neccessary for tests such as telnet01 and ftp01.
79
80 You can now successfully execute the networktests.sh script.