diff options
author | 2013-08-25 06:33:50 +0000 | |
---|---|---|
committer | 2013-08-25 06:33:50 +0000 | |
commit | ef1388324bb8a28070a020fcc34c102a9c534e9d (patch) | |
tree | b486384d1a8e51813787f7e74d38f488f639c2d2 /dev-haskell/test-framework-th | |
parent | dev-haskell/language-haskell-extract: 0.2.4 (diff) | |
download | historical-ef1388324bb8a28070a020fcc34c102a9c534e9d.tar.gz historical-ef1388324bb8a28070a020fcc34c102a9c534e9d.tar.bz2 historical-ef1388324bb8a28070a020fcc34c102a9c534e9d.zip |
dev-haskell/test-framework-th: 0.2.4
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0xEAD50D64D8D3571A!
Diffstat (limited to 'dev-haskell/test-framework-th')
-rw-r--r-- | dev-haskell/test-framework-th/ChangeLog | 9 | ||||
-rw-r--r-- | dev-haskell/test-framework-th/Manifest | 20 | ||||
-rw-r--r-- | dev-haskell/test-framework-th/metadata.xml | 54 | ||||
-rw-r--r-- | dev-haskell/test-framework-th/test-framework-th-0.2.4.ebuild | 27 |
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-haskell/test-framework-th/ChangeLog b/dev-haskell/test-framework-th/ChangeLog new file mode 100644 index 000000000000..e777004dcccd --- /dev/null +++ b/dev-haskell/test-framework-th/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-haskell/test-framework-th +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/test-framework-th/ChangeLog,v 1.1 2013/08/25 06:33:45 qnikst Exp $ + +*test-framework-th-0.2.4 (25 Aug 2013) + + 25 Aug 2013; Alexander Vershilov <qnikst@gentoo.org> +metadata.xml, + +test-framework-th-0.2.4.ebuild: + dev-haskell/test-framework-th: 0.2.4 diff --git a/dev-haskell/test-framework-th/Manifest b/dev-haskell/test-framework-th/Manifest new file mode 100644 index 000000000000..f77087535c14 --- /dev/null +++ b/dev-haskell/test-framework-th/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST test-framework-th-0.2.4.tar.gz 2977 SHA256 8b780d9e3edd8d91e24f72d9fa1f80420e52959428ad7c22d0694901a43f9c8a SHA512 0e8b6898eb7bf481bafb0c9ff9caa615dbf768e538e26b15ab899c5c9a1ad6bd6ed76ef93cf9a823706046d41f49fbb0cbe660bf846e59a608a0e5d21e89686b WHIRLPOOL 37718161ec8be33a7dda311beb4de15eeecec2712bdfd16c848830149d4aec5df47f0d402d9967b0f4552eb1602277efe2a6d7f7d2279063dbd9986501155dc5 +EBUILD test-framework-th-0.2.4.ebuild 909 SHA256 8082c9b6c5b7b6075f526a43d0460d80247921d89dbb3830f3e5d0bc5af8d9bf SHA512 6d178f6ea1fda72750603f3e83c74e8eaab380e9a12853a6c7d92a895543f6d46e2fd8b110c9fa50243ff43d91addc8ad8dfe9b3dd8617827fa5d8c0a931a347 WHIRLPOOL 3d22add124fca537165f93ec24f0d04021ca68af3779d6b3704619936091428c46bf610afe8575fa0df763a9311b63e70952e73af321f7fede32687877018571 +MISC ChangeLog 415 SHA256 3e8843c3d0695caa1885a73d3c095f14d814cd7711d5f84d18623a3f03cfa858 SHA512 d49f39d0820d880ea3bf6de2cc65f2375ced782582b8af92a487d620098e0db0f2b7bdf94efca7b897f08b877b5a4e95e8625a5425d5a0bc683655843271d1a6 WHIRLPOOL 07b4e79f892c407ca435727daddfc91464a49470f599a8b7ddfef12f3bf2a72ecbac942eee2b4c4866da32eeccdfefebd977387a5e4239531c2f2653cb8005a7 +MISC metadata.xml 1909 SHA256 825a227d97a65c8cdbfb913aae78b68d48a45b1f31193c7b07974becbcedf825 SHA512 a2314315ddb7b0cd17b45acbc1cd59432df2fbe538b054b3b0c44178593c53b24f0a0b551415dd1552f2f42f296230b643f9ee535be1b8c87a256628e192df8a WHIRLPOOL 7c66cdd413ef1000fb659eeb8ed26cb3a9fdbb8d8ede75da92649ae52d495e6c1ce3fde48defd44994230d175539c432622f1644b947f96309ad2a25827d350f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.21 (GNU/Linux) + +iQF8BAEBCABmBQJSGaVOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwMTlGQTEwRTVCMUJCNjdFRDM5Qzg3RjdF +QUQ1MEQ2NEQ4RDM1NzFBAAoJEOrVDWTY01ca388H+wXzXpPLT7C63OsBhjL32eJD +zNIyNTuHxubt6M92CuQRxJqaEpfh2/8KhOmRamUVpggPTv3hWa5/nDWeEGdr/o/4 +5zgtpM3nkrg9jKfUty4mF2aFoSu0wKryV6+R0r7AzawS6xzQe1KM10bi3IDoy5Q+ +wusshanoGC5xjp/47A7QShe7xagH33u/Oq44wjidKAi94PHqfaTcWSxvjCa/vaXY +8asAXAePhV8ADSk3QJio7c6gTycJiY7hWELRVbFTkax/lP2BxDmdSF6T551TdReT +xecwsgvZs1tcfCinDvh7hVz9s+EodtJkE29Vn/KUiM5BII/oU7QUOlnHG70y1p0= +=qK/B +-----END PGP SIGNATURE----- diff --git a/dev-haskell/test-framework-th/metadata.xml b/dev-haskell/test-framework-th/metadata.xml new file mode 100644 index 000000000000..a0dcdee4a393 --- /dev/null +++ b/dev-haskell/test-framework-th/metadata.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <maintainer> + <email>haskell@gentoo.org</email> + </maintainer> + <longdescription> + @test-framework-th@ contains two interesting functions: @defaultMainGenerator@ and @testGroupGenerator@. + + @defaultMainGenerator@ will extract all functions beginning with case_ or prop_ in the module and put them in a testGroup. + + > -- file SomeModule.hs + > ( -# LANGUAGE TemplateHaskell #- ) + > module SomeModule where + > import Test.Framework.TH + > import Test.Framework + > import Test.HUnit + > import Test.Framework.Providers.HUnit + > import Test.Framework.Providers.QuickCheck2 + > + > -- observe this line! + > main = $(defaultMainGenerator) + > case_1 = do 1 @=? 1 + > case_2 = do 2 @=? 2 + > prop_reverse xs = reverse (reverse xs) == xs + > where types = xs::[Int] + + is the same as + + > -- file SomeModule.hs + > ( -# LANGUAGE TemplateHaskell #- ) + > module SomeModule where + > import Test.Framework.TH + > import Test.Framework + > import Test.HUnit + > import Test.Framework.Providers.HUnit + > import Test.Framework.Providers.QuickCheck2 + > + > -- observe this line! + > main = + > defaultMain [ + > testGroup "SomeModule" [ testCase "1" case_1, testCase "2" case_2, testProperty "reverse" prop_reverse] + > ] + > + > case_1 = do 1 @=? 1 + > case_2 = do 2 @=? 2 + > prop_reverse xs = reverse (reverse xs) == xs + > where types = xs::[Int] + + @testGroupGenerator@ is like @defaultMainGenerator@ but without @defaultMain@. It is useful if you need a function for the testgroup + (e.g. if you want to be able to call the testgroup from another module). + </longdescription> +</pkgmetadata> diff --git a/dev-haskell/test-framework-th/test-framework-th-0.2.4.ebuild b/dev-haskell/test-framework-th/test-framework-th-0.2.4.ebuild new file mode 100644 index 000000000000..066126e95f0b --- /dev/null +++ b/dev-haskell/test-framework-th/test-framework-th-0.2.4.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/test-framework-th/test-framework-th-0.2.4.ebuild,v 1.1 2013/08/25 06:33:45 qnikst Exp $ + +EAPI=5 + +# ebuild generated by hackport 0.3.1.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Automagically generate the HUnit- and Quickcheck-bulk-code using Template Haskell." +HOMEPAGE="http://github.com/finnsson/test-generator" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-haskell/haskell-src-exts:=[profile?] + >=dev-haskell/language-haskell-extract-0.2:=[profile?] + dev-haskell/regex-posix:=[profile?] + dev-haskell/test-framework:=[profile?] + >=dev-lang/ghc-6.10.4:=" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" |