Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Test-Command-0.11-bp156.3.1 RPM for noarch

From OpenSuSE Leap 15.6 for noarch

Name: perl-Test-Command Distribution: SUSE Linux Enterprise 15 SP6
Version: 0.11 Vendor: openSUSE
Release: bp156.3.1 Build date: Sat Jul 22 11:25:32 2023
Group: Development/Libraries/Perl Build host: goat41
Size: 36485 Source RPM: perl-Test-Command-0.11-bp156.3.1.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/Test-Command/
Summary: Test routines for external commands
'Test::Command' intends to bridge the gap between the well tested functions
and objects you choose and their usage in your programs. By examining the
exit status, terminating signal, STDOUT and STDERR of your program you can
determine if it is behaving as expected.

This includes testing the various combinations and permutations of options
and arguments as well as the interactions between the various functions and
objects that make up your program.

The various test functions below can accept either a command string or an
array reference for the first argument. If the command is expressed as a
string it is passed to 'system' as is. If the command is expressed as an
array reference it is dereferenced and passed to 'system' as a list. See
''perldoc -f system'' for how these may differ.

The final argument for the test functions, '$name', is optional. By default
the '$name' is a concatenation of the test function name, the command
string and the expected value. This construction is generally sufficient
for identifying a failing test, but you may always specify your own '$name'
if desired.

Any of the test functions can be used as instance methods on a
'Test::Command' object. This is done by dropping the initial '$cmd'
argument and instead using arrow notation.

All of the following 'exit_is_num' calls are equivalent.

   exit_is_num('true', 0);
   exit_is_num('true', 0, 'exit_is_num: true, 0');
   exit_is_num(['true'], 0);
   exit_is_num(['true'], 0, 'exit_is_num: true, 0');

   my $cmd = Test::Command->new( cmd => 'true' );

   exit_is_num($cmd, 0);
   exit_is_num($cmd, 0, 'exit_is_num: true, 0');
   $cmd->exit_is_num(0);
   $cmd->exit_is_num(0, 'exit_is_num: true, 0');

   $cmd = Test::Command->new( cmd => ['true'] );

   exit_is_num($cmd, 0);
   exit_is_num($cmd, 0, 'exit_is_num: true, 0');
   $cmd->exit_is_num(0);
   $cmd->exit_is_num(0, 'exit_is_num: true, 0');

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Tue Jun 04 2013 coolo@suse.com
  - updated to 0.11
    - fix determination of diagnostic test name in signal_is_undef()
    - fix signal tests on Win32 platforms
    - added exit_value(), signal_value(), stdout_value(), stdout_file(),
      stderr_value() and stderr_file() (these provide access to raw value
      for arbitrary testing not covered by this module)
* Mon May 30 2011 coolo@novell.com
  - regenerate with newest cpanspec
* Sat Jan 22 2011 coolo@novell.com
  - initial package 0.08
    * created by cpanspec 1.78.03

Files

/usr/lib/perl5/vendor_perl/5.26.1/Test
/usr/lib/perl5/vendor_perl/5.26.1/Test/Command.pm
/usr/share/doc/packages/perl-Test-Command
/usr/share/doc/packages/perl-Test-Command/Changes
/usr/share/doc/packages/perl-Test-Command/README
/usr/share/man/man3/Test::Command.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Jul 9 19:58:50 2024