blob: 6357d58b34abd78e8a5598e3c311b25517ffd4e2 [file] [log] [blame]
martinjn9569ba92002-09-10 19:57:59 +00001<html>
2<head>
3 <title>autoltp readme</title>
4
5</head>
6 <body bgcolor="#ffffff" vlink="#800000">
7
8<div align="center"><big><big><big><b>LTP Automation README<br>
9using autoltp</b></big></big></big></div>
10 <br>
11 <br>
12 <big><big><b>Prerequisites</b></big></big>
13<ul>
14 <li>All LTP installation prerequisites must be met<br>
15 </li>
16 <li>Perl modules Net::SFTP and Net::SSH::Perl <b>must</b> be <a
17 href="http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules">installed</a>
18on MASTER machine. (<a href="http://www.cpan.org/">www.cpan.org</a> for instructions/downloads)</li>
19 <li>MASTER and TARGET machines must have sftp and ssh capabilities.<br>
20 </li>
21 <li>IP addresses may replace hostnames in this document if name service
22is unavailable.<br>
23 </li>
24
25</ul>
26 <big><big><b>Install files</b></big></big>
27<ul>
28 <li>Go to <a href="http://ltp.sf.net/" target="_top">http://ltp.sf.net</a>
29-&gt; Downloads -&gt; Download latest version of LTP</li>
30 <li>Login as root on MASTER machine</li>
31 <li>Untar ltp-xxxxxxxx.tgz in /root</li>
32
33 <ul>
34 <li>tar -xzvf &lt;filename.tgz&gt;</li>
35 <li>mv ltp-&lt;yyyymmdd&gt;.tgz ltp <i>(&lt;yyyymmdd&gt; should be replaced
36 with the drop date you are using</i></li>
37
38 </ul>
39
40</ul>
41 <big><big><b>Setup/Edit config files</b></big></big>
42<ul>
43
44 <ul>
45
46 </ul>
47
48</ul>
49
50<ul>
51
52 <ul>
53
54 </ul>
55
56</ul>
57
58<ul>
59 <li>edit runalltests.sh and modify the run line to include the PAN_LOG
60options:</li>
61
62 <ul>
subrata_modak14390fd2009-05-19 09:39:11 +000063 <li>ex: <i>${LTPROOT}/pan/ltp-pan -l $PAN_LOG -e -S $instances $time -a
martinjn9569ba92002-09-10 19:57:59 +000064$$ -n $$ -f ${TMP}/alltests</i></li>
65
66 </ul>
67 <li>tar up the ltp directory (<i>this is the ltp.tgz that is copied to
68the TARGET machines</i>)</li>
69
70 <ul>
71 <li>in the root directory of MASTER type tar -czvf ltp.tgz to tar up
72the testcases</li>
73 <li>copy the resulting ltp.tgz to /tmp on MASTER (<i>autoltp will look
74for /ltp.tgz in the tmp directory</i>)<br>
75 </li>
76
77 </ul>
78
79 <ul>
80
81 </ul>
82
83</ul>
84
85<ul>
86
87 <ul>
88
89 </ul>
90
91</ul>
92 <big><big><b>Run LTP</b></big></big><br>
93
94<ul>
95 <li>cd to /root/ltp/auto on MASTER</li>
96 <li>create a config file that contains the list of hosts (TARGETS) to
97run LTP against</li>
98
99 <ul>
100 <li>example config file:<br>
101host1,username,password,number of instances,time<br>
102 host2,username,password,number of instances,time</li>
103 <li>host is the hostname of a TARGET machine<br>
104 </li>
105 <li>username is usually root or a root privileged account</li>
106 <li>number of instances is how many copies of LTP you want running simultaneously</li>
107 <li>time is the duration of the ltp run where 10m = 10 minutes, 2h =
1082 hours, etc</li>
109 </ul>
110 <li>run ./autoltp -f &lt;config file&gt;</li>
111 <li>autoltp will then attempt to make ssh/sftp connections with your TARGET
112machines and run the LTP testcases<br>
113 </li>
114</ul>
115<ul>
116
117</ul>
118
119</body>
120</html>