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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Test-Command | 0.11_1 |
| OpenBSD | devel/p5-Test-Command | 0.11p2 |
| DragonFly | devel/p5-Test-Command | 0.11_1 |
| HardenedBSD | devel/p5-Test-Command | 0.11_1 |
| GhostBSD | devel/p5-Test-Command | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.11_1 | 0.11_1 | 0.11_1 | 0.11_1 | 0.11_1 |
| FreeBSD:14:quarterly | 0.11_1 | 0.11_1 | n/a | 0.11_1 | 0.11_1 |
| FreeBSD:15:latest | 0.11_1 | 0.11_1 | n/a | 0.11_1 | 0.11_1 |
| FreeBSD:15:quarterly | 0.11_1 | 0.11_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.11_1 | 0.11_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Test 2
p5-Test-Pod>=1.14: devel/p5-Test-Podp5-Test-Pod-Coverage>=1.04: devel/p5-Test-Pod-Coverage
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
| File | Size | SHA256 |
|---|---|---|
| Test-Command-0.11.tar.gz | 10811 | 28a3fc6fea73a19f563f11bd0f28186756d4c74207be6deacaad26d2081b9533 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.