This commit is contained in:
Igor Ignatyev 2014-12-24 19:31:28 +03:00
commit 4480b4d8b4
6 changed files with 36 additions and 19 deletions

View File

@ -106,12 +106,15 @@ if [ ${vflag} = "true" ] ; then
echo "# Mercurial command: ${command}" > ${status_output} echo "# Mercurial command: ${command}" > ${status_output}
fi fi
# At this point all command options and args are in "$@".
# capture command options and arguments (if any) # Always use "$@" (within double quotes) to avoid breaking
command_args="${@:-}" # args with spaces into separate args.
if [ ${vflag} = "true" ] ; then if [ ${vflag} = "true" ] ; then
echo "# Mercurial command arguments: ${command_args}" > ${status_output} echo "# Mercurial command argument count: $#" > ${status_output}
for cmdarg in "$@" ; do
echo "# Mercurial command argument: ${cmdarg}" > ${status_output}
done
fi fi
# Clean out the temporary directory that stores the pid files. # Clean out the temporary directory that stores the pid files.
@ -205,13 +208,14 @@ if [ "${command}" = "clone" -o "${command}" = "fclone" -o "${command}" = "tclone
pull_default_tail=`echo ${pull_default} | sed -e 's@^.*://[^/]*/\(.*\)@\1@'` pull_default_tail=`echo ${pull_default} | sed -e 's@^.*://[^/]*/\(.*\)@\1@'`
if [ -n "${command_args}" ] ; then if [ $# -gt 0 ] ; then
# if there is an "extra sources" path then reparent "extra" repos to that path # if there is an "extra sources" path then reparent "extra" repos to that path
if [ "x${pull_default}" = "x${pull_default_tail}" ] ; then if [ "x${pull_default}" = "x${pull_default_tail}" ] ; then
echo "ERROR: Need initial clone from non-local source" > ${status_output} echo "ERROR: Need initial clone from non-local source" > ${status_output}
exit 1 exit 1
fi fi
pull_extra="${command_args}/${pull_default_tail}" # assume that "extra sources" path is the first arg
pull_extra="${1}/${pull_default_tail}"
# determine which extra subrepos need to be cloned. # determine which extra subrepos need to be cloned.
for i in ${subrepos_extra} ; do for i in ${subrepos_extra} ; do
@ -356,8 +360,8 @@ else
(PYTHONUNBUFFERED=true hg${global_opts} clone ${clone_newrepo} ${i}; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 & (PYTHONUNBUFFERED=true hg${global_opts} clone ${clone_newrepo} ${i}; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 &
else else
# run the command. # run the command.
echo "cd ${i} && hg${global_opts} ${command} ${command_args}" > ${status_output} echo "cd ${i} && hg${global_opts} ${command} ${@}" > ${status_output}
cd ${i} && (PYTHONUNBUFFERED=true hg${global_opts} ${command} ${command_args}; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 & cd ${i} && (PYTHONUNBUFFERED=true hg${global_opts} ${command} "${@}"; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 &
fi fi
echo $! > ${tmp}/${repopidfile}.pid echo $! > ${tmp}/${repopidfile}.pid

View File

@ -53,8 +53,7 @@ BUILD_NUMBER=$(JDK_BUILD_NUMBER)
JAVADOC_CMD = $(JAVA) \ JAVADOC_CMD = $(JAVA) \
-Djava.awt.headless=true \ -Djava.awt.headless=true \
$(NEW_JAVADOC) \ $(NEW_JAVADOC)
-bootclasspath $(JDK_OUTPUTDIR)/classes
# Copyright year for beginning of Java and some of the apis # Copyright year for beginning of Java and some of the apis
# (Needed when creating the javadocs) # (Needed when creating the javadocs)
@ -231,17 +230,17 @@ endef
# Common echo of option # Common echo of option
define OptionOnly # opt define OptionOnly # opt
if [ "$1" != "" ] ; then \ if [ "$(strip $1)" != "" ] ; then \
$(PRINTF) "%s\n" "$1"; \ $(PRINTF) "%s\n" "$(strip $1)"; \
fi fi
endef endef
define OptionPair # opt arg define OptionPair # opt arg
$(PRINTF) "%s '%s'\n" "$1" '$2' $(PRINTF) "%s '%s'\n" "$(strip $1)" '$(strip $2)'
endef endef
define OptionTrip # opt arg arg define OptionTrip # opt arg arg
$(PRINTF) "%s '%s' '%s'\n" "$1" '$2' '$3' $(PRINTF) "%s '%s' '%s'\n" "$(strip $1)" '$(strip $2)' '$(strip $3)'
endef endef
# Core api bottom argument (with special sauce) # Core api bottom argument (with special sauce)

View File

@ -257,7 +257,7 @@ ALL_TARGETS += docs-javadoc docs-jvmtidoc
test: test:
($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \ ($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \
JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_OUTPUTDIR) \ JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) \
ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
test-make: test-make:
@ -394,7 +394,7 @@ else
docs-jvmtidoc: hotspot docs-jvmtidoc: hotspot
test: exploded-image test: jimages
verify-modules: exploded-image verify-modules: exploded-image

View File

@ -188,6 +188,13 @@ my.make.rule.test.targets.svc= \
${my.test.target.set:TESTNAME=svc_tools}, \ ${my.test.target.set:TESTNAME=svc_tools}, \
${my.make.rule.test.targets.svc.extra} ${my.make.rule.test.targets.svc.extra}
# JAXP vm test targets (testset=jaxp)
my.test.targets.jaxp=
# JAXP test targets (testset=jaxp)
my.make.rule.test.targets.jaxp= \
${my.test.target.set:TESTNAME=jaxp_all}
# All vm test targets (testset=all) # All vm test targets (testset=all)
my.test.targets.all= \ my.test.targets.all= \
${my.test.targets.default}, \ ${my.test.targets.default}, \
@ -211,7 +218,8 @@ my.test.targets.pit= \
my.make.rule.test.targets.pit= \ my.make.rule.test.targets.pit= \
${my.test.target.set:TESTNAME=langtools_jtreg}, \ ${my.test.target.set:TESTNAME=langtools_jtreg}, \
${my.make.rule.test.targets.core}, \ ${my.make.rule.test.targets.core}, \
${my.make.rule.test.targets.svc} ${my.make.rule.test.targets.svc} \
${my.make.rule.test.targets.jaxp}
# JCK test targets in test/Makefile (no windows) # JCK test targets in test/Makefile (no windows)
my.test.target.set.jck= \ my.test.target.set.jck= \

View File

@ -33,6 +33,7 @@ TOPDIR=..
# This makefile depends on the availability of sibling directories. # This makefile depends on the availability of sibling directories.
LANGTOOLS_DIR=$(TOPDIR)/langtools LANGTOOLS_DIR=$(TOPDIR)/langtools
JDK_DIR=$(TOPDIR)/jdk JDK_DIR=$(TOPDIR)/jdk
JAXP_DIR=$(TOPDIR)/jaxp
HOTSPOT_DIR=$(TOPDIR)/hotspot HOTSPOT_DIR=$(TOPDIR)/hotspot
# Macro to run a test target in a subdir # Macro to run a test target in a subdir
@ -51,10 +52,10 @@ fi
endef endef
# Default test target (core) # Default test target (core)
default: jdk_core langtools_jtreg default: jdk_core langtools_jtreg jaxp_all
# All testing # All testing
all: jdk_all langtools_all all: jdk_all langtools_all jaxp_all
# Test targets # Test targets
langtools_% : langtools_% :
@ -63,6 +64,9 @@ langtools_% :
jdk_% core_%s svc_%: jdk_% core_%s svc_%:
@$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@) @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@)
jaxp_%:
@$(NO_STOPPING)$(call SUBDIR_TEST, $(JAXP_DIR), TEST="$@" $@)
hotspot_%: hotspot_%:
@$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@) @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@)

View File

@ -249,4 +249,6 @@ public class WhiteBox {
return offset; return offset;
} }
// Safepoint Checking
public native void assertMatchingSafepointCalls(boolean mutexSafepointValue, boolean attemptedNoSafepointValue);
} }