Lire::Test::CommandResult(3pm)

Lire::Test::CommandResult3pm

Object used to report the results of shell commands

Usage

  use Lire::Test::FunctionalTestCase;
  my $result = $self->lire_run( "echo Test" );
  print $result->status();
  print $result->stdout();
  print $result->stderr();
  print scalar $result->sent_mail(), " emails were sent.\n";

Overview

Lire::Test::ComandResult objects are used to report the results of shell commands run through Lire::Test::FunctionalTestCase::lire_run().

command()

Returns the shell command that was run. This is the complete command line which was interpreated by the shell.

status()

Returns the command result status. (What is usually contained in $?).

stdout()

Returns what was output on stdout while executing the command.

stderr()

Returns what was output on stderr while executing the command.

sent_mail()

Returns in an array reference the message that were sent out during this command run. The element of this array are hash reference containing two keys:

recipients

An array reference containing the recipients as passed on the command line to sendmail.

message

The email which was sent. This is the complete text of the email. This is what was passed to sendmail via STDIN.

Version

$Id: CommandResult.pm,v 1.6 2006/07/23 13:16:31 vanbaal Exp $

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Author

Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.