From 60ee9f6eaea5507d5bb5c35f20465307b9860b4b Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 5 Feb 2009 22:04:58 +0000 Subject: [PATCH] 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. --- devel/p5-Test-MockTime/Makefile | 19 +++++++++++++++++++ devel/p5-Test-MockTime/distinfo | 5 +++++ devel/p5-Test-MockTime/pkg/DESCR | 5 +++++ devel/p5-Test-MockTime/pkg/PLIST | 5 +++++ 4 files changed, 34 insertions(+) create mode 100644 devel/p5-Test-MockTime/Makefile create mode 100644 devel/p5-Test-MockTime/distinfo create mode 100644 devel/p5-Test-MockTime/pkg/DESCR create mode 100644 devel/p5-Test-MockTime/pkg/PLIST diff --git a/devel/p5-Test-MockTime/Makefile b/devel/p5-Test-MockTime/Makefile new file mode 100644 index 00000000000..96d9d91c062 --- /dev/null +++ b/devel/p5-Test-MockTime/Makefile @@ -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 + +# Perl +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +MAKE_ENV += TEST_POD=1 + +.include diff --git a/devel/p5-Test-MockTime/distinfo b/devel/p5-Test-MockTime/distinfo new file mode 100644 index 00000000000..92c069ac56b --- /dev/null +++ b/devel/p5-Test-MockTime/distinfo @@ -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 diff --git a/devel/p5-Test-MockTime/pkg/DESCR b/devel/p5-Test-MockTime/pkg/DESCR new file mode 100644 index 00000000000..7d8fbf691ec --- /dev/null +++ b/devel/p5-Test-MockTime/pkg/DESCR @@ -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. diff --git a/devel/p5-Test-MockTime/pkg/PLIST b/devel/p5-Test-MockTime/pkg/PLIST new file mode 100644 index 00000000000..d6c6050ea6a --- /dev/null +++ b/devel/p5-Test-MockTime/pkg/PLIST @@ -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