diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-05 20:16:50 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-05 20:16:50 +0000 |
commit | ec528e8849a2fd0b3cce861a5b98778894376067 (patch) | |
tree | 7f1d1d7a42db938d409e9725a5d7c62ce7430525 /dev-db/hsqldb | |
parent | Add back ~sparc, Bug #210777, verified as still working with USE=pam. (diff) | |
download | gentoo-2-ec528e8849a2fd0b3cce861a5b98778894376067.tar.gz gentoo-2-ec528e8849a2fd0b3cce861a5b98778894376067.tar.bz2 gentoo-2-ec528e8849a2fd0b3cce861a5b98778894376067.zip |
Add src_test.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-db/hsqldb')
-rw-r--r-- | dev-db/hsqldb/ChangeLog | 6 | ||||
-rw-r--r-- | dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild | 15 |
2 files changed, 18 insertions, 3 deletions
diff --git a/dev-db/hsqldb/ChangeLog b/dev-db/hsqldb/ChangeLog index 4e9234d868ed..f4428796ba18 100644 --- a/dev-db/hsqldb/ChangeLog +++ b/dev-db/hsqldb/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-db/hsqldb # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.38 2008/02/15 19:02:12 wltjr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/ChangeLog,v 1.39 2008/03/05 20:16:50 betelgeuse Exp $ + + 05 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> + hsqldb-1.8.0.9-r1.ebuild: + Add src_test. 15 Feb 2008; William L. Thomson Jr. <wltjr@gentoo.org> hsqldb-1.8.0.9-r1.ebuild: diff --git a/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild b/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild index 16ef88f5f2ad..b9271d71c391 100644 --- a/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild +++ b/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild,v 1.2 2008/02/15 19:02:12 wltjr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/hsqldb/hsqldb-1.8.0.9-r1.ebuild,v 1.3 2008/03/05 20:16:50 betelgeuse Exp $ EAPI=1 -JAVA_PKG_IUSE="doc source" +JAVA_PKG_IUSE="doc source test" inherit eutils versionator java-pkg-2 java-ant-2 MY_PV=$(replace_all_version_separators _ ) @@ -23,6 +23,7 @@ CDEPEND="java-virtuals/servlet-api:2.3" RDEPEND=">=virtual/jre-1.4 ${CDEPEND}" DEPEND="|| ( =virtual/jdk-1.5* =virtual/jdk-1.4* ) + test? ( dev-java/junit:0 ) ${CDEPEND}" S="${WORKDIR}/${PN}" @@ -68,6 +69,16 @@ EANT_BUILD_XML="build/build.xml" EANT_BUILD_TARGET="jar jarclient jarsqltool jarutil" EANT_DOC_TARGET="javadocdev" +src_test() { + java-pkg_jar-from --into lib junit + eant -f ${EANT_BUILD_XML} jartest + cd testrun/hsqldb || die + ./runTest.sh TestSelf || die "hsqldb tests failed" + # TODO. These fail. Investigate why. + #cd "${S}/testrun/sqltool" || die + #CLASSPATH="${S}/lib/hsqldb.jar" ./runtests.bash || die "sqltool test failed" +} + src_install() { java-pkg_dojar lib/hsql*.jar |