pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-Test-Mock-Cmd



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Feb 10 01:15:39 UTC 2024

Added Files:
        pkgsrc/devel/p5-Test-Mock-Cmd: DESCR Makefile distinfo

Log Message:
Add p5-Test-Mock-Cmd: Mock system(), exec(), and qx() for testing

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Test-Mock-Cmd/DESCR \
    pkgsrc/devel/p5-Test-Mock-Cmd/Makefile \
    pkgsrc/devel/p5-Test-Mock-Cmd/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/p5-Test-Mock-Cmd/DESCR
diff -u /dev/null pkgsrc/devel/p5-Test-Mock-Cmd/DESCR:1.1
--- /dev/null   Sat Feb 10 01:15:39 2024
+++ pkgsrc/devel/p5-Test-Mock-Cmd/DESCR Sat Feb 10 01:15:39 2024
@@ -0,0 +1,14 @@
+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
Index: pkgsrc/devel/p5-Test-Mock-Cmd/Makefile
diff -u /dev/null pkgsrc/devel/p5-Test-Mock-Cmd/Makefile:1.1
--- /dev/null   Sat Feb 10 01:15:39 2024
+++ pkgsrc/devel/p5-Test-Mock-Cmd/Makefile      Sat Feb 10 01:15:39 2024
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2024/02/10 01:15:39 schmonz Exp $
+
+DISTNAME=              Test-Mock-Cmd-0.7
+PKGNAME=               p5-${DISTNAME}
+CATEGORIES=            devel perl5
+MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=authors/id/D/DM/DMUEY/}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              https://metacpan.org/pod/Test::Mock::Cmd
+COMMENT=               Mock system(), exec(), and qx() for testing
+LICENSE=               ${PERL5_LICENSE}
+
+DEPENDS+=              p5-Test-Carp-[0-9]*:../../devel/p5-Test-Carp
+
+PERL5_MODULE_TYPE=     Module::Build
+PERL5_PACKLIST=                auto/Test/Mock/Cmd/.packlist
+USE_LANGUAGES=         # none
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/p5-Test-Mock-Cmd/distinfo
diff -u /dev/null pkgsrc/devel/p5-Test-Mock-Cmd/distinfo:1.1
--- /dev/null   Sat Feb 10 01:15:39 2024
+++ pkgsrc/devel/p5-Test-Mock-Cmd/distinfo      Sat Feb 10 01:15:39 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/02/10 01:15:39 schmonz Exp $
+
+BLAKE2s (Test-Mock-Cmd-0.7.tar.gz) = 59aeb53c826f8e99773630179c86214234a031abad722b37d03b6259eb929899
+SHA512 (Test-Mock-Cmd-0.7.tar.gz) = 5791b27e425fc7d28f7027935ab92f6f0c45fff2647dfdbc3e1b94b578e977659dc9896e56b06052139ad5ff6d063ec5f8bea4700ab3a7de9fbcaf49a765423b
+Size (Test-Mock-Cmd-0.7.tar.gz) = 9178 bytes



Home | Main Index | Thread Index | Old Index