diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2022-10-17 20:49:27 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2022-10-17 20:50:18 +0200 |
commit | aa8ef1499cbcb7e68c3081e7d13e0d30f04e96c9 (patch) | |
tree | 0abf51030036ffeb20e8bfda8ec9f8e6c0a7e0d2 /dev-ml/alcotest | |
parent | gui-libs/wlroots: drop 0.15.0-r1, 0.15.0-r2 (diff) | |
download | gentoo-aa8ef1499cbcb7e68c3081e7d13e0d30f04e96c9.tar.gz gentoo-aa8ef1499cbcb7e68c3081e7d13e0d30f04e96c9.tar.bz2 gentoo-aa8ef1499cbcb7e68c3081e7d13e0d30f04e96c9.zip |
dev-ml/alcotest: fix test
Closes: https://bugs.gentoo.org/877071
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/alcotest')
-rw-r--r-- | dev-ml/alcotest/alcotest-1.5.0-r1.ebuild | 11 | ||||
-rw-r--r-- | dev-ml/alcotest/files/unknown_option.processed | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/dev-ml/alcotest/alcotest-1.5.0-r1.ebuild b/dev-ml/alcotest/alcotest-1.5.0-r1.ebuild index 9d4860fa648d..7e2047961acc 100644 --- a/dev-ml/alcotest/alcotest-1.5.0-r1.ebuild +++ b/dev-ml/alcotest/alcotest-1.5.0-r1.ebuild @@ -12,7 +12,8 @@ SRC_URI="https://github.com/mirage/alcotest/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="ISC" SLOT="0/${PV}" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" -IUSE="+ocamlopt" +IUSE="+ocamlopt test" +RESTRICT="!test? ( test )" RDEPEND=" >=dev-ml/dune-2.8:= @@ -31,3 +32,11 @@ RDEPEND=" dev-ml/uuidm:= " DEPEND="${RDEPEND}" +BDEPEND="test? ( >=dev-ml/cmdliner-1.1.0 )" + +src_prepare() { + cp "${FILESDIR}"/unknown_option.processed \ + test/e2e/alcotest/failing/unknown_option.expected \ + || die + default +} diff --git a/dev-ml/alcotest/files/unknown_option.processed b/dev-ml/alcotest/files/unknown_option.processed new file mode 100644 index 000000000000..fc26b53daeb6 --- /dev/null +++ b/dev-ml/alcotest/files/unknown_option.processed @@ -0,0 +1,3 @@ +unknown_option.<ext>: unknown option '--dry-runn'. +Usage: unknown_option.<ext> [COMMAND] … +Try 'unknown_option.<ext> --help' for more information. |