BSD Ports

devel/p5-Test-Command-Simple 0.05 DragonFly

Test external commands (nearly) as easily as loaded modules

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
9.5 KiB, 16.6 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
DragonFlydevel/p5-Test-Command-Simple0.05
FreeBSDdevel/p5-Test-Command-Simple0.05
OpenBSDdevel/p5-Test-Command-Simple0.05p1
NetBSDdevel/p5-Test-Command-Simple0.05nb11
HardenedBSDdevel/p5-Test-Command-Simple0.05
GhostBSDdevel/p5-Test-Command-Simple0.05

Install

Binary package:

pkg install p5-Test-Command-Simple

From DPorts:

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

Dependencies

Run dependencies 1

No port depends on this one.