NAME
remotetest.pl - make tests on a remote machine
SYNOPSYS
remotetest.pl MyInteresting-Dist-1.107.tar.gz machine1.domain machine2.domain
DESCRIPTION
The script remotetest.pl
copies a Perl distribution (see ExtUtils::MakeMaker) to each of the listed machines via scp
and proceeeds to run make test
on a temporary directory. Check your distribution on diferent platforms avoiding the familiar excuse It works on my machine.
The script assumes that automatic authentification via ssh has been set up with each of the remote machines.
When conecting to machine1.domain
the program checks if a file with name machine1.domain.premable.pl
exists. If so it will be loaded and evaluated before running the tests in machine1.domain
Example
I have a file named beowulf.preamble.pl
in the ditribution directory:
pp2@nereida:~/LGRID_Machine$ cat -n beowulf.preamble.pl
1 $ENV{GRID_REMOTE_MACHINE} = "orion";
Now when I run remotetest.pl
for a distribution in machine beowulf
the environment variable GRID_REMOTE_MACHINE
will be set in beowulf prior to the execution of the tests:
pp2@nereida:~/LGRID_Machine$ scripts/remotetest.pl GRID-Machine-0.090.tar.gz beowulf
************beowulf************
Writing Makefile for GRID::Machine
Manifying blib/man3/GRID::Machine::Result.3pm
Manifying blib/man3/GRID::Machine.3pm
Manifying blib/man3/GRID::Machine::RIOHandle.3pm
Manifying blib/man3/GRID::Machine::MakeAccessors.3pm
Manifying blib/man3/GRID::Machine::REMOTE.3pm
Manifying blib/man3/GRID::Machine::Message.3pm
Manifying blib/man3/GRID::Machine::IOHandle.3pm
Manifying blib/man3/GRID::Machine::Core.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01synopsis..............ok
t/02pod...................ok
t/03includes..............ok
t/05podcoverage...........ok
t/06callbacks.............ok
t/07anonymouscallback2....ok
t/08callbackbyname........ok
t/09errandlinenumbers.....ok
t/10manyevals.............ok
t/11tworemoteinputs.......ok
t/12pipes.................ok
t/13pipes.................ok
All tests successful.
Files=12, Tests=209, 10 wallclock secs ( 3.46 cusr + 0.31 csys = 3.77 CPU)
AUTHOR
Casiano Rodriguez-Leon
COPYRIGHT
(c) Copyright 2008 Casiano Rodriguez-Leon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.