1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Add p5-Test-Command 0.08

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.

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.

WWW: http://search.cpan.org/dist/Test-Command/
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-02-10 03:57:03 +00:00
parent 229cf1fbda
commit 40960c6f82
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290834
5 changed files with 56 additions and 0 deletions

View File

@ -2448,6 +2448,7 @@
SUBDIR += p5-Test-Class
SUBDIR += p5-Test-ClassAPI
SUBDIR += p5-Test-Cmd
SUBDIR += p5-Test-Command
SUBDIR += p5-Test-Command-Simple
SUBDIR += p5-Test-Compile
SUBDIR += p5-Test-DBIx-Class

View File

@ -0,0 +1,24 @@
# New ports collection makefile for: p5-Test-Command
# Date created: 2012-02-10
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Test-Command
PORTVERSION= 0.08
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Test routines for external commands
TEST_DEPENDS= p5-Test-Pod>=1.14:${PORTSDIR}/devel/p5-Test-Pod \
p5-Test-Pod-Coverage>=1.04:${PORTSDIR}/devel/p5-Test-Pod-Coverage
PERL_CONFIGURE= yes
MAN3= Test::Command.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Test-Command-0.08.tar.gz) = 5c46f5eab3f2c6bbfde4b3ceb01fb78eb7468f381b913355ca84c61a9cf76788
SIZE (Test-Command-0.08.tar.gz) = 9967

View File

@ -0,0 +1,24 @@
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.
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.
WWW: http://search.cpan.org/dist/Test-Command/

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/Test/Command.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Command/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Command
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test
@dirrmtry %%SITE_PERL%%/Test