BSD Ports

devel/p5-Test-Command 0.11_1 FreeBSD

Test routines for external commands

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
14.2 KiB, 38.3 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Test-Command0.11_1
OpenBSDdevel/p5-Test-Command0.11p2
DragonFlydevel/p5-Test-Command0.11_1
HardenedBSDdevel/p5-Test-Command0.11_1
GhostBSDdevel/p5-Test-Command0.11_1

Install

Binary package:

pkg install p5-Test-Command

From the ports tree:

cd /usr/ports/devel/p5-Test-Command/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Test-Command>0:devel/p5-Test-Command

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.11_10.11_10.11_10.11_10.11_1
FreeBSD:14:quarterly0.11_10.11_1n/a0.11_10.11_1
FreeBSD:15:latest0.11_10.11_1n/a0.11_10.11_1
FreeBSD:15:quarterly0.11_10.11_1n/an/an/a
FreeBSD:16:latest0.11_10.11_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 2

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Test/Command.pm
  • %%PERL5_MAN3%%/Test::Command.3.gz
distinfo 1
FileSizeSHA256
Test-Command-0.11.tar.gz1081128a3fc6fea73a19f563f11bd0f28186756d4c74207be6deacaad26d2081b9533
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.