aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-05-22 05:57:42 +0800
committerpgj <pgj@FreeBSD.org>2010-05-22 05:57:42 +0800
commit840e0c4d626a07e52cd1c0409ba7c4aa4c96d0fd (patch)
tree146f78c6d3d9c40209700df355e561e157c6adbe
parentccd06addc1de1453a863719daa068d477a65d1ba (diff)
downloadfreebsd-ports-gnome-840e0c4d626a07e52cd1c0409ba7c4aa4c96d0fd.tar.gz
freebsd-ports-gnome-840e0c4d626a07e52cd1c0409ba7c4aa4c96d0fd.tar.zst
freebsd-ports-gnome-840e0c4d626a07e52cd1c0409ba7c4aa4c96d0fd.zip
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/
-rw-r--r--devel/Makefile1
-rw-r--r--devel/hs-test-framework/Makefile31
-rw-r--r--devel/hs-test-framework/distinfo3
-rw-r--r--devel/hs-test-framework/pkg-descr7
-rw-r--r--devel/hs-test-framework/pkg-plist42
-rw-r--r--lang/ghc/bsd.hackage.mk1
6 files changed, 85 insertions, 0 deletions
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 <pgj@FreeBSD.org>
+#
+# $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 <bsd.port.options.mk>
+
+.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 <bsd.port.mk>
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