/hg/icedtea: Use xvfb-run if available and DISPLAY not set for c...
mjw at icedtea.classpath.org
mjw at icedtea.classpath.org
Sat Jan 22 13:20:24 PST 2011
changeset 5cdaab119e8a in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=5cdaab119e8a
author: Mark Wielaard <mark at klomp.org>
date: Sat Jan 22 21:47:34 2011 +0100
Use xvfb-run if available and DISPLAY not set for check-jdk.
* configure.ac: Add xvfb-run AC_CHECK_PROG.
* Makefile.am (check-jdk): Use xvfb-run if available and DISPLAY not
set.
diffstat:
3 files changed, 15 insertions(+)
ChangeLog | 6 ++++++
Makefile.am | 5 +++++
configure.ac | 4 ++++
diffs (42 lines):
diff -r ce49b3019799 -r 5cdaab119e8a ChangeLog
--- a/ChangeLog Fri Jan 21 22:53:33 2011 +0100
+++ b/ChangeLog Sat Jan 22 21:47:34 2011 +0100
@@ -1,3 +1,9 @@ 2011-01-21 Mark Wielaard <mark at klomp.o
+2010-01-22 Mark Wielaard <mark at klomp.org>
+
+ * configure.ac: Add xvfb-run AC_CHECK_PROG.
+ * Makefile.am (check-jdk): Use xvfb-run if available and DISPLAY
+ not set.
+
2011-01-21 Mark Wielaard <mark at klomp.org>
* configure.ac (--with-llvm-config): Handle yes/no.
diff -r ce49b3019799 -r 5cdaab119e8a Makefile.am
--- a/Makefile.am Fri Jan 21 22:53:33 2011 +0100
+++ b/Makefile.am Sat Jan 22 21:47:34 2011 +0100
@@ -2216,6 +2216,11 @@ if WITH_CACAO
if WITH_CACAO
CACAO_EXCLUDE="-exclude:$(abs_top_srcdir)/test/jtreg/excludelist.jdk.cacao.jtx"
endif
+ if test "x$${DISPLAY}" = "x"; then XVFB_RUN="@XVFB_RUN_CMD@"; fi; \
+ if test "x$${DISPLAY}" = "x" && test "x$${XVFB_RUN}" = "x"; then \
+ echo "WARNING: DISPLAY not set and xvfb-run not found"; \
+ fi; \
+ $${XVFB_RUN} \
$(BOOT_DIR)/bin/java -jar test/jtreg.jar -v1 -a -ignore:quiet \
-w:test/jdk/JTwork -r:test/jdk/JTreport \
$${ICEDTEA_JTREG_OTHERVM:--samevm} \
diff -r ce49b3019799 -r 5cdaab119e8a configure.ac
--- a/configure.ac Fri Jan 21 22:53:33 2011 +0100
+++ b/configure.ac Sat Jan 22 21:47:34 2011 +0100
@@ -54,6 +54,10 @@ IT_DISABLE_HOTSPOT_TESTS
IT_DISABLE_HOTSPOT_TESTS
IT_DISABLE_LANGTOOLS_TESTS
IT_DISABLE_JDK_TESTS
+
+# Use xvfb-run if found to run gui tests (check-jdk).
+AC_CHECK_PROG(XVFB_RUN_CMD, xvfb-run, [xvfb-run -a -e xvfb-errors], [])
+AC_SUBST(XVFB_RUN_CMD)
AC_MSG_CHECKING([whether to build the browser plugin])
AC_ARG_ENABLE([plugin],
More information about the distro-pkg-dev
mailing list