BSD Ports

devel/p5-Test-Mock-Cmd 0.7nb3 NetBSD

Mock system(), exec(), and qx() for testing

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
9.7 KiB, 27.6 KiB installed

Description

Mock system(), exec(), qx() (AKA `` and readpipe()) with your own functions in order to test code that may call them.

Some uses might be:

  • avoid actually running the system command, just pretend we did (simulate [un]expected output, return values, etc)
  • test various return value handling (e.g. the system command core dumps how does the object handle that)
  • test that the arguments that will be passed to a system command are correct
  • simulate that really hard to reproduce low level edge case to make sure your code works correctly on affected systems
  • etc etc

Install

Binary package:

pkgin install p5-Test-Mock-Cmd

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Test-Mock-Cmd && make install clean

Packages

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

RepositoryVersion
NetBSD 10.1 x86_640.7nb3
NetBSD 10.1 aarch640.7nb3
SmartOS / illumos x86_640.7nb3
macOS 15 arm640.7nb3

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0