devel/p5-Test-Command-Simple 0.05 FreeBSD
Test external commands (nearly) as easily as loaded modules
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 9.9 KiB, 16.4 KiB installed
Description
This test module is intended to simplify testing of external commands. It does so by running the command under IPC::Open3, closing the stdin immediately, and reading everything from the command's stdout and stderr. It then makes the output available to be tested.
It is not (yet?) as feature-rich as Test::Cmd, but I think the interface to this is much simpler. Tests also plug directly into the Test::Builder framework, which plays nice with Test::More.
As compared to Test::Command, this module is simpler, relying on the user to feed rc, stdout, and stderr to the appropriate other tests, presumably in Test::More, but not necessarily.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Test-Command-Simple | 0.05 |
| OpenBSD | devel/p5-Test-Command-Simple | 0.05p1 |
| NetBSD | devel/p5-Test-Command-Simple | 0.05nb11 |
| DragonFly | devel/p5-Test-Command-Simple | 0.05 |
Install
Binary package:
pkg install p5-Test-Command-Simple
From the ports tree:
cd /usr/ports/devel/p5-Test-Command-Simple/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Test-Command-Simple>0:devel/p5-Test-Command-Simple
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.05 | 0.05 | 0.05 | 0.05 | 0.05 |
| FreeBSD:14:quarterly | 0.05 | 0.05 | n/a | 0.05 | 0.05 |
| FreeBSD:15:latest | 0.05 | 0.05 | n/a | 0.05 | 0.05 |
| FreeBSD:15:quarterly | 0.05 | 0.05 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.05 | 0.05 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
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/Simple.pm
- %%PERL5_MAN3%%/Test::Command::Simple.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Test-Command-Simple-0.05.tar.gz | 6419 | 4d9dc422f03a620d0c441279f8366d1acf017da9acfdebe68b5a0e5c39c629da |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.