diff options
author | Jack Todaro <solpeth@posteo.org> | 2020-07-29 12:02:47 +1000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-01 09:00:27 +0100 |
commit | 3dd38745fd28fc5146b31cf326a0c4aa7523a15d (patch) | |
tree | 602d1ff64dd2eb5cc22417c2cb4b94ecb1c73850 /dev-haskell/tasty-expected-failure | |
parent | dev-haskell/async: bump up to 2.2.2 (diff) | |
download | gentoo-3dd38745fd28fc5146b31cf326a0c4aa7523a15d.tar.gz gentoo-3dd38745fd28fc5146b31cf326a0c4aa7523a15d.tar.bz2 gentoo-3dd38745fd28fc5146b31cf326a0c4aa7523a15d.zip |
dev-haskell/tasty-expected-failure: add package
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jack Todaro <solpeth@posteo.org>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/tasty-expected-failure')
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-haskell/tasty-expected-failure/Manifest b/dev-haskell/tasty-expected-failure/Manifest new file mode 100644 index 000000000000..68cb8ad5cc9f --- /dev/null +++ b/dev-haskell/tasty-expected-failure/Manifest @@ -0,0 +1 @@ +DIST tasty-expected-failure-0.11.1.2.tar.gz 3781 BLAKE2B 04101b477457747abbf1a90fed80ab8692e3f771f27fae8310c0451839b38efadf1751ae302a1bac0f020e01533030563c45a2c0d75b03f9cda88ee23d1d8e12 SHA512 31f89d64a1f700a2563b291d287f559e023b0b1059cf5ad35eb9a8b2d4a7d90b2ffced828017b3e86d7ece0b125787f7512e9f4745c75d38bbc688e09031aae5 diff --git a/dev-haskell/tasty-expected-failure/metadata.xml b/dev-haskell/tasty-expected-failure/metadata.xml new file mode 100644 index 000000000000..38e4a3a924f5 --- /dev/null +++ b/dev-haskell/tasty-expected-failure/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + With the function 'Test.Tasty.ExpectedFailure.expectFail' in the provided module + "Test.Tasty.ExpectedFailure", you can mark that you expect test cases to fail, + and not to pass. + + This can for example be used for test-driven development: Create the tests, + mark them with 'Test.Tasty.ExpectedFailure.expectFail', and you can still push + to the main branch, without your continuous integration branch failing. + + Once someone implements the feature or fixes the bug (maybe unknowingly), the + test suite will tell him so, due to the now unexpectedly passing test, and he + can remove the 'Test.Tasty.ExpectedFailure.expectFail' marker. + + The module also provides 'Test.Tasty.ExpectedFailure.ignoreTest' to avoid + running a test. Both funtions are implemented via the more general + 'Test.Tasty.ExpectedFailure.warpTest', which is also provided. + </longdescription> +</pkgmetadata> diff --git a/dev-haskell/tasty-expected-failure/tasty-expected-failure-0.11.1.2.ebuild b/dev-haskell/tasty-expected-failure/tasty-expected-failure-0.11.1.2.ebuild new file mode 100644 index 000000000000..8da7513fe22d --- /dev/null +++ b/dev-haskell/tasty-expected-failure/tasty-expected-failure-0.11.1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.1.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Mark tasty tests as failure expected" +HOMEPAGE="https://github.com/nomeata/tasty-expected-failure" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/tagged-0.7:=[profile?] <dev-haskell/tagged-0.9:=[profile?] + >=dev-haskell/tasty-0.11:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.10 +" + +src_prepare() { + cabal_chdeps \ + 'base >= 4.5 && <4.14' 'base >= 4.5' + default +} |