Initial import of Test-Harness-1.25

---

By using the Test module, you can write test scripts without knowing
the exact output this module expects.
This commit is contained in:
shell 2001-10-27 09:03:11 +00:00
parent 717656034c
commit f9ddd6d8a7
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# $OpenBSD"
COMMENT= "perl module for running perl test scripts with statistics"
VERSION= 1.25
DISTNAME= Test-Harness-${VERSION}
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
NEED_VERSION= 1.484
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Test
MAINTAINER= Shell Hung <shell@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= perl
post-patch:
@perl -pi.orig -e 'm.INSTALLDIRS.&&s,.,,sg' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Test-Harness-1.25.tar.gz) = ec68b833706a4b6ae17753c234e4d7cd
RMD160 (Test-Harness-1.25.tar.gz) = ba2d91dcc16e08542e9314439235dc05866acbd5
SHA1 (Test-Harness-1.25.tar.gz) = 992cdd5959fb11c88831a5273b49da5d21c762a9

View File

@ -0,0 +1,12 @@
By using the Test module, you can write test scripts without knowing
the exact output this module expects.
Perl test scripts print to standard output "ok N" for each single
test, where N is an increasing sequence of integers. The first line
output by a standard test script is "1..M" with M being the number
of tests that should be run within the test script.
Test::Harness::runtests(@tests) runs all the testscripts named as
arguments and checks standard output for the expected "ok N" strings.
After all tests have been performed, runtests() prints some performance
statistics that are computed by the Benchmark module.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/10/27 09:03:11 shell Exp $
libdata/perl5/site_perl/Test/Harness.pm
man/man3/Test::Harness.3p