import p5-Test-MockTime
This module was created to enable test suites to test code at specific points in time. Specifically it overrides localtime, gmtime and time at compile time and then relies on the user supplying a mock time via set_relative_time, set_absolute_time or set_fixed_time to alter future calls to gmtime, time or localtime.
This commit is contained in:
parent
6291e71bdd
commit
60ee9f6eae
19
devel/p5-Test-MockTime/Makefile
Normal file
19
devel/p5-Test-MockTime/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/02/05 22:04:58 simon Exp $
|
||||
|
||||
COMMENT = replaces actual time with simulated time
|
||||
|
||||
MODULES = cpan
|
||||
DISTNAME = Test-MockTime-0.09
|
||||
CATEGORIES = devel
|
||||
|
||||
MAINTAINER = Simon Bertrang <simon@openbsd.org>
|
||||
|
||||
# Perl
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MAKE_ENV += TEST_POD=1
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/p5-Test-MockTime/distinfo
Normal file
5
devel/p5-Test-MockTime/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (Test-MockTime-0.09.tar.gz) = zDlFxPjTM6GpMUwKmH7zOg==
|
||||
RMD160 (Test-MockTime-0.09.tar.gz) = 1fSEjNH2we18qUFTF6tNZEIAmaE=
|
||||
SHA1 (Test-MockTime-0.09.tar.gz) = /12bpahVotomCcc3/IwxpI3u6tE=
|
||||
SHA256 (Test-MockTime-0.09.tar.gz) = Y7e+G+bNP53omZfOtAxoBSPVj84RNzef7tP5P6OPWcg=
|
||||
SIZE (Test-MockTime-0.09.tar.gz) = 4286
|
5
devel/p5-Test-MockTime/pkg/DESCR
Normal file
5
devel/p5-Test-MockTime/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
This module was created to enable test suites to test code at specific
|
||||
points in time. Specifically it overrides localtime, gmtime and time at
|
||||
compile time and then relies on the user supplying a mock time via
|
||||
set_relative_time, set_absolute_time or set_fixed_time to alter future
|
||||
calls to gmtime, time or localtime.
|
5
devel/p5-Test-MockTime/pkg/PLIST
Normal file
5
devel/p5-Test-MockTime/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/02/05 22:04:58 simon Exp $
|
||||
${P5SITE}/Test/
|
||||
${P5SITE}/Test/MockTime.pm
|
||||
${P5SITE}/Test/MockTime.pod
|
||||
@man man/man3p/Test::MockTime.3p
|
Loading…
Reference in New Issue
Block a user