From 3dd38745fd28fc5146b31cf326a0c4aa7523a15d Mon Sep 17 00:00:00 2001 From: Jack Todaro Date: Wed, 29 Jul 2020 12:02:47 +1000 Subject: dev-haskell/tasty-expected-failure: add package Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jack Todaro Signed-off-by: Sergei Trofimovich --- dev-haskell/tasty-expected-failure/Manifest | 1 + dev-haskell/tasty-expected-failure/metadata.xml | 25 +++++++++++++++++ .../tasty-expected-failure-0.11.1.2.ebuild | 32 ++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 dev-haskell/tasty-expected-failure/Manifest create mode 100644 dev-haskell/tasty-expected-failure/metadata.xml create mode 100644 dev-haskell/tasty-expected-failure/tasty-expected-failure-0.11.1.2.ebuild (limited to 'dev-haskell/tasty-expected-failure') 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 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + 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. + + 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/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 +} -- cgit v1.2.3-65-gdbad