3 <title>autoltp cookbook
</title>
6 <body bgcolor=
"#ffffff" vlink=
"#800000">
8 <div align=
"center"><big><big><big><b>LTP Automation
<br>
9 using autoltp
</b></big></big></big></div>
12 <big><big><b>Prerequisites
</b></big></big>
14 <li>All LTP installation prerequisites must be met
<br>
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>
18 on 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>
21 <li>IP addresses may replace hostnames in this document if name service
26 <big><big><b>Install files
</b></big></big>
28 <li>Go to
<a href=
"http://ltp.sf.net/" target=
"_top">http://ltp.sf.net
</a>
29 -
> Downloads -
> Download latest version of LTP
</li>
30 <li>Login as root on MASTER machine
</li>
31 <li>Untar ltp-xxxxxxxx.tgz in /root
</li>
34 <li>tar -xzvf
<filename.tgz
></li>
35 <li>mv ltp-
<yyyymmdd
>.tgz ltp
<i>(
<yyyymmdd
> should be replaced
36 with the drop date you are using
</i></li>
41 <big><big><b>Setup/Edit config files
</b></big></big>
59 <li>edit runalltests.sh and modify the run line to include the PAN_LOG
63 <li>ex:
<i>${LTPROOT}/pan/ltp-pan -l $PAN_LOG -e -S $instances $time -a
64 $$ -n $$ -f ${TMP}/alltests
</i></li>
67 <li>tar up the ltp directory (
<i>this is the ltp.tgz that is copied to
68 the TARGET machines
</i>)
</li>
71 <li>in the root directory of MASTER type tar -czvf ltp.tgz to tar up
73 <li>copy the resulting ltp.tgz to /tmp on MASTER (
<i>autoltp will look
74 for /ltp.tgz in the tmp directory
</i>)
<br>
92 <big><big><b>Run LTP
</b></big></big><br>
95 <li>cd to /root/ltp/auto on MASTER
</li>
96 <li>create a config file that contains the list of hosts (TARGETS) to
100 <li>example config file:
<br>
101 host1,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>
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 =
110 <li>run ./autoltp -f
<config file
></li>
111 <li>autoltp will then attempt to make ssh/sftp connections with your TARGET
112 machines and run the LTP testcases
<br>