[114801] users/landonf/openjdk7/dports/java/openjdk7/Portfile
landonf at macports.org
landonf at macports.org
Sun Dec 15 11:05:40 PST 2013
Revision: 114801
https://trac.macports.org/changeset/114801
Author: landonf at macports.org
Date: 2013-12-15 11:05:40 -0800 (Sun, 15 Dec 2013)
Log Message:
-----------
Add support for running OpenJDK's test suite via jtreg.
Modified Paths:
--------------
users/landonf/openjdk7/dports/java/openjdk7/Portfile
Modified: users/landonf/openjdk7/dports/java/openjdk7/Portfile
===================================================================
--- users/landonf/openjdk7/dports/java/openjdk7/Portfile 2013-12-15 18:57:28 UTC (rev 114800)
+++ users/landonf/openjdk7/dports/java/openjdk7/Portfile 2013-12-15 19:05:40 UTC (rev 114801)
@@ -80,10 +80,12 @@
# NOTES:
# OpenJDK7 requires gcc/llvm-gcc; java 8 should support clang directly
-# Apple's jobjc depends on both Ruby and Haskell. Go figure.
+# Apple's jobjc depends on both Ruby and Haskell.
+# The test suite requires jtreg.
depends_build port:llvm-gcc42 \
port:ghc \
- port:ruby
+ port:ruby \
+ port:jtreg
set cryptoflag "UNLIMITED_CRYPTO=true"
variant limited_strength_jce description {Use the limited stength JCE policy files. By default, the unlimited strength policy files will be included.} {
@@ -192,7 +194,12 @@
BUNDLE_VENDOR="MacPorts" \
HOTSPOT_BUILD_JOBS="${build.jobs}"
-test {
+# jtreg-based tests
+test.run yes
+test.args "JT_HOME=${prefix}/share/java/jtreg" {*}${build.args}
+
+# Our own tests; they run prior to the JVM's tests.
+pre-test {
set testpath "${workpath}/tests"
set build "${worksrcpath}/build/macosx-${openjdk_build_arch}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131215/f9ce023b/attachment.html>
More information about the macports-changes
mailing list