diff options
Diffstat (limited to 'dev-util/shelltestrunner')
| -rw-r--r-- | dev-util/shelltestrunner/Manifest | 1 | ||||
| -rw-r--r-- | dev-util/shelltestrunner/metadata.xml | 16 | ||||
| -rw-r--r-- | dev-util/shelltestrunner/shelltestrunner-1.9.ebuild | 52 |
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/shelltestrunner/Manifest b/dev-util/shelltestrunner/Manifest new file mode 100644 index 000000000000..942476069553 --- /dev/null +++ b/dev-util/shelltestrunner/Manifest @@ -0,0 +1 @@ +DIST shelltestrunner-1.9.tar.gz 39538 BLAKE2B 45dc5acbfd35d65a818938382e62eacc7aa3798e8f0ab9cdd4d4a358f470de9854bedbd2335bae6b4195ea05b2305de84e0b13c86206ac0e53039726fbc59354 SHA512 bdb5476e30189f0997f3a9505d954a828475a5d95e1220dc9ed342e96100f4dfa0cfadc1afd9a5758223cf1a659d1f77d7d0a0533c32bd80b325c9a7ad48178d diff --git a/dev-util/shelltestrunner/metadata.xml b/dev-util/shelltestrunner/metadata.xml new file mode 100644 index 000000000000..cb935df1a5e7 --- /dev/null +++ b/dev-util/shelltestrunner/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + shelltestrunner is a cross-platform tool for testing command-line + programs (or arbitrary shell commands.) It reads simple declarative tests + specifying a command, some input, and the expected output, error output + and exit status. Tests can be run selectively, in parallel, with a + timeout, in color, and/or with differences highlighted. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-util/shelltestrunner/shelltestrunner-1.9.ebuild b/dev-util/shelltestrunner/shelltestrunner-1.9.ebuild new file mode 100644 index 000000000000..4fd61c32d3c2 --- /dev/null +++ b/dev-util/shelltestrunner/shelltestrunner-1.9.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CABAL_FEATURES="" +inherit haskell-cabal + +DESCRIPTION="A tool for testing command-line programs" +HOMEPAGE="https://github.com/simonmichael/shelltestrunner" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-haskell/cmdargs-0.7:= + >=dev-haskell/diff-0.2.0:= + >=dev-haskell/filemanip-0.3:= + dev-haskell/hunit:= + dev-haskell/parsec:= + >=dev-haskell/pretty-show-1.6.5:= + >=dev-haskell/regex-tdfa-1.1:= + dev-haskell/safe:= + >=dev-haskell/test-framework-0.3.2:= + >=dev-haskell/test-framework-hunit-0.2:= + >=dev-haskell/utf8-string-0.3.5:= + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 + +" + +src_test() { + # First we have to prepend "dist/build/shelltest" to the PATH, so + # that when the tests themselves run "shelltest", they get the + # recently-built executable and not an already-installed one. Then + # we exclude the Windows tests, leaving (for now...) only the Unix + # and generic ones. + # + # We also skip the macro tests for now because the sdist is missing + # some files: + # + # https://github.com/simonmichael/shelltestrunner/issues/13 + # + LANGUAGE=en \ + PATH="dist/build/shelltest:${PATH}" \ + shelltest -x .windows -x macros.test tests/ || die 'test suite failed' +} |
