From 840e0c4d626a07e52cd1c0409ba7c4aa4c96d0fd Mon Sep 17 00:00:00 2001 From: pgj Date: Fri, 21 May 2010 21:57:42 +0000 Subject: Allows tests such as QuickCheck properties and HUnit test cases to be assembled into test groups, run in parallel (but reported in deterministic order, to aid diff interpretation) and filtered and controlled by command line options. All of this comes with colored test output, progress reporting and test statistics output. WWW: http://batterseapower.github.com/test-framework/ --- devel/Makefile | 1 + devel/hs-test-framework/Makefile | 31 +++++++++++++++++++++++++++++ devel/hs-test-framework/distinfo | 3 +++ devel/hs-test-framework/pkg-descr | 7 +++++++ devel/hs-test-framework/pkg-plist | 42 +++++++++++++++++++++++++++++++++++++++ lang/ghc/bsd.hackage.mk | 1 + 6 files changed, 85 insertions(+) create mode 100644 devel/hs-test-framework/Makefile create mode 100644 devel/hs-test-framework/distinfo create mode 100644 devel/hs-test-framework/pkg-descr create mode 100644 devel/hs-test-framework/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 58955c8fefce..6504161e09af 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -595,6 +595,7 @@ SUBDIR += hs-smallcheck SUBDIR += hs-split SUBDIR += hs-terminfo + SUBDIR += hs-test-framework SUBDIR += hs-testpack SUBDIR += hs-transformers SUBDIR += hs-unamb diff --git a/devel/hs-test-framework/Makefile b/devel/hs-test-framework/Makefile new file mode 100644 index 000000000000..bc5de596611a --- /dev/null +++ b/devel/hs-test-framework/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: hs-test-framework +# Date created: May 21, 2010 +# Whom: Gabor Pali +# +# $FreeBSD$ +# + +PORTNAME= test-framework +PORTVERSION= 0.3.1 +CATEGORIES= devel haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Framework for running and organising tests + +USE_HACKAGE= ansi-terminal>=0.4.0 ansi-wl-pprint>=0.5.1 hostname>=1.0 xml>=1.3.5 + +OPTIONS= TESTS "Build the tests" off + +.include + +.if defined(WITH_TESTS) +CONFIGURE_ARGS+= --flags="Tests" +EXECUTABLE= test-framework-tests +PLIST_SUB+= MAYBE_TESTS="" +.else +CONFIGURE_ARGS+= --flags="-Tests" +PLIST_SUB+= MAYBE_TESTS="@comment " +.endif + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/devel/hs-test-framework/distinfo b/devel/hs-test-framework/distinfo new file mode 100644 index 000000000000..54342a26e5e7 --- /dev/null +++ b/devel/hs-test-framework/distinfo @@ -0,0 +1,3 @@ +MD5 (test-framework-0.3.1.tar.gz) = 30668be4cc751042458b26b828c4def1 +SHA256 (test-framework-0.3.1.tar.gz) = cd08ee2359dd51c9f602e267bc5b6cb287d19bc6d9b6a2fcce1f0d30fdf03c4b +SIZE (test-framework-0.3.1.tar.gz) = 18644 diff --git a/devel/hs-test-framework/pkg-descr b/devel/hs-test-framework/pkg-descr new file mode 100644 index 000000000000..0ef7278ec329 --- /dev/null +++ b/devel/hs-test-framework/pkg-descr @@ -0,0 +1,7 @@ +Allows tests such as QuickCheck properties and HUnit test cases to be +assembled into test groups, run in parallel (but reported in +deterministic order, to aid diff interpretation) and filtered and +controlled by command line options. All of this comes with colored test +output, progress reporting and test statistics output. + +WWW: http://batterseapower.github.com/test-framework/ diff --git a/devel/hs-test-framework/pkg-plist b/devel/hs-test-framework/pkg-plist new file mode 100644 index 000000000000..a0cff169a74b --- /dev/null +++ b/devel/hs-test-framework/pkg-plist @@ -0,0 +1,42 @@ +@comment $FreeBSD$ +%%MAYBE_TESTS%%bin/test-framework-tests +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Core.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Improving.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Options.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Providers/API.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/Colors.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/ProgressBar.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/Run.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/Statistics.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/Table.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console/Utilities.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Core.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Options.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Processors.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Statistics.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/TestPattern.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/ThreadPool.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/TimedConsumption.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/XML.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/XML/JUnitWriter.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Seed.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Utilities.hi +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/XML +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners/Console +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Runners +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework/Providers +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/Framework +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test +@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%LIBDIR_REL%% +@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%% +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk index 35006af89d4e..df8e5ba0f4d2 100644 --- a/lang/ghc/bsd.hackage.mk +++ b/lang/ghc/bsd.hackage.mk @@ -103,6 +103,7 @@ stringsearch_port= textproc/hs-stringsearch tagsoup_port= textproc/hs-tagsoup # executable Tensor_port= devel/hs-Tensor terminfo_port= devel/hs-terminfo +test-framework_port= devel/hs-test-framework testpack_port= devel/hs-testpack texmath_port= textproc/hs-texmath # executable transformers_port= devel/hs-transformers -- cgit