public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/testng/
Date: Sun, 25 Oct 2015 14:34:34 +0000 (UTC)	[thread overview]
Message-ID: <1445783533.4f6aeab3e6223c8431beec2e580be861d3226266.monsieurp@gentoo> (raw)

commit:     4f6aeab3e6223c8431beec2e580be861d3226266
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 25 14:08:32 2015 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Oct 25 14:32:13 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f6aeab3

dev-java/testng: Disable tests.

Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 dev-java/testng/testng-6.8-r3.ebuild | 98 ++++++++++++++++++++++++++++++++++++
 1 file changed, 98 insertions(+)

diff --git a/dev-java/testng/testng-6.8-r3.ebuild b/dev-java/testng/testng-6.8-r3.ebuild
new file mode 100644
index 0000000..83f523f
--- /dev/null
+++ b/dev-java/testng/testng-6.8-r3.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Testing framework introducing some new functionalities that make it more powerful and easier to use"
+HOMEPAGE="http://testng.org/"
+SRC_URI="http://${PN}.org/${P}.zip"
+
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+CDEPEND="
+	dev-java/bsh:0
+	dev-java/guice:2
+	dev-java/junit:4
+	dev-java/ant-core:0
+	dev-java/jcommander:0
+	dev-java/snakeyaml:1.9"
+
+DEPEND=">=virtual/jdk-1.6
+	app-arch/zip
+	${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.6
+	${CDEPEND}"
+
+JAVA_ANT_CLASSPATH_TAGS+=" testng javadocs-current"
+JAVA_PKG_BSFIX_NAME="build.xml build-tests.xml"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+EANT_GENTOO_CLASSPATH="ant-core,bsh,guice-2,jcommander,junit-4,snakeyaml-1.9"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}"
+
+EANT_BUILD_TARGET="build"
+EANT_TEST_TARGET="tests"
+EANT_DOC_TARGET="javadocs"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-remove-ivy-retrieve.patch
+	"${FILESDIR}"/${P}-remove-jar-bundling.patch
+)
+
+# Error: A JNI error has occurred, please check your installation and try again.
+RESTRICT="test"
+
+java_prepare() {
+	java-pkg_clean
+
+	cp "${FILESDIR}"/${P}-build-tests.xml build-tests.xml || die
+
+	epatch "${PATCHES[@]}"
+
+	# Removal of tests that break due to restrictions or environment expectations:
+	#     ServiceLoaderTest - Breaks due absolute URL load that Portage prevents;
+	#                         we assume the underlying functionality to work, as
+	#                         the underlying functionality is simple and should
+	#                         show the usage of this package to break.
+	sed -i '/test.serviceloader.ServiceLoaderTest/d' src/test/resources/testng.xml || die
+
+	#     TrueParallelTest - Doesn't always work, especially not on a system
+	#                        under load; since this could fail during parallel
+	#                        emerges, we assume the underlying functionality to
+	#                        work as it has definitely succeeded under lower load.
+	sed -i '/test.thread.TrueParallelTest/d' src/test/resources/testng.xml || die
+
+	mkdir lib || die
+}
+
+src_test() {
+	java-pkg-2_src_test
+
+	local tests_file="target/test-output/index.html"
+
+	if [[ ! -f ${tests_file} ]] ; then
+		die "Tests failed, test output does not exist; a problem with starting the tests."
+	fi
+
+	grep 'method-stats.*failed' target/test-output/index.html > /dev/null && \
+		die "Tests failed; one or more test failed, see ${tests_file} for more details."
+}
+
+src_install() {
+	java-pkg_newjar target/${P}.jar
+	java-pkg_dolauncher ${PN} --main org.testng.TestNG
+	java-pkg_register-ant-task
+
+	use doc && java-pkg_dojavadoc javadocs
+	use examples && java-pkg_doexamples examples
+	use source && java-pkg_dosrc src/main/java/{org,com}
+}


             reply	other threads:[~2015-10-25 14:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-25 14:34 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-08 13:30 [gentoo-commits] repo/gentoo:master commit in: dev-java/testng/ Patrice Clement
2016-01-08 13:30 Patrice Clement
2016-01-17  0:01 James Le Cuirot
2016-03-14 21:04 James Le Cuirot
2020-05-17 16:55 Aaron Bauman
2021-07-24 15:22 Sam James
2021-10-19  0:15 Sam James
2021-11-16  7:49 Agostino Sarubbo
2021-11-30 20:52 Arthur Zamarin
2022-01-10 19:10 Arthur Zamarin
2022-04-14  5:14 Miroslav Šulc
2022-05-14  9:18 Arthur Zamarin
2022-05-14  9:19 Jakov Smolić
2022-05-14  9:20 Jakov Smolić
2022-05-14 21:49 Jakov Smolić
2022-05-15  6:51 Miroslav Šulc
2023-07-21  6:19 Miroslav Šulc
2023-10-18  7:50 Miroslav Šulc
2023-11-17 11:09 Sam James
2023-11-17 12:07 Sam James
2023-11-17 12:07 Sam James
2023-11-17 12:07 Sam James
2024-03-14 10:52 Miroslav Šulc
2024-03-14 10:52 Miroslav Šulc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445783533.4f6aeab3e6223c8431beec2e580be861d3226266.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox