BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Test-Command-Simple0.05
OpenBSDdevel/p5-Test-Command-Simple0.05p1
NetBSDdevel/p5-Test-Command-Simple0.05nb11
DragonFlydevel/p5-Test-Command-Simple0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.050.050.050.050.05
FreeBSD:14:quarterly0.050.05n/a0.050.05
FreeBSD:15:latest0.050.05n/a0.050.05
FreeBSD:15:quarterly0.050.05n/an/an/a
FreeBSD:16:latest0.050.05n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
Test-Command-Simple-0.05.tar.gz64194d9dc422f03a620d0c441279f8366d1acf017da9acfdebe68b5a0e5c39c629da
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.