LTP Automation
using autoltp
Prerequisites

- All LTP installation prerequisites must be met
- Perl modules Net::SFTP and Net::SSH::Perl must be installed on MASTER machine. (www.cpan.org for instructions/downloads)
- MASTER and TARGET machines must have sftp and ssh capabilities.
- IP addresses may replace hostnames in this document if name service is unavailable.

Install files

- Go to http://ltp.sf.net -> Downloads -> Download latest version of LTP
- Login as root on MASTER machine
- Untar ltp-xxxxxxxx.tgz in /root

- tar -xzvf <filename.tgz>
- mv ltp-<yyyymmdd>.tgz ltp (<yyyymmdd> should be replaced with the drop date you are using

Setup/Edit config files

- edit runalltests.sh and modify the run line to include the PAN_LOG options:

- ex: ${LTPROOT}/pan/ltp-pan -l $PAN_LOG -e -S $instances $time -a $$ -n $$ -f ${TMP}/alltests

- tar up the ltp directory (this is the ltp.tgz that is copied to the TARGET machines)

- in the root directory of MASTER type tar -czvf ltp.tgz to tar up the testcases
- copy the resulting ltp.tgz to /tmp on MASTER (autoltp will look for /ltp.tgz in the tmp directory)

Run LTP

- cd to /root/ltp/auto on MASTER
- create a config file that contains the list of hosts (TARGETS) to run LTP against

- example config file:
  host1,username,password,number of instances,time
  host2,username,password,number of instances,time
- host is the hostname of a TARGET machine
- username is usually root or a root privileged account
- number of instances is how many copies of LTP you want running simultaneously
- time is the duration of the ltp run where 10m = 10 minutes, 2h = 2 hours, etc

- run ./autoltp -f <config file>
- autoltp will then attempt to make ssh/sftp connections with your TARGET machines and run the LTP testcases